aboutsummaryrefslogtreecommitdiff
path: root/hostapd
diff options
context:
space:
mode:
authorLes Lee <lesl@google.com>2022-05-05 13:40:39 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2022-05-05 13:40:39 +0000
commit34f777d4f64310beb436c1374cf2520bfcb9d3e5 (patch)
tree5b0a9b11d6fdeb4f1eda855a985829edec1cdf69 /hostapd
parentafe10b53249869716da2516d1c28457ba6297396 (diff)
parent1538b99d4e363cd2423487bb64483888ede14f1a (diff)
downloadwpa_supplicant_8-34f777d4f64310beb436c1374cf2520bfcb9d3e5.tar.gz
Merge "wifi: Support interface disable event in hostapd" into tm-dev am: 28ac94d2ad am: 1538b99d4e
Original change: https://googleplex-android-review.googlesource.com/c/platform/external/wpa_supplicant_8/+/17817322 Change-Id: If9b516382f280036e2a9a423f000b59851ad0955 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
Diffstat (limited to 'hostapd')
-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 ?