projects
/
linux-2.6-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8acb7af
)
mt76: mt7615: disable 5 GHz on MT7622
author
Felix Fietkau
<nbd@nbd.name>
Wed, 18 Dec 2019 10:15:20 +0000
(11:15 +0100)
committer
Felix Fietkau
<nbd@nbd.name>
Fri, 14 Feb 2020 09:06:07 +0000
(10:06 +0100)
It is not supported by the chip, so avoid issues with potentially wrong
EEPROM configurations.
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7615/eeprom.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/wireless/mediatek/mt76/mt7615/eeprom.c
b/drivers/net/wireless/mediatek/mt76/mt7615/eeprom.c
index b383d85df2c3ab2a3beeecebca67304efbbdf4b1..ecf0f4458575a21ab3ae595fd46f6a74107bfc16 100644
(file)
--- a/
drivers/net/wireless/mediatek/mt76/mt7615/eeprom.c
+++ b/
drivers/net/wireless/mediatek/mt76/mt7615/eeprom.c
@@
-112,6
+112,9
@@
static void mt7615_eeprom_parse_hw_cap(struct mt7615_dev *dev)
break;
}
+ if (is_mt7622(&dev->mt76))
+ dev->mt76.cap.has_5ghz = false;
+
/* read tx-rx mask from eeprom */
val = mt76_rr(dev, MT_TOP_STRAP_STA);
max_nss = val & MT_TOP_3NSS ? 3 : 4;