aboutsummaryrefslogtreecommitdiff
path: root/hostapd
diff options
context:
space:
mode:
authorHu Wang <huw@codeaurora.org>2021-06-24 17:24:59 +0800
committerLes Lee <lesl@google.com>2022-07-06 12:03:15 +0800
commit7c5a432f836a526f253ff3211d4804c33416c02f (patch)
tree0ee7b6ada8394c72d8ebace35ae1292c12ce92b6 /hostapd
parent051873b1f6eddad67b6c720e412dde482b59ad9a (diff)
downloadwpa_supplicant_8-7c5a432f836a526f253ff3211d4804c33416c02f.tar.gz
hostapd: Fix AP ctrl events not send to hostapd_cli
Android hostapd aidl calls wpa_msg_register_cb() to register onAsyncWpaEventCb to monitor ctrl events, this overwrites ctrl iface's callback hostapd_ctrl_iface_msg_cb. This results hostapd_cli not able to receive AP ctrl events from hostapd. This CL defines wpa_msg_register_aidl_cb() for Android hostapd aidl to make sure both aidl and ctrl iface callbacks are triggered. cp from pag/2244726 Bug: 237600228 Test: Manual Test Change-Id: Ia2595657262d4166bddaacab6549e52bfe833510
Diffstat (limited to 'hostapd')
-rw-r--r--hostapd/aidl/hostapd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/hostapd/aidl/hostapd.cpp b/hostapd/aidl/hostapd.cpp
index 11d1290c..31e67b27 100644
--- a/hostapd/aidl/hostapd.cpp
+++ b/hostapd/aidl/hostapd.cpp
@@ -1027,7 +1027,7 @@ std::vector<uint8_t> generateRandomOweSsid()
iface_hapd->setup_complete_cb_ctx = iface_hapd;
iface_hapd->sta_authorized_cb = onAsyncStaAuthorizedCb;
iface_hapd->sta_authorized_cb_ctx = iface_hapd;
- wpa_msg_register_cb(onAsyncWpaEventCb);
+ wpa_msg_register_aidl_cb(onAsyncWpaEventCb);
if (hostapd_enable_iface(iface_hapd->iface) < 0) {
wpa_printf(