summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-02-23 07:54:58 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2023-02-23 07:54:58 +0000
commit10effc585b890b703f479e0e201011ddd30a020b (patch)
treea4a6c81e119b54667fbbcf66ee8b3921e8824298
parent40de8e3eeb56e9e1cb329e519858aa278fa60e0c (diff)
parentda5414dd6c900fe518fbd6b71fb9dbeb8c45b762 (diff)
downloadlibhardware_legacy-10effc585b890b703f479e0e201011ddd30a020b.tar.gz
Snap for 9642788 from 2b3c3a49bf1b49101f6615f967a64f7e01051afc to udc-release am: da5414dd6c
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/libhardware_legacy/+/21553980 Change-Id: I9d45509b73dbf0f076ba5bbc195565a1a805f0f7 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-rw-r--r--include/hardware_legacy/wifi_nan.h58
1 files changed, 56 insertions, 2 deletions
diff --git a/include/hardware_legacy/wifi_nan.h b/include/hardware_legacy/wifi_nan.h
index d8c6824..d2bb621 100644
--- a/include/hardware_legacy/wifi_nan.h
+++ b/include/hardware_legacy/wifi_nan.h
@@ -356,8 +356,8 @@ typedef struct {
#define NAN_CIPHER_SUITE_SHARED_KEY_256_MASK 0x02
#define NAN_CIPHER_SUITE_PUBLIC_KEY_2WDH_128_MASK 0x04
#define NAN_CIPHER_SUITE_PUBLIC_KEY_2WDH_256_MASK 0x08
-#define NAN_CIPHER_SUITE_PUBLIC_KEY_PASN_128_MASK 0x10
-#define NAN_CIPHER_SUITE_PUBLIC_KEY_PASN_256_MASK 0x20
+#define NAN_CIPHER_SUITE_PUBLIC_KEY_PASN_128_MASK 0x40
+#define NAN_CIPHER_SUITE_PUBLIC_KEY_PASN_256_MASK 0x80
/* NAN ranging indication condition MASKS */
#define NAN_RANGING_INDICATE_CONTINUOUS_MASK 0x01
@@ -414,6 +414,25 @@ typedef struct {
if QOS is required or not.
*/
NanQosCfgStatus qos_cfg;
+ /*
+ Config to set FSD with Gas bit
+ in the SDEA Control Field.
+ */
+ u8 config_fsd_gas;
+ u8 enable_fsd_gas;
+
+ /*
+ Config to set FSD Required bit
+ in the SDEA Control Field.
+ */
+ u8 config_fsd_req;
+ u8 enable_fsd_req;
+
+ /*
+ Config to set gtk protection bit
+ in the SDEA Control Field.
+ */
+ u8 gtk_protection;
} NanSdeaCtrlParams;
/*
@@ -1119,6 +1138,20 @@ typedef struct {
*/
u8 config_instant_mode_channel;
wifi_channel instant_mode_channel;
+
+ /*
+ Enable/Disable unsync service discovery.
+ 0 - Disable
+ 1 - Enable
+ */
+ u8 config_unsync_srvdsc;
+ u8 enable_unsync_srvdsc;
+
+ /*
+ Configure regulatory information.
+ */
+ u8 config_reg_info;
+ u8 reg_info_val;
} NanEnableRequest;
/*
@@ -1295,6 +1328,12 @@ typedef struct {
is_suspension_supported is false in NanCapabilities.
*/
bool enable_suspendability;
+
+ /* s3 capabilities */
+ u16 s3_capabilities;
+
+ /* cipher capabilities */
+ u8 cipher_capabilities;
} NanPublishRequest;
/*
@@ -1474,6 +1513,9 @@ typedef struct {
is_suspension_supported is false in NanCapabilities.
*/
bool enable_suspendability;
+
+ /* cipher capabilities */
+ u8 cipher_capabilities;
} NanSubscribeRequest;
/*
@@ -2499,8 +2541,20 @@ typedef struct {
/* Publish or Subscribe Id of an earlier Publish/Subscribe */
u16 publish_subscribe_id;
+
+ /*
+ Discovery MAC addr of the publisher/peer
+ */
+ u8 peer_disc_mac_addr[NAN_MAC_ADDR_LEN];
} NanDataPathIndicationResponse;
+/* Sub slot parameters */
+typedef struct {
+ u8 entry_control;
+ u16 time_bitmap_control;
+ u32 time_bitmap;
+} NanS3Params;
+
/* NDP termination info */
typedef struct {
u8 num_ndp_instances;