wifi: rtl8xxxu: gen2: Turn on the rate control
[platform/kernel/linux-starfive.git] / drivers / net / wireless / realtek / rtl8xxxu / rtl8xxxu_core.c
index e9c1b62..e445084 100644 (file)
@@ -4389,12 +4389,9 @@ void rtl8xxxu_gen1_report_connect(struct rtl8xxxu_priv *priv,
 void rtl8xxxu_gen2_report_connect(struct rtl8xxxu_priv *priv,
                                  u8 macid, bool connect)
 {
-#ifdef RTL8XXXU_GEN2_REPORT_CONNECT
        /*
-        * Barry Day reports this causes issues with 8192eu and 8723bu
-        * devices reconnecting. The reason for this is unclear, but
-        * until it is better understood, leave the code in place but
-        * disabled, so it is not lost.
+        * The firmware turns on the rate control when it knows it's
+        * connected to a network.
         */
        struct h2c_cmd h2c;
 
@@ -4407,7 +4404,6 @@ void rtl8xxxu_gen2_report_connect(struct rtl8xxxu_priv *priv,
                h2c.media_status_rpt.parm &= ~BIT(0);
 
        rtl8xxxu_gen2_h2c_cmd(priv, &h2c, sizeof(h2c.media_status_rpt));
-#endif
 }
 
 void rtl8xxxu_gen1_init_aggregation(struct rtl8xxxu_priv *priv)