Merge changes I5edfdc98,I42b87bf9 into android10-tests-dev

* changes:
  hostapd(vts): Use the correct syntax for vendor prop
  hostapd(vts): Add a property for SAP interface
This commit is contained in:
Treehugger Robot
2019-10-25 01:44:51 +00:00
committed by Gerrit Code Review

View File

@@ -56,6 +56,9 @@ class HostapdHidlTest : public ::testing::VtsHalHidlTargetTestBase {
protected:
std::string getPrimaryWlanIfaceName() {
std::array<char, PROPERTY_VALUE_MAX> buffer;
auto res = property_get("ro.vendor.wifi.sap.interface",
buffer.data(), nullptr);
if (res > 0) return buffer.data();
property_get("wifi.interface", buffer.data(), "wlan0");
return buffer.data();
}