mirror of
https://github.com/torvalds/linux.git
synced 2024-12-22 02:52:56 +00:00
wl1271: remove useless 11a check when scanning
This code was a leftover of the previous scanning mechanism. The if is totally unnecessary, since both branches do the same thing. Signed-off-by: Luciano Coelho <luciano.coelho@nokia.com> Reviewed-by: Juuso Oikarinen <juuso.oikarinen@nokia.com>
This commit is contained in:
parent
76a029fbfb
commit
5924f89d65
@ -1624,10 +1624,7 @@ static int wl1271_op_hw_scan(struct ieee80211_hw *hw,
|
||||
if (ret < 0)
|
||||
goto out;
|
||||
|
||||
if (wl1271_11a_enabled())
|
||||
ret = wl1271_scan(hw->priv, ssid, len, req);
|
||||
else
|
||||
ret = wl1271_scan(hw->priv, ssid, len, req);
|
||||
ret = wl1271_scan(hw->priv, ssid, len, req);
|
||||
|
||||
wl1271_ps_elp_sleep(wl);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user