65689c0717e6c2de657da99023636a775bbd9751
[openwrt/staging/jow.git] /
1 From db6d1e942f5a2828e1245e16ceb997f537a2d1a4 Mon Sep 17 00:00:00 2001
2 From: David Bauer <mail@david-bauer.net>
3 Date: Sat, 25 Jul 2020 01:43:26 +0200
4 Subject: [PATCH] mac80211: util: don't warn on missing sband iftype data
5
6 The kernel currently floods the ringbuffer with warnings when adding a
7 mesh interface for a device not support HE 6GHz modes.
8
9 Return without warning in this case, as mesh_add_he_6ghz_cap_ie calls
10 ieee80211_ie_build_he_6ghz_cap regardless of the supported interface
11 modes.
12
13 Signed-off-by: David Bauer <mail@david-bauer.net>
14 ---
15 net/mac80211/util.c | 2 +-
16 1 file changed, 1 insertion(+), 1 deletion(-)
17
18 --- a/net/mac80211/util.c
19 +++ b/net/mac80211/util.c
20 @@ -2875,7 +2875,7 @@ void ieee80211_ie_build_he_6ghz_cap(stru
21 return;
22
23 iftd = ieee80211_get_sband_iftype_data(sband, iftype);
24 - if (WARN_ON(!iftd))
25 + if (!iftd)
26 return;
27
28 cap = le16_to_cpu(iftd->he_6ghz_capa.capa);