mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 11:36:00 +00:00
Merge "hostapd(vts): Add a property for SAP interface" into qt-dev
am: 896c71a7d2
Change-Id: Ib1c81c3a07e8145edc00e783357079304eff9f75
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user