rt2x00: rt2800lib: fix rf id for RT3352
authorFelix Fietkau <nbd@openwrt.org>
Mon, 16 Jan 2017 03:13:01 +0000 (04:13 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 19 Jan 2017 12:49:12 +0000 (14:49 +0200)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Acked-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ralink/rt2x00/rt2800lib.c

index 7480b28a6873b7b83e46030344d1d3d939c5c767..41fbfd6c4eecf4d9fbcddbc3ec5ac0e914d9f669 100644 (file)
@@ -7112,6 +7112,8 @@ static int rt2800_init_eeprom(struct rt2x00_dev *rt2x00dev)
            rt2x00_rt(rt2x00dev, RT5390) ||
            rt2x00_rt(rt2x00dev, RT5392))
                rt2800_eeprom_read(rt2x00dev, EEPROM_CHIP_ID, &rf);
+       else if (rt2x00_rt(rt2x00dev, RT3352))
+               rf = RF3322;
        else
                rf = rt2x00_get_field16(eeprom, EEPROM_NIC_CONF0_RF_TYPE);