cfg80211: apply same mandatory rate flags for 5GHz and 6GHz
authorArend van Spriel <arend.vanspriel@broadcom.com>
Fri, 2 Aug 2019 11:31:05 +0000 (13:31 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 21 Aug 2019 08:55:09 +0000 (10:55 +0200)
For the new 6GHz band the same rules apply for mandatory rates so
add it to set_mandatory_flags_band() function.

Reviewed-by: Pieter-Paul Giesberts <pieter-paul.giesberts@broadcom.com>
Reviewed-by: Leon Zegers <leon.zegers@broadcom.com>
Signed-off-by: Arend van Spriel <arend.vanspriel@broadcom.com>
Link: https://lore.kernel.org/r/1564745465-21234-9-git-send-email-arend.vanspriel@broadcom.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/util.c

index 27171aa10e9f55a18663ffee19825ade085ad134..59ed0808c13e984730cbff41d1d300dbb5081014 100644 (file)
@@ -156,6 +156,7 @@ static void set_mandatory_flags_band(struct ieee80211_supported_band *sband)
 
        switch (sband->band) {
        case NL80211_BAND_5GHZ:
+       case NL80211_BAND_6GHZ:
                want = 3;
                for (i = 0; i < sband->n_bitrates; i++) {
                        if (sband->bitrates[i].bitrate == 60 ||