File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -259,7 +259,7 @@ void ConnectivityManagerImpl::ProcessWlanEvent(enum wlan_event_reason wlanEvent)
259
259
{
260
260
case WLAN_REASON_SUCCESS:
261
261
ChipLogProgress (DeviceLayer, " Connected to WLAN network = %d" , is_sta_ipv6_connected ());
262
- if (sInstance ._GetWiFiStationState () == kWiFiStationState_Connecting )
262
+ if (sInstance ._GetWiFiStationState () != kWiFiStationState_Connected )
263
263
{
264
264
sInstance ._SetWiFiStationState (kWiFiStationState_Connecting_Succeeded );
265
265
sInstance ._SetWiFiStationState (kWiFiStationState_Connected );
@@ -318,7 +318,7 @@ void ConnectivityManagerImpl::ProcessWlanEvent(enum wlan_event_reason wlanEvent)
318
318
sInstance .OnStationDisconnected ();
319
319
if (delegate)
320
320
{
321
- delegate->OnAssociationFailureDetected (associationFailureCause, wlan_status_code);
321
+ delegate->OnDisconnectionDetected ( wlan_status_code);
322
322
}
323
323
}
324
324
break ;
@@ -329,7 +329,7 @@ void ConnectivityManagerImpl::ProcessWlanEvent(enum wlan_event_reason wlanEvent)
329
329
sInstance .OnStationDisconnected ();
330
330
if (delegate)
331
331
{
332
- delegate->OnAssociationFailureDetected (associationFailureCause, wlan_status_code);
332
+ delegate->OnDisconnectionDetected ( wlan_status_code);
333
333
}
334
334
break ;
335
335
You can’t perform that action at this time.
0 commit comments