mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-23 15:32:33 +00:00
97bc59a5c0
Refresh all patches. The removed patches were integrated upstream. This contains fixes for CVE-2020-3702 1. These patches (ath, ath9k, mac80211) were included in kernel versions since 4.14.245 and 4.19.205. They fix security vulnerability CVE-2020-3702 [1] similar to KrØØk, which was found by ESET [2]. Thank you Josef Schlehofer for reporting this problem. [1] https://nvd.nist.gov/vuln/detail/CVE-2020-3702 [2] https://www.welivesecurity.com/2020/08/06/beyond-kr00k-even-more-wifi-chips-vulnerable-eavesdropping/ Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
45 lines
1.5 KiB
Diff
45 lines
1.5 KiB
Diff
From: David Bauer <mail@david-bauer.net>
|
|
Date: Mon, 16 Dec 2019 20:47:06 +0100
|
|
Subject: [PATCH] rt2x00: add throughput LED trigger
|
|
|
|
This adds a (currently missing) throughput LED trigger for the rt2x00
|
|
driver. Previously, LED triggers had to be assigned to the netdev, which
|
|
was limited to a single VAP.
|
|
|
|
Signed-off-by: David Bauer <mail@david-bauer.net>
|
|
Tested-by: Christoph Krapp <achterin@googlemail.com>
|
|
|
|
--- a/drivers/net/wireless/ralink/rt2x00/rt2x00dev.c
|
|
+++ b/drivers/net/wireless/ralink/rt2x00/rt2x00dev.c
|
|
@@ -1126,6 +1126,19 @@ static void rt2x00lib_remove_hw(struct r
|
|
kfree(rt2x00dev->spec.channels_info);
|
|
}
|
|
|
|
+static const struct ieee80211_tpt_blink rt2x00_tpt_blink[] = {
|
|
+ { .throughput = 0 * 1024, .blink_time = 334 },
|
|
+ { .throughput = 1 * 1024, .blink_time = 260 },
|
|
+ { .throughput = 2 * 1024, .blink_time = 220 },
|
|
+ { .throughput = 5 * 1024, .blink_time = 190 },
|
|
+ { .throughput = 10 * 1024, .blink_time = 170 },
|
|
+ { .throughput = 25 * 1024, .blink_time = 150 },
|
|
+ { .throughput = 54 * 1024, .blink_time = 130 },
|
|
+ { .throughput = 120 * 1024, .blink_time = 110 },
|
|
+ { .throughput = 265 * 1024, .blink_time = 80 },
|
|
+ { .throughput = 586 * 1024, .blink_time = 50 },
|
|
+};
|
|
+
|
|
static int rt2x00lib_probe_hw(struct rt2x00_dev *rt2x00dev)
|
|
{
|
|
struct hw_mode_spec *spec = &rt2x00dev->spec;
|
|
@@ -1207,6 +1220,10 @@ static int rt2x00lib_probe_hw(struct rt2
|
|
|
|
#undef RT2X00_TASKLET_INIT
|
|
|
|
+ ieee80211_create_tpt_led_trigger(rt2x00dev->hw,
|
|
+ IEEE80211_TPT_LEDTRIG_FL_RADIO, rt2x00_tpt_blink,
|
|
+ ARRAY_SIZE(rt2x00_tpt_blink));
|
|
+
|
|
/*
|
|
* Register HW.
|
|
*/
|