From 2a685ec414827d135ee2788e42eed8021349aae1 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sat, 18 Oct 2014 17:38:59 +0000 Subject: mac80211: update to 2014-10-08 Signed-off-by: Felix Fietkau git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42952 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- .../305-ath9k-Process-beacons-properly.patch | 37 ++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 package/kernel/mac80211/patches/305-ath9k-Process-beacons-properly.patch (limited to 'package/kernel/mac80211/patches/305-ath9k-Process-beacons-properly.patch') diff --git a/package/kernel/mac80211/patches/305-ath9k-Process-beacons-properly.patch b/package/kernel/mac80211/patches/305-ath9k-Process-beacons-properly.patch new file mode 100644 index 0000000000..36da40402a --- /dev/null +++ b/package/kernel/mac80211/patches/305-ath9k-Process-beacons-properly.patch @@ -0,0 +1,37 @@ +From: Sujith Manoharan +Date: Fri, 17 Oct 2014 07:40:10 +0530 +Subject: [PATCH] ath9k: Process beacons properly + +When the current operating channel context has +been marked as ATH_CHANCTX_STATE_FORCE_ACTIVE, +do not process beacons that might be received, +since we have to wait for the station to become +authorized. + +Also, since the cached TSF value will be zero +initially do not rearm the timer in this +case when a beacon is received, since it results +in spurious values. + +Signed-off-by: Sujith Manoharan +--- + +--- a/drivers/net/wireless/ath/ath9k/channel.c ++++ b/drivers/net/wireless/ath/ath9k/channel.c +@@ -495,10 +495,15 @@ void ath_chanctx_event(struct ath_softc + sc->cur_chan == &sc->offchannel.chan) + break; + +- ath_chanctx_adjust_tbtt_delta(sc); + sc->sched.beacon_pending = false; + sc->sched.beacon_miss = 0; + ++ if (sc->sched.state == ATH_CHANCTX_STATE_FORCE_ACTIVE || ++ !sc->cur_chan->tsf_val) ++ break; ++ ++ ath_chanctx_adjust_tbtt_delta(sc); ++ + /* TSF time might have been updated by the incoming beacon, + * need update the channel switch timer to reflect the change. + */ -- cgit v1.2.3