qcacmn: Enable scan mac randomization if user cfg is set
Enable scan randomization only if gEnableMacAddrSpoof configuration is enabled Change-Id: I1b9accb7fe1049ee6c5dda2a4f5920c0908196ff CRs-Fixed: 2104796
This commit is contained in:

committed by
snandini

parent
959cb86f82
commit
584e6617ca
@@ -81,6 +81,7 @@ static void wlan_fill_scan_rand_attrs(struct wlan_objmgr_vdev *vdev,
|
||||
uint8_t *addr,
|
||||
uint8_t *mask)
|
||||
{
|
||||
*randomize = false;
|
||||
if (!(flags & NL80211_SCAN_FLAG_RANDOM_ADDR))
|
||||
return;
|
||||
|
||||
@@ -531,8 +532,8 @@ int wlan_cfg80211_sched_scan_start(struct wlan_objmgr_pdev *pdev,
|
||||
cfg80211_notice("Number of hidden networks being Configured = %d",
|
||||
request->n_ssids);
|
||||
|
||||
wlan_pno_scan_rand_attr(vdev, request, req);
|
||||
|
||||
if (req->scan_random.randomize)
|
||||
wlan_pno_scan_rand_attr(vdev, request, req);
|
||||
/*
|
||||
* Before Kernel 4.4
|
||||
* Driver gets only one time interval which is hard coded in
|
||||
@@ -1314,7 +1315,8 @@ int wlan_cfg80211_scan(struct wlan_objmgr_pdev *pdev,
|
||||
}
|
||||
|
||||
if (!is_p2p_scan) {
|
||||
wlan_scan_rand_attrs(vdev, request, req);
|
||||
if (req->scan_req.scan_random.randomize)
|
||||
wlan_scan_rand_attrs(vdev, request, req);
|
||||
if (ucfg_ie_whitelist_enabled(psoc, vdev) &&
|
||||
ucfg_copy_ie_whitelist_attrs(psoc,
|
||||
&req->scan_req.ie_whitelist))
|
||||
|
Reference in New Issue
Block a user