You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
1.2 KiB
37 lines
1.2 KiB
11 years ago
|
From 4101e8dc540d19f1f6c24930629149191786e4cd Mon Sep 17 00:00:00 2001
|
||
|
From: Arik Nemtsov <arik@wizery.com>
|
||
|
Date: Mon, 9 Sep 2013 16:48:59 +0300
|
||
|
Subject: [PATCH 27/75] wlcore: don't switch channels on disconnected STA vifs
|
||
|
|
||
|
Sending the FW a channel switch command on a disconnected vif may result
|
||
|
in a beacon loss event. Avoid this edge case.
|
||
|
|
||
|
Signed-off-by: Arik Nemtsov <arik@wizery.com>
|
||
|
---
|
||
|
drivers/net/wireless/ti/wlcore/main.c | 7 +++++++
|
||
|
1 file changed, 7 insertions(+)
|
||
|
|
||
|
--- a/drivers/net/wireless/ti/wlcore/main.c
|
||
|
+++ b/drivers/net/wireless/ti/wlcore/main.c
|
||
11 years ago
|
@@ -5148,6 +5148,10 @@ static void wl12xx_op_channel_switch(str
|
||
11 years ago
|
if (unlikely(wl->state == WLCORE_STATE_OFF)) {
|
||
|
wl12xx_for_each_wlvif_sta(wl, wlvif) {
|
||
|
struct ieee80211_vif *vif = wl12xx_wlvif_to_vif(wlvif);
|
||
|
+
|
||
|
+ if (!test_bit(WLVIF_FLAG_STA_ASSOCIATED, &wlvif->flags))
|
||
|
+ continue;
|
||
|
+
|
||
|
ieee80211_chswitch_done(vif, false);
|
||
|
}
|
||
|
goto out;
|
||
11 years ago
|
@@ -5163,6 +5167,9 @@ static void wl12xx_op_channel_switch(str
|
||
11 years ago
|
wl12xx_for_each_wlvif_sta(wl, wlvif) {
|
||
|
unsigned long delay_usec;
|
||
|
|
||
|
+ if (!test_bit(WLVIF_FLAG_STA_ASSOCIATED, &wlvif->flags))
|
||
|
+ continue;
|
||
|
+
|
||
|
ret = wl->ops->channel_switch(wl, wlvif, ch_switch);
|
||
|
if (ret)
|
||
|
goto out_sleep;
|