aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLes Lee <lesl@google.com>2021-09-23 10:18:36 +0800
committerLes Lee <lesl@google.com>2021-09-23 10:18:36 +0800
commitf0def8fc1801c1917262bd56d599b57361329dad (patch)
treef40bedc36a4766279e2a267986e9257ba5750233
parent7a3f120155038f909e149d04d44bef801e3bf8fc (diff)
downloadwpa_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.cpp4
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);
}
}
};