瀏覽代碼

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>
Ganapathi Bhat 8 年之前
父節點
當前提交
2af2c2c77e
共有 1 個文件被更改,包括 0 次插入1 次删除
  1. 0 1
      drivers/net/wireless/marvell/mwifiex/scan.c

+ 0 - 1
drivers/net/wireless/marvell/mwifiex/scan.c

@@ -2790,7 +2790,6 @@ static int mwifiex_scan_specific_ssid(struct mwifiex_private *priv,
 	if (!scan_cfg)
 	if (!scan_cfg)
 		return -ENOMEM;
 		return -ENOMEM;
 
 
-	ether_addr_copy(scan_cfg->random_mac, priv->random_mac);
 	scan_cfg->ssid_list = req_ssid;
 	scan_cfg->ssid_list = req_ssid;
 	scan_cfg->num_ssids = 1;
 	scan_cfg->num_ssids = 1;