aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLes Lee <lesl@google.com>2022-05-05 13:10:49 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2022-05-05 13:10:49 +0000
commitcfc3487ddb3839cec413a016721570725805a987 (patch)
treee1f8fad1d859072bc515263ba4764f0fba81934f
parentc86c312007c7416fe38978c0cee866620c336d4b (diff)
parent28ac94d2ad6f54ff5ec39846d9763941e94db5ac (diff)
downloadwpa_supplicant_8-cfc3487ddb3839cec413a016721570725805a987.tar.gz
Merge "wifi: Support interface disable event in hostapd" into tm-dev am: 28ac94d2ad
Original change: https://googleplex-android-review.googlesource.com/c/platform/external/wpa_supplicant_8/+/17817322 Change-Id: Id67a218e957c83ca4c09b86e09395f702dad7f45 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-rw-r--r--hostapd/aidl/hostapd.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/hostapd/aidl/hostapd.cpp b/hostapd/aidl/hostapd.cpp
index f0fa687a..11d1290c 100644
--- a/hostapd/aidl/hostapd.cpp
+++ b/hostapd/aidl/hostapd.cpp
@@ -1010,7 +1010,9 @@ std::vector<uint8_t> generateRandomOweSsid()
for (const auto &callback : callbacks_) {
callback->onApInstanceInfoChanged(info);
}
- } else if (os_strncmp(txt, AP_EVENT_DISABLED, strlen(AP_EVENT_DISABLED)) == 0) {
+ } else if (os_strncmp(txt, AP_EVENT_DISABLED, strlen(AP_EVENT_DISABLED)) == 0
+ || os_strncmp(txt, INTERFACE_DISABLED, strlen(INTERFACE_DISABLED)) == 0)
+ {
// Invoke the failure callback on all registered clients.
for (const auto& callback : callbacks_) {
callback->onFailure(strlen(iface_hapd->conf->bridge) > 0 ?