OSDN Git Service

[AWARE]: Enable Discovery MAC addr randomization
authorSubhani Shaik <subhanis@codeaurora.org>
Fri, 28 Oct 2016 06:08:20 +0000 (23:08 -0700)
committerEtan Cohen <etancohen@google.com>
Mon, 12 Dec 2016 22:23:18 +0000 (14:23 -0800)
By default discovery MAC address randomization is enabled
and default(maximum) interval value is 30 minutes(1800 seconds).
Nan enable and config can specify the interval value in seconds.
Value of zero disables discovery MAC address randomization.

Bug: 33386762
Test: builds
Change-Id: I5dc10db8535227575f96635604665b6f52f8d507

include/hardware_legacy/wifi_nan.h

index 70c1cfa..bf77b76 100644 (file)
@@ -785,6 +785,14 @@ typedef struct {
 
     /* Configure 2.4/5GHz DW */
     NanConfigDW config_dw;
+
+    /*
+       By default discovery MAC address randomization is enabled
+       and default interval value is 30 minutes i.e. 1800 seconds.
+       The value 0 is used to disable MAC addr randomization.
+    */
+    u8 config_disc_mac_addr_randomization;
+    u16 disc_mac_addr_rand_interval_sec;
 } NanEnableRequest;
 
 /*
@@ -1165,6 +1173,13 @@ typedef struct {
     NanFurtherAvailabilityMap fam_val;
     /* Configure 2.4/5GHz DW */
     NanConfigDW config_dw;
+    /*
+       By default discovery MAC address randomization is enabled
+       and default interval value is 30 minutes i.e. 1800 seconds.
+       The value 0 is used to disable MAC addr randomization.
+    */
+    u8 config_disc_mac_addr_randomization;
+    u16 disc_mac_addr_rand_interval_sec;
 } NanConfigRequest;
 
 /*