From 66bab48e20f720cb753a74bf2abee0ae1a42eac4 Mon Sep 17 00:00:00 2001 From: Gabriel Biren Date: Mon, 18 Sep 2023 19:42:53 +0000 Subject: [PATCH] Add list of OuiKeyedData to the Hostapd AIDL IfaceParams type. Requires update to the latest compatibility matrix to upgrade the Hostapd HAL to V2. Bug: 296069900 Test: m Change-Id: I125937857fbc5fee0815369532e502da4c454a53 --- compatibility_matrices/compatibility_matrix.9.xml | 2 +- wifi/hostapd/aidl/Android.bp | 7 ++++++- .../current/android/hardware/wifi/hostapd/IfaceParams.aidl | 1 + .../aidl/android/hardware/wifi/hostapd/IfaceParams.aidl | 5 +++++ 4 files changed, 13 insertions(+), 2 deletions(-) diff --git a/compatibility_matrices/compatibility_matrix.9.xml b/compatibility_matrices/compatibility_matrix.9.xml index acfcf010b2..d197e5a85f 100644 --- a/compatibility_matrices/compatibility_matrix.9.xml +++ b/compatibility_matrices/compatibility_matrix.9.xml @@ -664,7 +664,7 @@ android.hardware.wifi.hostapd - 1 + 1-2 IHostapd default diff --git a/wifi/hostapd/aidl/Android.bp b/wifi/hostapd/aidl/Android.bp index 54895c17b8..cdc94bb036 100644 --- a/wifi/hostapd/aidl/Android.bp +++ b/wifi/hostapd/aidl/Android.bp @@ -27,6 +27,9 @@ aidl_interface { srcs: [ "android/hardware/wifi/hostapd/*.aidl", ], + imports: [ + "android.hardware.wifi.common-V1", + ], stability: "vintf", backend: { java: { @@ -40,6 +43,9 @@ aidl_interface { ndk: { gen_trace: true, }, + cpp: { + enabled: false, + }, }, versions_with_info: [ { @@ -47,5 +53,4 @@ aidl_interface { imports: [], }, ], - } diff --git a/wifi/hostapd/aidl/aidl_api/android.hardware.wifi.hostapd/current/android/hardware/wifi/hostapd/IfaceParams.aidl b/wifi/hostapd/aidl/aidl_api/android.hardware.wifi.hostapd/current/android/hardware/wifi/hostapd/IfaceParams.aidl index 0c88a398a3..64367bbe70 100644 --- a/wifi/hostapd/aidl/aidl_api/android.hardware.wifi.hostapd/current/android/hardware/wifi/hostapd/IfaceParams.aidl +++ b/wifi/hostapd/aidl/aidl_api/android.hardware.wifi.hostapd/current/android/hardware/wifi/hostapd/IfaceParams.aidl @@ -37,4 +37,5 @@ parcelable IfaceParams { String name; android.hardware.wifi.hostapd.HwModeParams hwModeParams; android.hardware.wifi.hostapd.ChannelParams[] channelParams; + @nullable android.hardware.wifi.common.OuiKeyedData[] vendorData; } diff --git a/wifi/hostapd/aidl/android/hardware/wifi/hostapd/IfaceParams.aidl b/wifi/hostapd/aidl/android/hardware/wifi/hostapd/IfaceParams.aidl index a8abec3c13..3f8ee39c74 100644 --- a/wifi/hostapd/aidl/android/hardware/wifi/hostapd/IfaceParams.aidl +++ b/wifi/hostapd/aidl/android/hardware/wifi/hostapd/IfaceParams.aidl @@ -16,6 +16,7 @@ package android.hardware.wifi.hostapd; +import android.hardware.wifi.common.OuiKeyedData; import android.hardware.wifi.hostapd.ChannelParams; import android.hardware.wifi.hostapd.HwModeParams; @@ -36,4 +37,8 @@ parcelable IfaceParams { * The list of the channel params for the dual interfaces. */ ChannelParams[] channelParams; + /** + * Optional vendor-specific configuration parameters. + */ + @nullable OuiKeyedData[] vendorData; }