summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2009-03-29 00:11:00 +0000
committerFelix Fietkau <nbd@openwrt.org>2009-03-29 00:11:00 +0000
commitf467aa8e814de246c08efaa574a8a10909b9ddcf (patch)
treefc86043d2e953e43736a81a4e7ec3a4301060a90 /package
parent5f09427160146267ea15d5ef8d779aa124132aea (diff)
downloadmtk-20170518-f467aa8e814de246c08efaa574a8a10909b9ddcf.zip
mtk-20170518-f467aa8e814de246c08efaa574a8a10909b9ddcf.tar.gz
mtk-20170518-f467aa8e814de246c08efaa574a8a10909b9ddcf.tar.bz2
madwifi: do not use turbo mode during ap mode autoselection unless specifically requested
SVN-Revision: 15060
Diffstat (limited to 'package')
-rw-r--r--package/madwifi/patches/418-turbo.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/package/madwifi/patches/418-turbo.patch b/package/madwifi/patches/418-turbo.patch
new file mode 100644
index 0000000..ec0b491
--- /dev/null
+++ b/package/madwifi/patches/418-turbo.patch
@@ -0,0 +1,11 @@
+--- a/net80211/ieee80211_scan.c
++++ b/net80211/ieee80211_scan.c
+@@ -1129,7 +1129,7 @@ ieee80211_scan_add_channels(struct ieee8
+ continue;
+ if (c->ic_scanflags & IEEE80211_NOSCAN_SET)
+ continue;
+- if (modeflags &&
++ if ((modeflags || (ss->ss_vap->iv_opmode == IEEE80211_M_HOSTAP)) &&
+ ((c->ic_flags & IEEE80211_CHAN_ALLTURBO) !=
+ (modeflags & IEEE80211_CHAN_ALLTURBO)))
+ continue;