diff options
author | Felix Fietkau <nbd@openwrt.org> | 2014-10-18 17:38:59 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2014-10-18 17:38:59 +0000 |
commit | f0d9e712e459332ec527802f7eaca104c47b14c2 (patch) | |
tree | b03de3247dbdd3f785bda5318729be5ab75f5f95 /package/kernel/mac80211/patches/309-ath9k-Clear-NoA-schedule-properly.patch | |
parent | 6d3fd947e4aa0430f592e9e3b0eb6b78cbe21f7b (diff) | |
download | mtk-20170518-f0d9e712e459332ec527802f7eaca104c47b14c2.zip mtk-20170518-f0d9e712e459332ec527802f7eaca104c47b14c2.tar.gz mtk-20170518-f0d9e712e459332ec527802f7eaca104c47b14c2.tar.bz2 |
mac80211: update to 2014-10-08
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 42952
Diffstat (limited to 'package/kernel/mac80211/patches/309-ath9k-Clear-NoA-schedule-properly.patch')
-rw-r--r-- | package/kernel/mac80211/patches/309-ath9k-Clear-NoA-schedule-properly.patch | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/package/kernel/mac80211/patches/309-ath9k-Clear-NoA-schedule-properly.patch b/package/kernel/mac80211/patches/309-ath9k-Clear-NoA-schedule-properly.patch new file mode 100644 index 0000000..6089d60 --- /dev/null +++ b/package/kernel/mac80211/patches/309-ath9k-Clear-NoA-schedule-properly.patch @@ -0,0 +1,36 @@ +From: Sujith Manoharan <c_manoha@qca.qualcomm.com> +Date: Fri, 17 Oct 2014 07:40:14 +0530 +Subject: [PATCH] ath9k: Clear NoA schedule properly + +When an active context transitions to inactive +state, the NoA schedule needs to be removed +for the context that has beaconing enabled. +Not doing this will affect p2p clients. + +Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com> +--- + +--- a/drivers/net/wireless/ath/ath9k/channel.c ++++ b/drivers/net/wireless/ath/ath9k/channel.c +@@ -356,6 +356,21 @@ void ath_chanctx_event(struct ath_softc + "Move chanctx state from WAIT_FOR_TIMER to WAIT_FOR_BEACON\n"); + } + ++ /* ++ * When a context becomes inactive, for example, ++ * disassociation of a station context, the NoA ++ * attribute needs to be removed from subsequent ++ * beacons. ++ */ ++ if (!ctx->active && avp->noa_duration && ++ sc->sched.state != ATH_CHANCTX_STATE_WAIT_FOR_BEACON) { ++ avp->noa_duration = 0; ++ avp->periodic_noa = false; ++ ++ ath_dbg(common, CHAN_CTX, ++ "Clearing NoA schedule\n"); ++ } ++ + if (sc->sched.state != ATH_CHANCTX_STATE_WAIT_FOR_BEACON) + break; + |