forked from openwrt/openwrt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'openwrt:main' into main
- Loading branch information
Showing
11 changed files
with
101 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
package/kernel/mac80211/patches/subsys/780-avoid-crashing-missing-band.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
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 | ||
@@ -2422,6 +2422,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; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT | ||
|
||
#include "qca9563_ubnt_unifiac-lite.dtsi" | ||
|
||
/ { | ||
compatible = "ubnt,uk-ultra", "qca,qca9563"; | ||
model = "Ubiquiti UniFi Swiss Army Knife Ultra"; | ||
}; | ||
|
||
&leds { | ||
led-rssi0 { | ||
label = "white:rssi0"; | ||
gpios = <&gpio 21 GPIO_ACTIVE_HIGH>; | ||
}; | ||
|
||
led-rssi1 { | ||
label = "white:rssi1"; | ||
gpios = <&gpio 20 GPIO_ACTIVE_HIGH>; | ||
}; | ||
|
||
led-rssi2 { | ||
label = "white:rssi2"; | ||
gpios = <&gpio 15 GPIO_ACTIVE_HIGH>; | ||
}; | ||
|
||
led-rssi3 { | ||
label = "white:rssi3"; | ||
gpios = <&gpio 1 GPIO_ACTIVE_HIGH>; | ||
}; | ||
}; | ||
|
||
/** | ||
* Antenna selection on GPIO5 and GPIO6 | ||
* High = Internal ; Low = External | ||
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,7 @@ | |
led-upgrade = &led_blue; | ||
}; | ||
|
||
leds { | ||
leds: leds { | ||
compatible = "gpio-leds"; | ||
|
||
led_white: led_white { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters