wl1271: Fix scan parameter handling for 5GHz
The 5GHz bands were scanned without the proper IE's in place, preventing proper 5GHz scanning. This patches fixes the problem by storing a pointer to the scan request (with the IE's) for all iterations of scan. Signed-off-by: Juuso Oikarinen <juuso.oikarinen@nokia.com> Reviewed-by: Luciano Coelho <luciano.coelho@nokia.com> Signed-off-by: Luciano Coelho <luciano.coelho@nokia.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:

committed by
John W. Linville

parent
5da54f9499
commit
4fb26fa9ae
@@ -1634,13 +1634,11 @@ static int wl1271_op_hw_scan(struct ieee80211_hw *hw,
|
||||
goto out;
|
||||
|
||||
if (wl1271_11a_enabled())
|
||||
ret = wl1271_cmd_scan(hw->priv, ssid, len,
|
||||
req->ie, req->ie_len, 1, 0,
|
||||
WL1271_SCAN_BAND_DUAL, 3);
|
||||
ret = wl1271_cmd_scan(hw->priv, ssid, len, req,
|
||||
1, 0, WL1271_SCAN_BAND_DUAL, 3);
|
||||
else
|
||||
ret = wl1271_cmd_scan(hw->priv, ssid, len,
|
||||
req->ie, req->ie_len, 1, 0,
|
||||
WL1271_SCAN_BAND_2_4_GHZ, 3);
|
||||
ret = wl1271_cmd_scan(hw->priv, ssid, len, req,
|
||||
1, 0, WL1271_SCAN_BAND_2_4_GHZ, 3);
|
||||
|
||||
wl1271_ps_elp_sleep(wl);
|
||||
|
||||
|
Reference in New Issue
Block a user