summaryrefslogtreecommitdiff
path: root/drivers/net/wireless
diff options
context:
space:
mode:
authorGanapathi Bhat <gbhat@marvell.com>2017-08-10 18:11:25 +0530
committerKalle Valo <kvalo@codeaurora.org>2017-08-17 09:59:39 +0300
commit2af2c2c77e5a89a02f508571c3994d9e78f9013d (patch)
tree41c5e9be6a124be53f5cb58a62f8f90df1fb1c2e /drivers/net/wireless
parent3d6b2d4e36e5007ea21c95451edb800203ff9015 (diff)
mwifiex: do not use random MAC for pre-association scanning
Driver should use random MAC address only if the scan is requested by user(provided NL80211_SCAN_FLAG_RANDOM_ADDR is set in scan request). It should not be used for a scan performed before association. Signed-off-by: Ganapathi Bhat <gbhat@marvell.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r--drivers/net/wireless/marvell/mwifiex/scan.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/wireless/marvell/mwifiex/scan.c b/drivers/net/wireless/marvell/mwifiex/scan.c
index d8e8b857ddfb..79b4aff3509e 100644
--- a/drivers/net/wireless/marvell/mwifiex/scan.c
+++ b/drivers/net/wireless/marvell/mwifiex/scan.c
@@ -2790,7 +2790,6 @@ static int mwifiex_scan_specific_ssid(struct mwifiex_private *priv,
if (!scan_cfg)
return -ENOMEM;
- ether_addr_copy(scan_cfg->random_mac, priv->random_mac);
scan_cfg->ssid_list = req_ssid;
scan_cfg->num_ssids = 1;