]> Pileus Git - ~andy/linux/commitdiff
mac80211: probe the AP when resuming
authorFelix Fietkau <nbd@openwrt.org>
Tue, 23 Nov 2010 19:28:03 +0000 (20:28 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 24 Nov 2010 21:19:34 +0000 (16:19 -0500)
Check the connection by probing the AP (either using nullfunc or a
probe request). If nullfunc probing is supported and the assoc is no
longer valid, the AP will send a disassoc/deauth immediately.

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/mlme.c

index 729aba49cf98470deb29d7ec0587b95e2ab3c5d9..849d9c639add2d7f0656c094d05a0cd29b374d1a 100644 (file)
@@ -2021,6 +2021,7 @@ void ieee80211_sta_restart(struct ieee80211_sub_if_data *sdata)
        if (test_and_clear_bit(TMR_RUNNING_CHANSW, &ifmgd->timers_running))
                add_timer(&ifmgd->chswitch_timer);
        ieee80211_sta_reset_beacon_monitor(sdata);
+       ieee80211_restart_sta_timer(sdata);
 }
 #endif