diff options
author | Felix Fietkau <nbd@openwrt.org> | 2014-11-07 19:41:07 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2014-11-07 19:41:07 +0000 |
commit | 47f462d16716fdbcb24af448009d7c84f26c33d3 (patch) | |
tree | 3bb43623cbdd8222e53e7e2a9a85122ec6ce2adc /package/kernel/mac80211/patches/312-ath9k-Fix-offchannel-flush-timeout.patch | |
parent | b798df3e960f6bcb4910a4bee447ccadc0bb7d97 (diff) | |
download | upstream-47f462d16716fdbcb24af448009d7c84f26c33d3.tar.gz upstream-47f462d16716fdbcb24af448009d7c84f26c33d3.tar.bz2 upstream-47f462d16716fdbcb24af448009d7c84f26c33d3.zip |
mac80211: update to wireless-testing 2014-11-04
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43210 3c298f89-4303-0410-b956-a3cf2f4a3e73
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, 0 insertions, 43 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 deleted file mode 100644 index 0a4257d8a1..0000000000 --- a/package/kernel/mac80211/patches/312-ath9k-Fix-offchannel-flush-timeout.patch +++ /dev/null @@ -1,43 +0,0 @@ -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) { |