diff options
author | Luciano Coelho <luciano.coelho@nokia.com> | 2010-08-04 02:46:22 +0200 |
---|---|---|
committer | Luciano Coelho <luciano.coelho@nokia.com> | 2010-09-28 11:15:05 +0200 |
commit | 5924f89d6597cd7ba014128ded64b2c7450c369c (patch) | |
tree | 513865ccf6d0fdae9032e639ac4cee997321c5b0 | |
parent | wl1271: Fix scan race condition (diff) | |
download | linux-5924f89d6597cd7ba014128ded64b2c7450c369c.tar.xz linux-5924f89d6597cd7ba014128ded64b2c7450c369c.zip |
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>
-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, 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); |