mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-25 08:21:14 +00:00
8e58032107
SVN-Revision: 15067
16 lines
570 B
Diff
16 lines
570 B
Diff
--- a/net80211/ieee80211_scan.c
|
|
+++ b/net80211/ieee80211_scan.c
|
|
@@ -1129,7 +1129,11 @@ ieee80211_scan_add_channels(struct ieee8
|
|
continue;
|
|
if (c->ic_scanflags & IEEE80211_NOSCAN_SET)
|
|
continue;
|
|
- if (modeflags &&
|
|
+ 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;
|