From 8eb8bb9ca10e01a8f1ffa39400fd5e2a5cddbafb Mon Sep 17 00:00:00 2001 From: Kamil Kasperczyk Date: Tue, 15 Apr 2025 09:53:26 +0200 Subject: [PATCH] [nrf toup] Added disconnection reason log Added missing log for Wi-Fi disconnection event. Signed-off-by: Kamil Kasperczyk --- src/platform/nrfconnect/wifi/WiFiManager.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/platform/nrfconnect/wifi/WiFiManager.cpp b/src/platform/nrfconnect/wifi/WiFiManager.cpp index 559dbc7a9b..56b347ecba 100644 --- a/src/platform/nrfconnect/wifi/WiFiManager.cpp +++ b/src/platform/nrfconnect/wifi/WiFiManager.cpp @@ -186,6 +186,8 @@ void WiFiManager::SuppEventHandler(net_mgmt_event_callback * cb, uint32_t mgmtEv SystemLayer().ScheduleLambda([] { if (Instance().mWiFiState == WIFI_STATE_COMPLETED) { + ChipLogProgress(DeviceLayer, "WiFi station disconnected, reason: %d", WLAN_REASON_UNSPECIFIED); + Instance().mReconnect = true; Instance().NotifyDisconnected(WLAN_REASON_UNSPECIFIED); }