summaryrefslogtreecommitdiff
path: root/wifi/1.4/default/wifi.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'wifi/1.4/default/wifi.cpp')
-rw-r--r--wifi/1.4/default/wifi.cpp4
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;
}