2020-04-04 00:33:58 +08:00
|
|
|
--- a/net/mac80211/vht.c
|
|
|
|
+++ b/net/mac80211/vht.c
|
|
|
|
@@ -135,7 +135,8 @@ ieee80211_vht_cap_ie_to_sta_vht_cap(stru
|
|
|
|
have_80mhz = false;
|
|
|
|
for (i = 0; i < sband->n_channels; i++) {
|
|
|
|
if (sband->channels[i].flags & (IEEE80211_CHAN_DISABLED |
|
|
|
|
- IEEE80211_CHAN_NO_80MHZ))
|
2023-03-11 15:36:29 +08:00
|
|
|
+ IEEE80211_CHAN_NO_80MHZ) &
|
2020-04-04 00:33:58 +08:00
|
|
|
+ (sband->band != NL80211_BAND_2GHZ))
|
|
|
|
continue;
|
|
|
|
|
|
|
|
have_80mhz = true;
|
|
|
|
--- a/net/mac80211/util.c
|
|
|
|
+++ b/net/mac80211/util.c
|
2023-02-25 13:28:01 +08:00
|
|
|
@@ -1925,7 +1925,8 @@ static int ieee80211_build_preq_ies_band
|
2020-04-04 00:33:58 +08:00
|
|
|
/* Check if any channel in this sband supports at least 80 MHz */
|
|
|
|
for (i = 0; i < sband->n_channels; i++) {
|
|
|
|
if (sband->channels[i].flags & (IEEE80211_CHAN_DISABLED |
|
|
|
|
- IEEE80211_CHAN_NO_80MHZ))
|
2023-03-11 15:36:29 +08:00
|
|
|
+ IEEE80211_CHAN_NO_80MHZ) &
|
2020-04-04 00:33:58 +08:00
|
|
|
+ (sband->band != NL80211_BAND_2GHZ))
|
|
|
|
continue;
|
|
|
|
|
|
|
|
have_80mhz = true;
|
|
|
|
--- a/net/mac80211/mlme.c
|
|
|
|
+++ b/net/mac80211/mlme.c
|
2023-02-25 13:28:01 +08:00
|
|
|
@@ -5122,7 +5122,8 @@ static int ieee80211_prep_channel(struct
|
2020-04-04 00:33:58 +08:00
|
|
|
have_80mhz = false;
|
|
|
|
for (i = 0; i < sband->n_channels; i++) {
|
|
|
|
if (sband->channels[i].flags & (IEEE80211_CHAN_DISABLED |
|
|
|
|
- IEEE80211_CHAN_NO_80MHZ))
|
2023-03-11 15:36:29 +08:00
|
|
|
+ IEEE80211_CHAN_NO_80MHZ) &
|
2020-04-04 00:33:58 +08:00
|
|
|
+ (sband->band != NL80211_BAND_2GHZ))
|
|
|
|
continue;
|
|
|
|
|
|
|
|
have_80mhz = true;
|