Skip to content

Commit

Permalink
Adds SLAAC IPv6 print
Browse files Browse the repository at this point in the history
  • Loading branch information
rosahay-silabs committed Jan 17, 2025
1 parent 23cef2b commit e76a78d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/platform/silabs/wifi/rs911x/WifiInterfaceImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -599,6 +599,9 @@ void HandleDHCPPolling(void)
*/
if ((ip6_addr_ispreferred(netif_ip6_addr_state(sta_netif, 0))) && !hasNotifiedIPV6)
{
char addrStr[chip::Inet::IPAddress::kMaxStringLength] = { 0 };
VerifyOrReturn(ip6addr_ntoa_r(netif_ip6_addr(sta_netif, 0), addrStr, sizeof(addrStr)) != nullptr);
ChipLogProgress(DeviceLayer, "SLAAC OK: linklocal addr: %s", addrStr);
NotifyIPv6Change(true);
hasNotifiedIPV6 = true;
WifiPlatformEvent event = WifiPlatformEvent::kStationDhcpDone;
Expand Down

0 comments on commit e76a78d

Please sign in to comment.