summaryrefslogtreecommitdiffstats
path: root/wifi
diff options
context:
space:
mode:
authorTreeHugger Robot <treehugger-gerrit@google.com>2019-07-19 00:57:14 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2019-07-19 00:57:14 +0000
commit896c71a7d29c63f8c4c12e41cd56781840931122 (patch)
treebce2775ad1326faa20668bfb5d3c693ae8e5c300 /wifi
parentfc480f5904dd5a1dcd3ac32febd666ee7bb9d0fe (diff)
parent9a8538b4eed2eed8acd21fa3d056d93e44704af5 (diff)
downloadandroid_hardware_interfaces-896c71a7d29c63f8c4c12e41cd56781840931122.tar.gz
android_hardware_interfaces-896c71a7d29c63f8c4c12e41cd56781840931122.tar.bz2
android_hardware_interfaces-896c71a7d29c63f8c4c12e41cd56781840931122.zip
Merge "hostapd(vts): Add a property for SAP interface" into qt-dev
Diffstat (limited to 'wifi')
-rw-r--r--wifi/hostapd/1.1/vts/functional/hostapd_hidl_test.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/wifi/hostapd/1.1/vts/functional/hostapd_hidl_test.cpp b/wifi/hostapd/1.1/vts/functional/hostapd_hidl_test.cpp
index 26a58b2c6..7aaad02ac 100644
--- a/wifi/hostapd/1.1/vts/functional/hostapd_hidl_test.cpp
+++ b/wifi/hostapd/1.1/vts/functional/hostapd_hidl_test.cpp
@@ -56,6 +56,8 @@ class HostapdHidlTest : public ::testing::VtsHalHidlTargetTestBase {
protected:
std::string getPrimaryWlanIfaceName() {
std::array<char, PROPERTY_VALUE_MAX> buffer;
+ auto res = property_get("wifi.sap.interface", buffer.data(), nullptr);
+ if (res > 0) return buffer.data();
property_get("wifi.interface", buffer.data(), "wlan0");
return buffer.data();
}