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/312-ath9k-Fix-offchannel-flush-timeout.patch | |
parent | 6d3fd947e4aa0430f592e9e3b0eb6b78cbe21f7b (diff) | |
download | master-31e0f0ae-f0d9e712e459332ec527802f7eaca104c47b14c2.tar.gz master-31e0f0ae-f0d9e712e459332ec527802f7eaca104c47b14c2.tar.bz2 master-31e0f0ae-f0d9e712e459332ec527802f7eaca104c47b14c2.zip |
mac80211: update to 2014-10-08
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 42952
Diffstat (limited to 'package/kernel/mac80211/patches/312-ath9k-Fix-offchannel-flush-timeout.patch')
-rw-r--r-- | package/kernel/mac80211/patches/312-ath9k-Fix-offchannel-flush-timeout.patch | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/package/kernel/mac80211/patches/312-ath9k-Fix-offchannel-flush-timeout.patch b/package/kernel/mac80211/patches/312-ath9k-Fix-offchannel-flush-timeout.patch new file mode 100644 index 0000000000..0a4257d8a1 --- /dev/null +++ b/package/kernel/mac80211/patches/312-ath9k-Fix-offchannel-flush-timeout.patch @@ -0,0 +1,43 @@ +From: Sujith Manoharan <c_manoha@qca.qualcomm.com> +Date: Fri, 17 Oct 2014 07:40:17 +0530 +Subject: [PATCH] ath9k: Fix offchannel flush timeout + +An offchannel operation also needs to have +a flush timeout that doesn't exceed the NoA +absence duration of a GO context, so use +channel_switch_time. The first offchannel +operation is set a flush timeout of 10ms since +channel_switch_time will be zero. + +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 +@@ -207,6 +207,26 @@ void ath_chanctx_check_active(struct ath + if (!ctx) + return; + ++ if (ctx == &sc->offchannel.chan) { ++ spin_lock_bh(&sc->chan_lock); ++ ++ if (likely(sc->sched.channel_switch_time)) ++ ctx->flush_timeout = ++ usecs_to_jiffies(sc->sched.channel_switch_time); ++ else ++ ctx->flush_timeout = ++ msecs_to_jiffies(10); ++ ++ spin_unlock_bh(&sc->chan_lock); ++ ++ /* ++ * There is no need to iterate over the ++ * active/assigned channel contexts if ++ * the current context is offchannel. ++ */ ++ return; ++ } ++ + ictx = ctx; + + list_for_each_entry(avp, &ctx->vifs, list) { |