aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorEliad Peller <eliad@wizery.com>2011-10-23 02:21:55 -0400
committerLuciano Coelho <coelho@ti.com>2011-11-08 08:58:46 -0500
commitc31e494689128203ef04fb946f05a72d33eee948 (patch)
tree02b8b3d85fede58efa5432aa4a59d85768a73c4b /drivers
parent8a0f2ee37810aa4a4f46baf08b2ad587e138eb58 (diff)
wl12xx: handle idle changes per-interface
Idle changes are currently handled per hardware. However, some operations should be done only per-interface. Signed-off-by: Eliad Peller <eliad@wizery.com> Signed-off-by: Arik Nemtsov <arik@wizery.com> Signed-off-by: Luciano Coelho <coelho@ti.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/wireless/wl12xx/main.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/drivers/net/wireless/wl12xx/main.c b/drivers/net/wireless/wl12xx/main.c
index aa1c0f3ebee..dbb088eadf7 100644
--- a/drivers/net/wireless/wl12xx/main.c
+++ b/drivers/net/wireless/wl12xx/main.c
@@ -2540,13 +2540,6 @@ static int wl12xx_config_vif(struct wl1271 *wl, struct wl12xx_vif *wlvif,
2540 } 2540 }
2541 } 2541 }
2542 2542
2543 if (changed & IEEE80211_CONF_CHANGE_IDLE && !is_ap) {
2544 ret = wl1271_sta_handle_idle(wl, wlvif,
2545 conf->flags & IEEE80211_CONF_IDLE);
2546 if (ret < 0)
2547 wl1271_warning("idle mode change failed %d", ret);
2548 }
2549
2550 /* 2543 /*
2551 * if mac80211 changes the PSM mode, make sure the mode is not 2544 * if mac80211 changes the PSM mode, make sure the mode is not
2552 * incorrectly changed after the pspoll failure active window. 2545 * incorrectly changed after the pspoll failure active window.
@@ -3617,6 +3610,12 @@ static void wl1271_bss_info_changed_sta(struct wl1271 *wl,
3617 do_join = true; 3610 do_join = true;
3618 } 3611 }
3619 3612
3613 if (changed & BSS_CHANGED_IDLE) {
3614 ret = wl1271_sta_handle_idle(wl, wlvif, bss_conf->idle);
3615 if (ret < 0)
3616 wl1271_warning("idle mode change failed %d", ret);
3617 }
3618
3620 if ((changed & BSS_CHANGED_CQM)) { 3619 if ((changed & BSS_CHANGED_CQM)) {
3621 bool enable = false; 3620 bool enable = false;
3622 if (bss_conf->cqm_rssi_thold) 3621 if (bss_conf->cqm_rssi_thold)