Skip to content
Snippets Groups Projects
Unverified Commit 51aa8508 authored by github-actions[bot]'s avatar github-actions[bot] Committed by GitHub
Browse files

mac80211: silence warning for missing rate information (#3167)

Silence warnings for missing rate information.

These warnings do not provide value. Instead, they might rotate more
crucial information out of the kernel message ringbuffer.

Link: https://github.com/freifunk-gluon/gluon/issues/3160



Signed-off-by: default avatarDavid Bauer <mail@david-bauer.net>
(cherry picked from commit 8a4c553a4323b49199f11f951b00c60315e56026)

Co-authored-by: default avatarDavid Bauer <mail@david-bauer.net>
parent bfbefa45
No related branches found
No related tags found
No related merge requests found
From: David Bauer <mail@david-bauer.net>
Date: Thu, 18 Jan 2024 00:52:09 +0100
Subject: mac80211: silence warning for missing rate information
Silence warnings for missing rate information.
These warnings do not provide value. Instead, they might rotate more
crucial information out of the kernel message ringbuffer.
Link: https://github.com/freifunk-gluon/gluon/issues/3160
Signed-off-by: David Bauer <mail@david-bauer.net>
diff --git a/package/kernel/mac80211/patches/subsys/999-silence-missing-rate.patch b/package/kernel/mac80211/patches/subsys/999-silence-missing-rate.patch
new file mode 100644
index 0000000000000000000000000000000000000000..a34455f78960ded59b60d3d9600823b39fc7b7a2
--- /dev/null
+++ b/package/kernel/mac80211/patches/subsys/999-silence-missing-rate.patch
@@ -0,0 +1,11 @@
+--- a/net/mac80211/mesh_hwmp.c
++++ b/net/mac80211/mesh_hwmp.c
+@@ -350,7 +350,7 @@ u32 airtime_link_metric_get(struct ieee8
+ return MAX_METRIC;
+
+ rate = ewma_mesh_tx_rate_avg_read(&sta->mesh->tx_rate_avg);
+- if (WARN_ON(!rate))
++ if (!rate)
+ return MAX_METRIC;
+
+ err = (fail_avg << ARITH_SHIFT) / 100;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment