We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 461ce35 commit f438136Copy full SHA for f438136
net/wireless/core.c
@@ -791,6 +791,7 @@ int wiphy_register(struct wiphy *wiphy)
791
/* sanity check supported bands/channels */
792
for (band = 0; band < NUM_NL80211_BANDS; band++) {
793
u16 types = 0;
794
+ bool have_he = false;
795
796
sband = wiphy->bands[band];
797
if (!sband)
@@ -859,8 +860,17 @@ int wiphy_register(struct wiphy *wiphy)
859
860
return -EINVAL;
861
862
types |= iftd->types_mask;
863
+
864
+ if (i == 0)
865
+ have_he = iftd->he_cap.has_he;
866
+ else
867
+ have_he = have_he &&
868
+ iftd->he_cap.has_he;
869
}
870
871
+ if (WARN_ON(!have_he && band == NL80211_BAND_6GHZ))
872
+ return -EINVAL;
873
874
have_band = true;
875
876
0 commit comments