mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-07-24 03:56:59 +08:00

Update backports to the latest 6.6 point release. Signed-off-by: Robert Marko <robimarko@gmail.com> Signed-off-by: Felix Fietkau <nbd@nbd.name>
37 lines
1.2 KiB
Diff
37 lines
1.2 KiB
Diff
--- a/net/mac80211/vht.c
|
|
+++ b/net/mac80211/vht.c
|
|
@@ -137,7 +137,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))
|
|
+ IEEE80211_CHAN_NO_80MHZ) &
|
|
+ (sband->band != NL80211_BAND_2GHZ))
|
|
continue;
|
|
|
|
have_80mhz = true;
|
|
--- a/net/mac80211/util.c
|
|
+++ b/net/mac80211/util.c
|
|
@@ -2079,7 +2079,8 @@ static int ieee80211_build_preq_ies_band
|
|
/* 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))
|
|
+ IEEE80211_CHAN_NO_80MHZ) &
|
|
+ (sband->band != NL80211_BAND_2GHZ))
|
|
continue;
|
|
|
|
have_80mhz = true;
|
|
--- a/net/mac80211/mlme.c
|
|
+++ b/net/mac80211/mlme.c
|
|
@@ -4992,7 +4992,8 @@ static int ieee80211_prep_channel(struct
|
|
have_80mhz = false;
|
|
for (i = 0; i < sband->n_channels; i++) {
|
|
if (sband->channels[i].flags & (IEEE80211_CHAN_DISABLED |
|
|
- IEEE80211_CHAN_NO_80MHZ))
|
|
+ IEEE80211_CHAN_NO_80MHZ) &
|
|
+ (sband->band != NL80211_BAND_2GHZ))
|
|
continue;
|
|
|
|
have_80mhz = true;
|