mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-26 17:01:14 +00:00
a8f63a0717
This updates mac80211 to backprots-4.14-rc2. This was compile and runtime tested with ath9k, ath10k and b43 with multiple stations and ieee80211w and in different scenarios by many other people. To create the backports-4.14-rc2-1.tar.xz use this repository: https://git.kernel.org/pub/scm/linux/kernel/git/backports/backports.git from tag v4.14-rc2-1 Then run this: ./gentree.py --git-revision v4.14-rc2 --clean <path to linux repo> ../backports-4.14-rc2-1 This also adapts the ath10k-ct and mt76 driver to the changed cfg80211 APIs and syncs the nl80211.h file in iw with the new version from backports-4.14-rc2. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
43 lines
2.0 KiB
Diff
43 lines
2.0 KiB
Diff
From 1616650aea676541d4dc8adc6f4219856d193c8b Mon Sep 17 00:00:00 2001
|
|
From: Gabor Juhos <juhosg@openwrt.org>
|
|
Date: Tue, 1 Oct 2013 17:27:57 +0200
|
|
Subject: [PATCH] rt2x00: rt2800lib: fix EEPROM LNA validation for RT3883
|
|
|
|
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
|
|
---
|
|
drivers/net/wireless/ralink/rt2x00/rt2800lib.c | 9 ++++++---
|
|
1 file changed, 6 insertions(+), 3 deletions(-)
|
|
|
|
--- a/drivers/net/wireless/ralink/rt2x00/rt2800lib.c
|
|
+++ b/drivers/net/wireless/ralink/rt2x00/rt2800lib.c
|
|
@@ -9098,7 +9098,8 @@ static int rt2800_validate_eeprom(struct
|
|
word = rt2800_eeprom_read(rt2x00dev, EEPROM_RSSI_BG2);
|
|
if (abs(rt2x00_get_field16(word, EEPROM_RSSI_BG2_OFFSET2)) > 10)
|
|
rt2x00_set_field16(&word, EEPROM_RSSI_BG2_OFFSET2, 0);
|
|
- if (!rt2x00_rt(rt2x00dev, RT3593)) {
|
|
+ if (!rt2x00_rt(rt2x00dev, RT3593) &&
|
|
+ !rt2x00_rt(rt2x00dev, RT3883)) {
|
|
if (rt2x00_get_field16(word, EEPROM_RSSI_BG2_LNA_A1) == 0x00 ||
|
|
rt2x00_get_field16(word, EEPROM_RSSI_BG2_LNA_A1) == 0xff)
|
|
rt2x00_set_field16(&word, EEPROM_RSSI_BG2_LNA_A1,
|
|
@@ -9118,7 +9119,8 @@ static int rt2800_validate_eeprom(struct
|
|
word = rt2800_eeprom_read(rt2x00dev, EEPROM_RSSI_A2);
|
|
if (abs(rt2x00_get_field16(word, EEPROM_RSSI_A2_OFFSET2)) > 10)
|
|
rt2x00_set_field16(&word, EEPROM_RSSI_A2_OFFSET2, 0);
|
|
- if (!rt2x00_rt(rt2x00dev, RT3593)) {
|
|
+ if (!rt2x00_rt(rt2x00dev, RT3593) &&
|
|
+ !rt2x00_rt(rt2x00dev, RT3883)) {
|
|
if (rt2x00_get_field16(word, EEPROM_RSSI_A2_LNA_A2) == 0x00 ||
|
|
rt2x00_get_field16(word, EEPROM_RSSI_A2_LNA_A2) == 0xff)
|
|
rt2x00_set_field16(&word, EEPROM_RSSI_A2_LNA_A2,
|
|
@@ -9126,7 +9128,8 @@ static int rt2800_validate_eeprom(struct
|
|
}
|
|
rt2800_eeprom_write(rt2x00dev, EEPROM_RSSI_A2, word);
|
|
|
|
- if (rt2x00_rt(rt2x00dev, RT3593)) {
|
|
+ if (rt2x00_rt(rt2x00dev, RT3593) ||
|
|
+ rt2x00_rt(rt2x00dev, RT3883)) {
|
|
word = rt2800_eeprom_read(rt2x00dev, EEPROM_EXT_LNA2);
|
|
if (rt2x00_get_field16(word, EEPROM_EXT_LNA2_A1) == 0x00 ||
|
|
rt2x00_get_field16(word, EEPROM_EXT_LNA2_A1) == 0xff)
|