aboutsummaryrefslogtreecommitdiff
path: root/hostapd/hidl/1.3/hostapd.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'hostapd/hidl/1.3/hostapd.cpp')
-rw-r--r--hostapd/hidl/1.3/hostapd.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/hostapd/hidl/1.3/hostapd.cpp b/hostapd/hidl/1.3/hostapd.cpp
index f9d26474..72efd3fe 100644
--- a/hostapd/hidl/1.3/hostapd.cpp
+++ b/hostapd/hidl/1.3/hostapd.cpp
@@ -919,7 +919,15 @@ V1_2::HostapdStatus Hostapd::addSingleAccessPoint(
iface_hapd->own_addr);
}
}
- };
+ else if (os_strncmp(txt, AP_EVENT_DISABLED,
+ strlen(AP_EVENT_DISABLED)) == 0) {
+ // Invoke the failure callback on all registered clients.
+ for (const auto& callback : callbacks_) {
+ callback->onFailure(strlen(iface_hapd->conf->bridge) > 0 ?
+ iface_hapd->conf->bridge : iface_hapd->conf->iface);
+ }
+ }
+ };
// Setup callback
iface_hapd->setup_complete_cb = onAsyncSetupCompleteCb;