From 9a8538b4eed2eed8acd21fa3d056d93e44704af5 Mon Sep 17 00:00:00 2001 From: Roshan Pius Date: Wed, 10 Jul 2019 08:33:47 -0700 Subject: [PATCH] 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 --- wifi/hostapd/1.1/vts/functional/hostapd_hidl_test.cpp | 2 ++ 1 file changed, 2 insertions(+) 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 26a58b2c61..7aaad02ac2 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 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(); }