Skip to content

Commit 88f942f

Browse files
LuDudamarkaj-nordic
authored andcommittedMar 8, 2024
[nrf noup] fix handling of LastNetworkID in Wi-Fi driver
This commit makes sure that correct Network ID is provided to the Network Commissioning cluster from the platform's Wi-Fi driver. Signed-off-by: Łukasz Duda <lukasz.duda@nordicsemi.no>
1 parent dde465a commit 88f942f

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed
 

‎src/platform/nrfconnect/wifi/NrfWiFiDriver.cpp

+7-1
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,13 @@ void NrfWiFiDriver::OnNetworkStatusChanged(Status status)
122122

123123
if (mpNetworkStatusChangeCallback)
124124
{
125-
mpNetworkStatusChangeCallback->OnNetworkingStatusChange(status, NullOptional, NullOptional);
125+
WiFiManager::WiFiInfo wifiInfo;
126+
127+
if (CHIP_NO_ERROR == WiFiManager::Instance().GetWiFiInfo(wifiInfo))
128+
{
129+
mpNetworkStatusChangeCallback->OnNetworkingStatusChange(status,
130+
MakeOptional(ByteSpan(wifiInfo.mSsid, wifiInfo.mSsidLen)), NullOptional);
131+
}
126132
}
127133

128134
if (mpConnectCallback)

0 commit comments

Comments
 (0)
Please sign in to comment.