aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorDavid Bauer <mail@david-bauer.net>2020-07-25 11:26:11 +0200
committerDavid Bauer <mail@david-bauer.net>2020-07-25 22:36:34 +0200
commita956c14d6aa49973b713120cede96bee41f2cd25 (patch)
treede24b197007be60861d7efa2b6c2131fbc1ea4ab /package
parentd38d345c72e9783361a413411a3814f7d096fc7b (diff)
downloadupstream-a956c14d6aa49973b713120cede96bee41f2cd25.tar.gz
upstream-a956c14d6aa49973b713120cede96bee41f2cd25.tar.bz2
upstream-a956c14d6aa49973b713120cede96bee41f2cd25.zip
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. Signed-off-by: David Bauer <mail@david-bauer.net>
Diffstat (limited to 'package')
-rw-r--r--package/kernel/mac80211/patches/subsys/600-mac80211-util-don-t-warn-on-missing-sband-iftype-dat.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/package/kernel/mac80211/patches/subsys/600-mac80211-util-don-t-warn-on-missing-sband-iftype-dat.patch b/package/kernel/mac80211/patches/subsys/600-mac80211-util-don-t-warn-on-missing-sband-iftype-dat.patch
new file mode 100644
index 0000000000..65689c0717
--- /dev/null
+++ b/package/kernel/mac80211/patches/subsys/600-mac80211-util-don-t-warn-on-missing-sband-iftype-dat.patch
@@ -0,0 +1,28 @@
+From db6d1e942f5a2828e1245e16ceb997f537a2d1a4 Mon Sep 17 00:00:00 2001
+From: David Bauer <mail@david-bauer.net>
+Date: Sat, 25 Jul 2020 01:43:26 +0200
+Subject: [PATCH] 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.
+
+Signed-off-by: David Bauer <mail@david-bauer.net>
+---
+ net/mac80211/util.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/net/mac80211/util.c
++++ b/net/mac80211/util.c
+@@ -2875,7 +2875,7 @@ void ieee80211_ie_build_he_6ghz_cap(stru
+ 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);