]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
rtl8xxxu: Work around issue with 8192eu and 8723bu devices not reconnecting
authorJes Sorensen <Jes.Sorensen@redhat.com>
Tue, 29 Nov 2016 23:59:02 +0000 (18:59 -0500)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 1 Dec 2016 12:24:05 +0000 (14:24 +0200)
The H2C MEDIA_STATUS_RPT command for some reason causes 8192eu and
8723bu devices not being able to reconnect.

Reported-by: Barry Day <briselec@gmail.com>
Cc: <stable@vger.kernel.org> #4.8+
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c

index a9137abc3ad93da69ec92050d7ff52d5b5cc066c..3a86675020a210f4bd325b2d8376822e19203d59 100644 (file)
@@ -4372,6 +4372,13 @@ 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.
+        */
        struct h2c_cmd h2c;
 
        memset(&h2c, 0, sizeof(struct h2c_cmd));
@@ -4383,6 +4390,7 @@ 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)