Skip to contentSkip to conversation

mac80211: util: don't warn on missing sband iftype data

PATCH New David Bauer 1 participant 1 message Jul 25, 2020 mac80211

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mac80211: util: don't warn on missing sband iftype data

The kernel currently floods the ringbuffer with warnings when adding a mesh interface for a device not support HE 6GHz modes.

Return without warning in this case, as mesh_add_he_6ghz_cap_ie calls ieee80211_ie_build_he_6ghz_cap regardless of the supported interface modes.

---
 net/mac80211/util.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
net/mac80211/util.c +1 -1
index 21c94094a699..dbf389ee15e2 100644
@@ -2875,7 +2875,7 @@ void ieee80211_ie_build_he_6ghz_cap(struct ieee80211_sub_if_data *sdata,
 		return;
 
 	iftd = ieee80211_get_sband_iftype_data(sband, iftype);
-	if (WARN_ON(!iftd))
+	if (!iftd)
 		return;
 
 	cap = le16_to_cpu(iftd->he_6ghz_capa.capa);
Signature · 1 line
2.27.0