Subject: [PATCH v3 01/16] rt2x00: define RF5592 in init_eeprom routine

From: Daniel Golle <[email-masked]>
Date: Sat, 17 Sep 2022 21:26:27 +0100

From: Tomislav Požega <[email-masked]>

Fix incorrect RF value encoded in EEPROM on devices with Ralink Rt5592
PCIe radio (a single chip 2T2R 802.11abgn solution).

Signed-off-by: Tomislav Požega <[email-masked]>
Signed-off-by: Daniel Golle <[email-masked]>
Acked-by: Stanislaw Gruszka <[email-masked]>
---
 drivers/net/wireless/ralink/rt2x00/rt2800lib.c | 2 ++
 1 file changed, 2 insertions(+)

--- a/drivers/net/wireless/ralink/rt2x00/rt2800lib.c
+++ b/drivers/net/wireless/ralink/rt2x00/rt2800lib.c
@@ -9461,6 +9461,8 @@ static int rt2800_init_eeprom(struct rt2
 		rf = RF3853;
 	else if (rt2x00_rt(rt2x00dev, RT5350))
 		rf = RF5350;
+	else if (rt2x00_rt(rt2x00dev, RT5592))
+		rf = RF5592;
 	else
 		rf = rt2x00_get_field16(eeprom, EEPROM_NIC_CONF0_RF_TYPE);