diff options
author | Luciano Coelho <luciano.coelho@nokia.com> | 2010-08-03 20:46:22 -0400 |
---|---|---|
committer | Luciano Coelho <luciano.coelho@nokia.com> | 2010-09-28 05:15:05 -0400 |
commit | 5924f89d6597cd7ba014128ded64b2c7450c369c (patch) | |
tree | 513865ccf6d0fdae9032e639ac4cee997321c5b0 /drivers/net/wireless/wl12xx | |
parent | 76a029fbfb18c42f75c891842df26605ef87add0 (diff) |
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>
Diffstat (limited to 'drivers/net/wireless/wl12xx')
-rw-r--r-- | drivers/net/wireless/wl12xx/wl1271_main.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/net/wireless/wl12xx/wl1271_main.c b/drivers/net/wireless/wl12xx/wl1271_main.c index 02ad6c648115..b42ee484a86f 100644 --- a/drivers/net/wireless/wl12xx/wl1271_main.c +++ b/drivers/net/wireless/wl12xx/wl1271_main.c | |||
@@ -1624,10 +1624,7 @@ static int wl1271_op_hw_scan(struct ieee80211_hw *hw, | |||
1624 | if (ret < 0) | 1624 | if (ret < 0) |
1625 | goto out; | 1625 | goto out; |
1626 | 1626 | ||
1627 | if (wl1271_11a_enabled()) | 1627 | ret = wl1271_scan(hw->priv, ssid, len, req); |
1628 | ret = wl1271_scan(hw->priv, ssid, len, req); | ||
1629 | else | ||
1630 | ret = wl1271_scan(hw->priv, ssid, len, req); | ||
1631 | 1628 | ||
1632 | wl1271_ps_elp_sleep(wl); | 1629 | wl1271_ps_elp_sleep(wl); |
1633 | 1630 | ||