rt2x00: fix rf id for rt3352 (#14322)
[openwrt/svn-archive/archive.git] / package / mac80211 / patches / 620-rt2x00-rt3352-rf-id.patch
1 --- a/drivers/net/wireless/rt2x00/rt2800lib.c
2 +++ b/drivers/net/wireless/rt2x00/rt2800lib.c
3 @@ -5854,10 +5854,11 @@ static int rt2800_init_eeprom(struct rt2
4 * RT53xx: defined in "EEPROM_CHIP_ID" field
5 */
6 if (rt2x00_rt(rt2x00dev, RT3290) ||
7 - rt2x00_rt(rt2x00dev, RT3352) ||
8 rt2x00_rt(rt2x00dev, RT5390) ||
9 rt2x00_rt(rt2x00dev, RT5392))
10 rt2x00_eeprom_read(rt2x00dev, EEPROM_CHIP_ID, &rf);
11 + else if (rt2x00_rt(rt2x00dev, RT3352))
12 + rf = RF3322;
13 else if (rt2x00_rt(rt2x00dev, RT5350))
14 rf = RF5350;
15 else