diff options
author | Arik Nemtsov <arik@wizery.com> | 2015-01-01 06:43:17 -0500 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2015-01-06 08:59:07 -0500 |
commit | fa44b988d2da58334ecbcf3e00f9acccbdeace6c (patch) | |
tree | 758d5be6e81e45f87a94bb0fdfa3bff8c32ff309 /net/mac80211/util.c | |
parent | 71b836eca7f380fbd4c025f8c4371f9a071bc909 (diff) |
mac80211: skip disabled channels in VHT check
The patch "40a11ca mac80211: check if channels allow 80 MHz for VHT
probe requests" considered disabled channels as VHT enabled, and
mistakenly sent out probe-requests with the VHT IE.
Signed-off-by: Arik Nemtsov <arikx.nemtsov@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/util.c')
-rw-r--r-- | net/mac80211/util.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/net/mac80211/util.c b/net/mac80211/util.c index 0f9bf479952e..ad8cb4fb441e 100644 --- a/net/mac80211/util.c +++ b/net/mac80211/util.c | |||
@@ -1470,10 +1470,12 @@ static int ieee80211_build_preq_ies_band(struct ieee80211_local *local, | |||
1470 | 1470 | ||
1471 | /* Check if any channel in this sband supports at least 80 MHz */ | 1471 | /* Check if any channel in this sband supports at least 80 MHz */ |
1472 | for (i = 0; i < sband->n_channels; i++) { | 1472 | for (i = 0; i < sband->n_channels; i++) { |
1473 | if (!(sband->channels[i].flags & IEEE80211_CHAN_NO_80MHZ)) { | 1473 | if (sband->channels[i].flags & (IEEE80211_CHAN_DISABLED | |
1474 | have_80mhz = true; | 1474 | IEEE80211_CHAN_NO_80MHZ)) |
1475 | break; | 1475 | continue; |
1476 | } | 1476 | |
1477 | have_80mhz = true; | ||
1478 | break; | ||
1477 | } | 1479 | } |
1478 | 1480 | ||
1479 | if (sband->vht_cap.vht_supported && have_80mhz) { | 1481 | if (sband->vht_cap.vht_supported && have_80mhz) { |