Kristian EvensenandFelix Fietkau f6a021d15a mt76x2: Support using PCI ID as chip ID
On some routers, the manufacturer has made a mistake and left the chip
ID part of the EEPROM empty (it is set to 0x0000). One such router is
the ZBT-WE1026-5G (equipped with MT7612), and the consequence is that
the EEPROM check fails and the 5GHz wifi does not work at all. When
setting the chip ID to 0x7612 manually, the 5GHz wifi works fine.

When looking at EEPROM of the WE1026 (and other devices equipped with
mt76x2), I see that the PCI ID is always set to a valid value (7612 or
7662). This PR works around the issue of an empty chip ID by using the
PCI ID, if chip ID is 0. After applying this PR/patch manually to mt76,
the 5GHz on the WE1026 works out of the box. Since the PCI ID is only
used if chip ID is empty, devices with correct EEPROMs are not affected.

Signed-off-by: Kristian Evensen <[email protected]>
2017-10-27 12:26:33 +02:00
2016-02-28 22:06:21 +01:00
2015-12-13 17:54:16 +01:00
2016-09-05 11:12:19 +02:00
2016-09-04 17:33:28 +02:00
2017-03-17 13:29:26 +01:00
2016-09-25 18:13:12 +02:00
2016-09-25 18:13:12 +02:00
2017-10-27 12:15:53 +02:00
2017-10-27 12:15:53 +02:00
2016-09-04 17:33:28 +02:00
2017-10-27 12:15:53 +02:00
2016-09-25 18:13:12 +02:00
2016-09-04 17:33:28 +02:00
2016-09-04 17:33:28 +02:00
2017-10-27 12:15:53 +02:00
2016-09-04 17:33:28 +02:00
2016-09-04 17:33:28 +02:00
2017-10-27 12:15:53 +02:00
2016-09-04 17:33:28 +02:00
2017-07-01 16:46:34 +02:00
2016-09-04 17:33:28 +02:00
2017-07-01 16:46:34 +02:00
2016-09-04 17:33:28 +02:00
2016-09-04 17:33:28 +02:00
2017-10-27 12:15:53 +02:00
2016-09-04 17:33:28 +02:00
2017-10-27 12:15:53 +02:00
2016-09-04 18:06:48 +02:00
S
Description
mac80211 driver for MediaTek MT76x0e, MT76x2e, MT7603, MT7615, MT7628 and MT7688
BSD-3-Clause
105 MiB
Languages
C 99.7%
Perl 0.2%
Makefile 0.1%