diff options
author | Les Lee <lesl@google.com> | 2021-09-23 10:18:36 +0800 |
---|---|---|
committer | Les Lee <lesl@google.com> | 2021-09-23 10:18:36 +0800 |
commit | f0def8fc1801c1917262bd56d599b57361329dad (patch) | |
tree | f40bedc36a4766279e2a267986e9257ba5750233 | |
parent | 7a3f120155038f909e149d04d44bef801e3bf8fc (diff) | |
download | wpa_supplicant_8-f0def8fc1801c1917262bd56d599b57361329dad.tar.gz |
wifi: Fix incorrect iface when handling interface init failure
The hostapd should report bridged AP iface failure to the frameworks
in bridged AP use case.
Bug: 200272186
Test: Manual Test, simulate interface init failure and check the result.
Change-Id: I32e88fd6beca0aeb81c89648c6a950b69e65cef7
-rw-r--r-- | hostapd/hidl/1.3/hostapd.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hostapd/hidl/1.3/hostapd.cpp b/hostapd/hidl/1.3/hostapd.cpp index 6add761e..f9d26474 100644 --- a/hostapd/hidl/1.3/hostapd.cpp +++ b/hostapd/hidl/1.3/hostapd.cpp @@ -879,8 +879,8 @@ V1_2::HostapdStatus Hostapd::addSingleAccessPoint( // Invoke the failure callback on all registered // clients. for (const auto& callback : callbacks_) { - callback->onFailure( - iface_hapd->conf->iface); + callback->onFailure(strlen(iface_hapd->conf->bridge) > 0 ? + iface_hapd->conf->bridge : iface_hapd->conf->iface); } } }; |