mirror of
https://github.com/openwrt/openwrt.git
synced 2025-02-11 05:11:27 +00:00
7e42fdcafe
This updates mac80211 to version 6.1.110-1. This code is based on Linux 6.1.110 and contains all fixes included in the upstream wireless subsystem from that kernel version. This includes many bugfixes and also some security fixes. The removed patches are already integrated in upstream Linux 6.1.110. The following patches were integrated in upstream Linux: subsys/311-v6.2-wifi-mac80211-fix-and-simplify-unencrypted-drop-chec.patch subsys/312-v6.3-wifi-cfg80211-move-A-MSDU-check-in-ieee80211_data_to.patch subsys/313-v6.3-wifi-cfg80211-factor-out-bridge-tunnel-RFC1042-heade.patch subsys/314-v6.3-wifi-mac80211-remove-mesh-forwarding-congestion-chec.patch subsys/315-v6.3-wifi-mac80211-fix-receiving-A-MSDU-frames-on-mesh-in.patch subsys/316-v6.3-wifi-mac80211-add-a-workaround-for-receiving-non-sta.patch subsys/321-mac80211-fix-mesh-forwarding.patch subsys/322-wifi-mac80211-fix-mesh-path-discovery-based-on-unica.patch subsys/329-wifi-mac80211-fix-receiving-mesh-packets-in-forwardi.patch subsys/339-wifi-cfg80211-fix-receving-mesh-packets-without-RFC1.patch subsys/350-v6.3-wifi-mac80211-Allow-NSS-change-only-up-to-capability.patch subsys/351-v6.9-wifi-mac80211-track-capability-opmode-NSS-separately.patch Link: https://github.com/openwrt/openwrt/pull/16368 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
35 lines
1012 B
Diff
35 lines
1012 B
Diff
From: David Bauer <mail@david-bauer.net>
|
|
Date: Thu, 30 Nov 2023 07:32:52 +0100
|
|
Subject: [PATCH] mac80211: avoid crashing on invalid band info
|
|
|
|
Frequent crashes have been observed on MT7916 based platforms. While the
|
|
root of these crashes are currently unknown, they happen when decoding
|
|
rate information of connected STAs in AP mode. The rate-information is
|
|
associated with a band which is not available on the PHY.
|
|
|
|
Check for this condition in order to avoid crashing the whole system.
|
|
This patch should be removed once the roout cause has been found and
|
|
fixed.
|
|
|
|
Link: https://github.com/freifunk-gluon/gluon/issues/2980
|
|
|
|
Signed-off-by: David Bauer <mail@david-bauer.net>
|
|
---
|
|
|
|
--- a/net/mac80211/sta_info.c
|
|
+++ b/net/mac80211/sta_info.c
|
|
@@ -2382,6 +2382,13 @@ static void sta_stats_decode_rate(struct
|
|
|
|
sband = local->hw.wiphy->bands[band];
|
|
|
|
+ if (!sband) {
|
|
+ wiphy_warn(local->hw.wiphy,
|
|
+ "Invalid band %d\n",
|
|
+ band);
|
|
+ break;
|
|
+ }
|
|
+
|
|
if (WARN_ON_ONCE(!sband->bitrates))
|
|
break;
|
|
|