From fd3ae9a342aefbd285091e7d32e8870273743ca6 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Wed, 18 Dec 2019 11:15:20 +0100 Subject: [PATCH] mt76: mt7615: disable 5 GHz on MT7622 It is not supported by the chip, so avoid issues with potentially wrong EEPROM configurations. Signed-off-by: Felix Fietkau --- mt7615/eeprom.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mt7615/eeprom.c b/mt7615/eeprom.c index 0008e458..49d8ae09 100644 --- a/mt7615/eeprom.c +++ b/mt7615/eeprom.c @@ -111,6 +111,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;