wlan: Add support to randomize probe req SA
To improve user-privacy, add support to randomize source address of
probe request frames using mac-addr and mac-mask received
cfg80211 scan request.
Change-Id: I2a191469cbea1139b0a51cbcb06e24a2af3da7fc
CRs-Fixed: 2378863
diff --git a/CORE/MAC/inc/sirApi.h b/CORE/MAC/inc/sirApi.h
index 3161471..f665446 100644
--- a/CORE/MAC/inc/sirApi.h
+++ b/CORE/MAC/inc/sirApi.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012-2017 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2012-2017, 2019 The Linux Foundation. All rights reserved.
*
* Previously licensed under the ISC license by Qualcomm Atheros, Inc.
*
@@ -913,6 +913,15 @@
/* Number of SSIDs to scan */
tANI_U8 numSsid;
+
+ /*
+ * @nl_scan is set to true if scan request is from cfg80211 sub-system and
+ * known as NL scan.
+ *
+ * @scan_randomize is set to true if NL scan requires randomization.
+ */
+ bool nl_scan;
+ bool scan_randomize;
//channelList has to be the last member of this structure. Check tSirChannelList for the reason.
/* This MUST be the last field of the structure */
@@ -5926,6 +5935,7 @@
tANI_U16 messageType;
tANI_U16 length;
tSirMacAddr macAddr;
+ bool spoof_mac_oui;
} tSirSpoofMacAddrReq, *tpSirSpoofMacAddrReq;
typedef struct