aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeemu Paasikivi <ext-teemu.3.paasikivi@nokia.com>2010-03-26 06:53:26 -0400
committerJohn W. Linville <linville@tuxdriver.com>2010-03-31 14:39:15 -0400
commit64e29e447ec01d2130b4c68f3459cfaa94fa138b (patch)
tree791f2952fcff74cbcfd2d225fc3b18ebdabc8f46
parent60e84c2ebb7b04361cf1ba0d325cc93366bd04a6 (diff)
wl1271: Removed checking of PSM from handling BSS_LOST_EVENT
Change the driver to call ieee80211_beacon_loss function always when BSS_LOST_EVENT is received. Reason for the change is that entering PSM might fail before driver receives BSS_LOST_EVENT. In such case the driver would disable PSM and the stack would not be notified about beacon loss and connection loss detection would be delayed by tens of seconds. Signed-off-by: Teemu Paasikivi <ext-teemu.3.paasikivi@nokia.com> Reviewed-by: Juuso Oikarinen <juuso.oikarinen@nokia.com> Signed-off-by: Luciano Coelho <luciano.coelho@nokia.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r--drivers/net/wireless/wl12xx/wl1271_event.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/net/wireless/wl12xx/wl1271_event.c b/drivers/net/wireless/wl12xx/wl1271_event.c
index 4d35af96c597..a5c1910a0247 100644
--- a/drivers/net/wireless/wl12xx/wl1271_event.c
+++ b/drivers/net/wireless/wl12xx/wl1271_event.c
@@ -173,9 +173,12 @@ static int wl1271_event_process(struct wl1271 *wl, struct event_mailbox *mbox)
173 * The BSS_LOSE_EVENT_ID is only needed while psm (and hence beacon 173 * The BSS_LOSE_EVENT_ID is only needed while psm (and hence beacon
174 * filtering) is enabled. Without PSM, the stack will receive all 174 * filtering) is enabled. Without PSM, the stack will receive all
175 * beacons and can detect beacon loss by itself. 175 * beacons and can detect beacon loss by itself.
176 *
177 * As there's possibility that the driver disables PSM before receiving
178 * BSS_LOSE_EVENT, beacon loss has to be reported to the stack.
179 *
176 */ 180 */
177 if (vector & BSS_LOSE_EVENT_ID && 181 if (vector & BSS_LOSE_EVENT_ID) {
178 test_bit(WL1271_FLAG_PSM, &wl->flags)) {
179 wl1271_debug(DEBUG_EVENT, "BSS_LOSE_EVENT"); 182 wl1271_debug(DEBUG_EVENT, "BSS_LOSE_EVENT");
180 183
181 /* indicate to the stack, that beacons have been lost */ 184 /* indicate to the stack, that beacons have been lost */