summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRakesh Sunki <rsunki@codeaurora.org>2017-04-05 16:02:40 -0700
committerEtan Cohen <etancohen@google.com>2017-04-20 12:47:34 -0700
commit6451ba7735271ddf1a3e4766d16a5ea00d63a98d (patch)
tree480fb1ef41e49fa85e5b117cd445a15baea9e9b1
parent54d232d5a26556c90ed0d30f230837dd70f3eaae (diff)
downloadlibhardware_legacy-6451ba7735271ddf1a3e4766d16a5ea00d63a98d.tar.gz
[AWARE]: Add support for configuring NAN sid on subscriber side
Provide configuration support to set sid on the subscriber side sync and discovery beacons as part of NAN enable and config request. (cherry-pick of commit b2c4b3825a5b1ef4713417538755b04225b2b53d) Bug: 35195516 Test: integrated (sl4a) tests pass Change-Id: I20548928a9ad81e8d3154eb5b982fd19add7659c
-rw-r--r--include/hardware_legacy/wifi_nan.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/include/hardware_legacy/wifi_nan.h b/include/hardware_legacy/wifi_nan.h
index 02a31ce..38b4409 100644
--- a/include/hardware_legacy/wifi_nan.h
+++ b/include/hardware_legacy/wifi_nan.h
@@ -963,6 +963,16 @@ typedef struct {
BIT2 - Disable Joined Cluster Event.
*/
u8 discovery_indication_cfg; // default value 0x0
+ /*
+ BIT 0 is used to specify to include Service IDs in Sync/Discovery beacons
+ 0 - Do not include SIDs in any beacons
+ 1 - Include SIDs in all beacons.
+ Rest 7 bits are count field which allows control over the number of SIDs
+ included in the Beacon. 0 means to include as many SIDs that fit into
+ the maximum allow Beacon frame size
+ */
+ u8 config_subscribe_sid_beacon;
+ u32 subscribe_sid_beacon_val; // default value 0x0
} NanEnableRequest;
/*
@@ -1401,6 +1411,16 @@ typedef struct {
BIT2 - Disable Joined Cluster Event.
*/
u8 discovery_indication_cfg; // default value of 0
+ /*
+ BIT 0 is used to specify to include Service IDs in Sync/Discovery beacons
+ 0 - Do not include SIDs in any beacons
+ 1 - Include SIDs in all beacons.
+ Rest 7 bits are count field which allows control over the number of SIDs
+ included in the Beacon. 0 means to include as many SIDs that fit into
+ the maximum allow Beacon frame size
+ */
+ u8 config_subscribe_sid_beacon;
+ u32 subscribe_sid_beacon_val; // default value 0x0
} NanConfigRequest;
/*