mwifiex: do not use random MAC for pre-association scanning
authorGanapathi Bhat <gbhat@marvell.com>
Thu, 10 Aug 2017 12:41:25 +0000 (18:11 +0530)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 17 Aug 2017 06:59:39 +0000 (09:59 +0300)
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>
drivers/net/wireless/marvell/mwifiex/scan.c

index d8e8b857ddfbf761e9d11335e07cafd009cf2789..79b4aff3509ee76e27e48484b43a88f257a47de5 100644 (file)
@@ -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;