diff options
Diffstat (limited to 'wifi/1.4/default/wifi.cpp')
-rw-r--r-- | wifi/1.4/default/wifi.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/wifi/1.4/default/wifi.cpp b/wifi/1.4/default/wifi.cpp index 4f48d7e7a6..9c6b0f0f16 100644 --- a/wifi/1.4/default/wifi.cpp +++ b/wifi/1.4/default/wifi.cpp @@ -124,6 +124,8 @@ WifiStatus Wifi::startInternal() { } } LOG(ERROR) << "Wifi HAL start failed"; + // Clear the event callback objects since the HAL start failed. + event_cb_handler_.invalidate(); } return wifi_status; } @@ -158,6 +160,8 @@ WifiStatus Wifi::stopInternal( } LOG(ERROR) << "Wifi HAL stop failed"; } + // Clear the event callback objects since the HAL is now stopped. + event_cb_handler_.invalidate(); return wifi_status; } |