diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-02-17 02:28:40 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-02-17 02:28:40 +0000 |
commit | 47a01b785f258d8eb3f88e54d1a011a10157f1b1 (patch) | |
tree | e792bb568ad24fa6ab55d8fb4f78dd5460c9f148 | |
parent | 2036aa2e85d942007df7332f66d4dfc29472d529 (diff) | |
parent | f4ca30e56e84b8dc94c8dd28ee0ebeea85a41a41 (diff) | |
download | libhardware_legacy-47a01b785f258d8eb3f88e54d1a011a10157f1b1.tar.gz |
Snap for 9617930 from f4ca30e56e84b8dc94c8dd28ee0ebeea85a41a41 to udc-release
Change-Id: Iafe9a5b57fcec60bb843fbae3c9896a7f6c9ec9a
-rw-r--r-- | include/hardware_legacy/wifi_hal.h | 17 | ||||
-rw-r--r-- | include/hardware_legacy/wifi_nan.h | 27 |
2 files changed, 42 insertions, 2 deletions
diff --git a/include/hardware_legacy/wifi_hal.h b/include/hardware_legacy/wifi_hal.h index 5a3148a..e2e2bd6 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, @@ -459,6 +467,7 @@ void wifi_get_error_info(wifi_error err, const char **msg); // return a pointer #define WIFI_FEATURE_P2P_RAND_MAC (uint64_t)0x80000000 // Support P2P MAC randomization #define WIFI_FEATURE_INFRA_60G (uint64_t)0x100000000 // Support for 60GHz Band #define WIFI_FEATURE_AFC_CHANNEL (uint64_t)0x200000000 // Support for setting 6GHz AFC channel allowance +#define WIFI_FEATURE_T2LM_NEGO (uint64_t)0x400000000 // Support for TID-To-Link mapping negotiation // Add more features here #define IS_MASK_SET(mask, flags) (((flags) & (mask)) == (mask)) @@ -1236,6 +1245,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 diff --git a/include/hardware_legacy/wifi_nan.h b/include/hardware_legacy/wifi_nan.h index e0b93d8..d8c6824 100644 --- a/include/hardware_legacy/wifi_nan.h +++ b/include/hardware_legacy/wifi_nan.h @@ -95,7 +95,9 @@ typedef enum { NAN_PAIRING_RESPONDER_RESPONSE = 19, NAN_BOOTSTRAPPING_INITIATOR_RESPONSE = 20, NAN_BOOTSTRAPPING_RESPONDER_RESPONSE = 21, - NAN_PAIRING_END = 22 + NAN_PAIRING_END = 22, + NAN_SUSPEND_REQUEST_RESPONSE = 23, + NAN_RESUME_REQUEST_RESPONSE = 24 } NanResponseType; /* NAN Publish Types */ @@ -197,7 +199,13 @@ typedef enum { /* if the pairing id is invalid */ NAN_STATUS_INVALID_PAIRING_ID = 13, /* if the bootstrapping id is invalid */ - NAN_STATUS_INVALID_BOOTSTRAPPING_ID = 14 + NAN_STATUS_INVALID_BOOTSTRAPPING_ID = 14, + /* If same request is received again */ + NAN_STATUS_REDUNDANT_REQUEST = 15, + /* If current request is not supported */ + NAN_STATUS_NOT_SUPPORTED = 16, + /* If no Wifi Aware connection is active */ + NAN_STATUS_NO_CONNECTION = 17, } NanStatusType; /* NAN Transmit Types */ @@ -2433,6 +2441,9 @@ typedef struct { for setting up the Secure Data Path. */ u8 scid[NAN_MAX_SCID_BUF_LEN]; + + /* Publish or Subscribe Id of an earlier Publish/Subscribe */ + u16 publish_subscribe_id; } NanDataPathInitiatorRequest; /* @@ -2485,6 +2496,9 @@ typedef struct { for setting up the Secure Data Path. */ u8 scid[NAN_MAX_SCID_BUF_LEN]; + + /* Publish or Subscribe Id of an earlier Publish/Subscribe */ + u16 publish_subscribe_id; } NanDataPathIndicationResponse; /* NDP termination info */ @@ -2916,6 +2930,14 @@ typedef struct { } NanBootstrappingConfirmInd; +/* + Event indication the device enter or exist the suspension mode +*/ +typedef struct { + /* Indication the device is suspended or not */ + bool is_suspended; +} NanSuspensionModeChangeInd; + /* Response and Event Callbacks */ typedef struct { /* NotifyResponse invoked to notify the status of the Request */ @@ -2942,6 +2964,7 @@ typedef struct { void (*EventPairingConfirm) (NanPairingConfirmInd* event); void (*EventBootstrappingRequest) (NanBootstrappingRequestInd* event); void (*EventBootstrappingConfirm) (NanBootstrappingConfirmInd* event); + void (*EventSuspensionModeChange) (NanSuspensionModeChangeInd* event); } NanCallbackHandler; /**@brief nan_enable_request |