From b0c7f88d900d2986cd2061113201825eda6a6482 Mon Sep 17 00:00:00 2001 From: Ron Asimi Date: Wed, 2 Sep 2020 23:18:23 -0400 Subject: [PATCH] mt7603: allow eeprom sections starting with 7600 Fixes low signal issue for 2.4 GHz for the TP-Link Archer C50 v4. The first two bytes in the eeprom are the chip id. The working devices have 0x7628 there, whereas the non-working devices have 0x7600 there. This chip id gets checked by the function mt7603_check_eeprom() which leads the driver to ignore the contents of the eeprom partition and load default values from otp. --- mt7603/eeprom.c | 1 + 1 file changed, 1 insertion(+) diff --git a/mt7603/eeprom.c b/mt7603/eeprom.c index 01f1e0da5..9d5042aff 100644 --- a/mt7603/eeprom.c +++ b/mt7603/eeprom.c @@ -141,6 +141,7 @@ static int mt7603_check_eeprom(struct mt76_dev *dev) switch (val) { case 0x7628: case 0x7603: + case 0x7600: return 0; default: return -EINVAL;