aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLes Lee <lesl@google.com>2022-05-05 13:09:05 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2022-05-05 13:09:05 +0000
commit7c01664ee8eadac025522fb807833ee4fc4a56a0 (patch)
treee1f8fad1d859072bc515263ba4764f0fba81934f
parent925f640211e66abc1979ea3074fc331ba3e5896a (diff)
parent28ac94d2ad6f54ff5ec39846d9763941e94db5ac (diff)
downloadwpa_supplicant_8-7c01664ee8eadac025522fb807833ee4fc4a56a0.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: I319472229baf236423856c6df1db421c5580e117 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 ?