diff options
author | Shahar Levi <shahar_levi@ti.com> | 2011-05-16 15:35:30 +0300 |
---|---|---|
committer | Luciano Coelho <coelho@ti.com> | 2011-06-27 10:15:51 +0300 |
commit | 0e44eb209343663ad7041ebf9f5d4c393bd89ae9 (patch) | |
tree | 8ac4159910649cc9c08128ba538e35649a6959f9 /drivers/net/wireless/wl12xx/ps.c | |
parent | c84368e01a00f449d97e8a59e1b0c24dcf70a8b3 (diff) | |
download | talos-obmc-linux-0e44eb209343663ad7041ebf9f5d4c393bd89ae9.tar.gz talos-obmc-linux-0e44eb209343663ad7041ebf9f5d4c393bd89ae9.zip |
wl12xx: Enable beacon early termination in 2.4GHz band only
Beacon early termination doesn't help much in the 5GHz band and masks
channel switch IE Beacons. Thus, change the code to use BET only in
2.4GHz.
[Reworded the commit log slightly -- Luca.]
Signed-off-by: Shahar Levi <shahar_levi@ti.com>
Signed-off-by: Luciano Coelho <coelho@ti.com>
Diffstat (limited to 'drivers/net/wireless/wl12xx/ps.c')
-rw-r--r-- | drivers/net/wireless/wl12xx/ps.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/net/wireless/wl12xx/ps.c b/drivers/net/wireless/wl12xx/ps.c index b59b67711a17..d3e377d7fe62 100644 --- a/drivers/net/wireless/wl12xx/ps.c +++ b/drivers/net/wireless/wl12xx/ps.c @@ -169,9 +169,11 @@ int wl1271_ps_set_mode(struct wl1271 *wl, enum wl1271_cmd_ps_mode mode, wl1271_debug(DEBUG_PSM, "leaving psm"); /* disable beacon early termination */ - ret = wl1271_acx_bet_enable(wl, false); - if (ret < 0) - return ret; + if (wl->band == IEEE80211_BAND_2GHZ) { + ret = wl1271_acx_bet_enable(wl, false); + if (ret < 0) + return ret; + } /* disable beacon filtering */ ret = wl1271_acx_beacon_filter_opt(wl, false); |