mac80211: avoid crashing on invalid band info
authorDavid Bauer <mail@david-bauer.net>
Thu, 30 Nov 2023 06:32:52 +0000 (07:32 +0100)
committerDavid Bauer <mail@david-bauer.net>
Tue, 9 Jan 2024 01:09:53 +0000 (02:09 +0100)
commit3bf602d740765db52d96733d172093a4b9a69915
tree4b6d32c01b77e780f7f2fd1b473e29ef1de8ea6c
parentd4a21d75a9be5cf048bef126ea567c7ec61079a5
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>
(cherry picked from commit 1278d47beaabaa963b2956e81936269b7fea4003)
package/kernel/mac80211/patches/subsys/780-avoid-crashing-missing-band.patch [new file with mode: 0644]