diff options
author | Felix Fietkau <nbd@openwrt.org> | 2009-03-29 05:28:50 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2009-03-29 05:28:50 +0000 |
commit | 8e5803210752e21c123a987825970df27e873f25 (patch) | |
tree | 3ac6d6b9c36ca250b6e03b58a07dfa0316269449 /package | |
parent | c614ca2b92b1d2d2a5533855d7bed6ddff2145dd (diff) | |
download | mtk-20170518-8e5803210752e21c123a987825970df27e873f25.zip mtk-20170518-8e5803210752e21c123a987825970df27e873f25.tar.gz mtk-20170518-8e5803210752e21c123a987825970df27e873f25.tar.bz2 |
madwifi: improve turbo/autochannel patch
SVN-Revision: 15067
Diffstat (limited to 'package')
-rw-r--r-- | package/madwifi/patches/418-turbo.patch | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/package/madwifi/patches/418-turbo.patch b/package/madwifi/patches/418-turbo.patch index ec0b491..4e13f90 100644 --- a/package/madwifi/patches/418-turbo.patch +++ b/package/madwifi/patches/418-turbo.patch @@ -1,11 +1,15 @@ --- a/net80211/ieee80211_scan.c +++ b/net80211/ieee80211_scan.c -@@ -1129,7 +1129,7 @@ ieee80211_scan_add_channels(struct ieee8 +@@ -1129,7 +1129,11 @@ 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)) && ++ if (ss->ss_vap->iv_opmode == IEEE80211_M_HOSTAP) { ++ if ((c->ic_flags & (IEEE80211_CHAN_TURBO | IEEE80211_CHAN_STURBO)) != ++ (modeflags & (IEEE80211_CHAN_TURBO | IEEE80211_CHAN_STURBO))) ++ continue; ++ } else if (modeflags && ((c->ic_flags & IEEE80211_CHAN_ALLTURBO) != (modeflags & IEEE80211_CHAN_ALLTURBO))) continue; |