summaryrefslogtreecommitdiffstats
path: root/wifi
diff options
context:
space:
mode:
authorRoshan Pius <rpius@google.com>2019-07-10 08:33:47 -0700
committerEtan Cohen <etancohen@google.com>2019-07-18 14:38:41 +0000
commit9a8538b4eed2eed8acd21fa3d056d93e44704af5 (patch)
treeb4c554aad517ea968fe085baee7f223b0955eb57 /wifi
parent5927a9b1f1d48a547755753414a960cb22661059 (diff)
downloadandroid_hardware_interfaces-9a8538b4eed2eed8acd21fa3d056d93e44704af5.tar.gz
android_hardware_interfaces-9a8538b4eed2eed8acd21fa3d056d93e44704af5.tar.bz2
android_hardware_interfaces-9a8538b4eed2eed8acd21fa3d056d93e44704af5.zip
hostapd(vts): Add a property for SAP interface
Changes to the VTS test to support OEM's who use a separate dedicated SAP interface. Note: This is a VTS test change only. The default implementation does not still support a dedicated SAP interface (OEM's can obviously customize the default implementation for their devices). Bug: 136645414 Test: None (verified by partner OEM) Change-Id: I42b87bf90cfa90c7c218309164ab2b77f3685f9e
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();
}