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 Nov 27, 2024
1 parent fbb38da commit cfbffab
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/platform/silabs/wifi/lwip-support/ethernetif.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ static err_t low_level_output(struct netif * netif, struct pbuf * p)
status = wfx_rsi_send_data(packet, datalength);
if (status != 0)
{
ChipLogError(DeviceLayer, "*ERR*EN-RSI:Send fail: %d", status);
ChipLogError(DeviceLayer, "*ERR*EN-RSI:Send fail: %ld", status);
xSemaphoreGive(ethout_sem);
return ERR_IF;
}
Expand Down
4 changes: 4 additions & 0 deletions src/platform/silabs/wifi/rs911x/WifiInterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#include "silabs_utils.h"
#include "sl_status.h"
#include <cmsis_os2.h>
#include <inet/IPAddress.h>
#include <lib/support/CHIPMem.h>
#include <lib/support/CHIPMemString.h>
#include <lib/support/CodeUtils.h>
Expand Down Expand Up @@ -599,6 +600,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);
wfx_ipv6_notify(GET_IPV6_SUCCESS);
hasNotifiedIPV6 = true;
WifiEvent event = WifiEvent::kStationDhcpDone;
Expand Down

0 comments on commit cfbffab

Please sign in to comment.