aboutsummaryrefslogtreecommitdiffstats
path: root/package/mac80211/patches/520-mac80211_offchannel_conf.patch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2010-07-28 11:40:38 +0000
committerFelix Fietkau <nbd@openwrt.org>2010-07-28 11:40:38 +0000
commitbbd756364f2f343a754180c6ea821f26f1b98ad9 (patch)
treec6f11688ba32b465c9bac8eb07fbccc6107a9d75 /package/mac80211/patches/520-mac80211_offchannel_conf.patch
parent1e05fd6eef9a7ae5e4cd3ab362849501e640d62b (diff)
downloadupstream-bbd756364f2f343a754180c6ea821f26f1b98ad9.tar.gz
upstream-bbd756364f2f343a754180c6ea821f26f1b98ad9.tar.bz2
upstream-bbd756364f2f343a754180c6ea821f26f1b98ad9.zip
ath9k: fix various calibration related bugs and clean up the code
SVN-Revision: 22408
Diffstat (limited to 'package/mac80211/patches/520-mac80211_offchannel_conf.patch')
-rw-r--r--package/mac80211/patches/520-mac80211_offchannel_conf.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/package/mac80211/patches/520-mac80211_offchannel_conf.patch b/package/mac80211/patches/520-mac80211_offchannel_conf.patch
new file mode 100644
index 0000000000..deb0d06cb5
--- /dev/null
+++ b/package/mac80211/patches/520-mac80211_offchannel_conf.patch
@@ -0,0 +1,35 @@
+--- a/include/net/mac80211.h
++++ b/include/net/mac80211.h
+@@ -625,11 +625,14 @@ struct ieee80211_rx_status {
+ * may turn the device off as much as possible. Typically, this flag will
+ * be set when an interface is set UP but not associated or scanning, but
+ * it can also be unset in that case when monitor interfaces are active.
++ * @IEEE80211_CONF_OFFCHANNEL: The device is currently not on its main
++ * operating channel.
+ */
+ enum ieee80211_conf_flags {
+ IEEE80211_CONF_MONITOR = (1<<0),
+ IEEE80211_CONF_PS = (1<<1),
+ IEEE80211_CONF_IDLE = (1<<2),
++ IEEE80211_CONF_OFFCHANNEL = (1<<3),
+ };
+
+
+--- a/net/mac80211/main.c
++++ b/net/mac80211/main.c
+@@ -111,12 +111,15 @@ int ieee80211_hw_config(struct ieee80211
+ if (scan_chan) {
+ chan = scan_chan;
+ channel_type = NL80211_CHAN_NO_HT;
++ local->hw.conf.flags |= IEEE80211_CONF_OFFCHANNEL;
+ } else if (local->tmp_channel) {
+ chan = scan_chan = local->tmp_channel;
+ channel_type = local->tmp_channel_type;
++ local->hw.conf.flags |= IEEE80211_CONF_OFFCHANNEL;
+ } else {
+ chan = local->oper_channel;
+ channel_type = local->_oper_channel_type;
++ local->hw.conf.flags &= ~IEEE80211_CONF_OFFCHANNEL;
+ }
+
+ if (chan != local->hw.conf.channel ||