diff options
author | Mahesh KKV <maheshkkv@google.com> | 2023-02-08 09:39:21 -0800 |
---|---|---|
committer | maheshkkv <maheshkkv@google.com> | 2023-02-15 12:15:09 -0800 |
commit | da7fe36ab51aef50268e0f3fbe4fe0489113aa8d (patch) | |
tree | 70cae4b4a6d0d5fd76bb5d36ea54a1a717909bd1 | |
parent | b505efe7ffcc8afab79bb72df0d1cdc158b12ee6 (diff) | |
download | libhardware_legacy-da7fe36ab51aef50268e0f3fbe4fe0489113aa8d.tar.gz |
Add wifi hal API for Multi-Link Operation mode
Bug: 268235139
Test: Build successfully
Change-Id: Ia103ecc2b5cad29520c7b4235ccc051629561fdc
-rw-r--r-- | include/hardware_legacy/wifi_hal.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/include/hardware_legacy/wifi_hal.h b/include/hardware_legacy/wifi_hal.h index 17bc376..9030129 100644 --- a/include/hardware_legacy/wifi_hal.h +++ b/include/hardware_legacy/wifi_hal.h @@ -65,6 +65,14 @@ typedef enum { WIFI_CHAN_WIDTH_INVALID = -1 } wifi_channel_width; +/* Multi-Link Operation modes */ +typedef enum { + WIFI_MLO_MODE_DEFAULT = 0, + WIFI_MLO_MODE_LOW_LATENCY = 1, + WIFI_MLO_MODE_HIGH_THROUGHPUT = 2, + WIFI_MLO_MODE_LOW_POWER = 3, +} wifi_mlo_mode; + /* Pre selected Power scenarios to be applied from BDF file */ typedef enum { WIFI_POWER_SCENARIO_INVALID = -2, @@ -1232,6 +1240,14 @@ typedef struct { wifi_interface_handle iface, NanPairingEndRequest *msg); + /**@brief wifi_set_mlo_mode + * Set Multi-Link Operation mode. + * @param handle global wifi_handle + * @param mode: MLO mode + * @return Synchronous wifi_error + */ + wifi_error (*wifi_set_mlo_mode)(wifi_handle handle, wifi_mlo_mode mode); + /* * when adding new functions make sure to add stubs in * wifi_legacy_hal_stubs.cpp::initHalFuncTableWithStubs |