SoCs rt305x have the same MAC version but SoC specific bbp init function
called above already. So don't overwrite SoC specific bbp init results.
When changing SoC bbp init I break my head before undestanding why
results were overwritten.
Signed-off-by: Serge Vasilugin <[email protected]>
---
v2 more complete explain in message
--- a/drivers/net/wireless/ralink/rt2x00/rt2800lib.c
+++ b/drivers/net/wireless/ralink/rt2x00/rt2800lib.c
@@ -7257,7 +7257,8 @@ static void rt2800_init_bbp(struct rt2x00_dev *rt2x00dev)
case RT2860:
case RT2872:
case RT2883:
- rt2800_init_bbp_28xx(rt2x00dev);
+ if (!rt2800_is_305x_soc(rt2x00dev))
+ rt2800_init_bbp_28xx(rt2x00dev);
break;
case RT3070:
case RT3071:
--