Skip to content

Commit

Permalink
Uninitialize WICED's WLAN subsystem when turning off the WiFi connect…
Browse files Browse the repository at this point in the history
…ivity; cancel active connection attempt to unblock the system thread (see #1125)
  • Loading branch information
avtolstoy authored and sergeuz committed Jun 2, 2017
1 parent 855ef1d commit 0d8c773
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions hal/src/photon/wlan_hal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -720,14 +720,9 @@ wlan_result_t wlan_activate()
wlan_result_t wlan_deactivate()
{
wlan_disconnect_now();
// FIXME:
// This was required for PR #1125 to reduce Wi-Fi power completely for Sleep stop mode
// however it introduced a new connectivity bug in LwIP that was unresolved in commit 87892a3837d4,
// which was reverted in commit 6b78d7662f62. WICED should be updated to pull in a newer version of LwIP
// before this change is attempted again.
// wiced_result_t result = wiced_wlan_connectivity_deinit();
// return result;
return 0;

wiced_result_t result = wiced_wlan_connectivity_deinit();
return result;
}

wlan_result_t wlan_disconnect_now()
Expand Down

0 comments on commit 0d8c773

Please sign in to comment.