All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/1] rtl8xxxu: Workaround for 8192eu/8723bu not reconnecting
@ 2016-11-29 23:59 Jes.Sorensen
  2016-11-29 23:59 ` [PATCH 1/1] rtl8xxxu: Work around issue with 8192eu and 8723bu devices " Jes.Sorensen
  2016-11-30  8:46 ` [PATCH 0/1] rtl8xxxu: Workaround for 8192eu/8723bu " Kalle Valo
  0 siblings, 2 replies; 9+ messages in thread
From: Jes.Sorensen @ 2016-11-29 23:59 UTC (permalink / raw)
  To: linux-wireless; +Cc: kvalo, briselec

From: Jes Sorensen <Jes.Sorensen@redhat.com>

Hi,

This patch works around the issue with 8192eu and 8723bu devices not
being able to reconnect. It is still not clear why this fails, and
looking at rtlwifi it does issue the command for 8192ee and 8723be
devices.

Until we have a better idea of what is going on, I have commented out
the offending code. I prefer not deleting it until we have a better
understanding of why this is causing issues.

Credits to Barry Day for tracking down and isolating the issue.

Kalle, not sure if this can make it to 4.9, but if it's possible it
would be ideal since this is causing real issues in the field.

Cheers,
Jes


Jes Sorensen (1):
  rtl8xxxu: Work around issue with 8192eu and 8723bu devices not
    reconnecting

 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c | 8 ++++++++
 1 file changed, 8 insertions(+)

-- 
2.7.4

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [PATCH 1/1] rtl8xxxu: Work around issue with 8192eu and 8723bu devices not reconnecting
  2016-11-29 23:59 [PATCH 0/1] rtl8xxxu: Workaround for 8192eu/8723bu not reconnecting Jes.Sorensen
@ 2016-11-29 23:59 ` Jes.Sorensen
  2016-12-01 10:20   ` [1/1] " Kalle Valo
  2016-12-01 12:24   ` Kalle Valo
  2016-11-30  8:46 ` [PATCH 0/1] rtl8xxxu: Workaround for 8192eu/8723bu " Kalle Valo
  1 sibling, 2 replies; 9+ messages in thread
From: Jes.Sorensen @ 2016-11-29 23:59 UTC (permalink / raw)
  To: linux-wireless; +Cc: kvalo, briselec

From: Jes Sorensen <Jes.Sorensen@redhat.com>

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>
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
---
 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c
index a9137ab..3a86675 100644
--- a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c
+++ b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c
@@ -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)
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 9+ messages in thread

* Re: [PATCH 0/1] rtl8xxxu: Workaround for 8192eu/8723bu not reconnecting
  2016-11-29 23:59 [PATCH 0/1] rtl8xxxu: Workaround for 8192eu/8723bu not reconnecting Jes.Sorensen
  2016-11-29 23:59 ` [PATCH 1/1] rtl8xxxu: Work around issue with 8192eu and 8723bu devices " Jes.Sorensen
@ 2016-11-30  8:46 ` Kalle Valo
  2016-11-30 13:54   ` Luca Coelho
  1 sibling, 1 reply; 9+ messages in thread
From: Kalle Valo @ 2016-11-30  8:46 UTC (permalink / raw)
  To: Jes.Sorensen; +Cc: linux-wireless, briselec

Jes.Sorensen@redhat.com writes:

> From: Jes Sorensen <Jes.Sorensen@redhat.com>
>
> Hi,
>
> This patch works around the issue with 8192eu and 8723bu devices not
> being able to reconnect. It is still not clear why this fails, and
> looking at rtlwifi it does issue the command for 8192ee and 8723be
> devices.
>
> Until we have a better idea of what is going on, I have commented out
> the offending code. I prefer not deleting it until we have a better
> understanding of why this is causing issues.
>
> Credits to Barry Day for tracking down and isolating the issue.
>
> Kalle, not sure if this can make it to 4.9, but if it's possible it
> would be ideal since this is causing real issues in the field.

For 4.9 this is too late, sorry. I'll queue this to 4.10.

-- 
Kalle Valo

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH 0/1] rtl8xxxu: Workaround for 8192eu/8723bu not reconnecting
  2016-11-30  8:46 ` [PATCH 0/1] rtl8xxxu: Workaround for 8192eu/8723bu " Kalle Valo
@ 2016-11-30 13:54   ` Luca Coelho
  2016-11-30 15:32     ` Jes Sorensen
  0 siblings, 1 reply; 9+ messages in thread
From: Luca Coelho @ 2016-11-30 13:54 UTC (permalink / raw)
  To: Kalle Valo, Jes.Sorensen; +Cc: linux-wireless, briselec

On Wed, 2016-11-30 at 10:46 +0200, Kalle Valo wrote:
> Jes.Sorensen@redhat.com writes:
> 
> > From: Jes Sorensen <Jes.Sorensen@redhat.com>
> > 
> > Hi,
> > 
> > This patch works around the issue with 8192eu and 8723bu devices not
> > being able to reconnect. It is still not clear why this fails, and
> > looking at rtlwifi it does issue the command for 8192ee and 8723be
> > devices.
> > 
> > Until we have a better idea of what is going on, I have commented out
> > the offending code. I prefer not deleting it until we have a better
> > understanding of why this is causing issues.
> > 
> > Credits to Barry Day for tracking down and isolating the issue.
> > 
> > Kalle, not sure if this can make it to 4.9, but if it's possible it
> > would be ideal since this is causing real issues in the field.
> 
> For 4.9 this is too late, sorry. I'll queue this to 4.10.

You should then CC stable so it gets into 4.9.x when it reaches 4.10.

--
Luca.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH 0/1] rtl8xxxu: Workaround for 8192eu/8723bu not reconnecting
  2016-11-30 13:54   ` Luca Coelho
@ 2016-11-30 15:32     ` Jes Sorensen
  2016-11-30 17:27       ` Kalle Valo
  0 siblings, 1 reply; 9+ messages in thread
From: Jes Sorensen @ 2016-11-30 15:32 UTC (permalink / raw)
  To: Luca Coelho; +Cc: Kalle Valo, linux-wireless, briselec

Luca Coelho <luca@coelho.fi> writes:
> On Wed, 2016-11-30 at 10:46 +0200, Kalle Valo wrote:
>> Jes.Sorensen@redhat.com writes:
>> 
>> > From: Jes Sorensen <Jes.Sorensen@redhat.com>
>> > 
>> > Hi,
>> > 
>> > This patch works around the issue with 8192eu and 8723bu devices not
>> > being able to reconnect. It is still not clear why this fails, and
>> > looking at rtlwifi it does issue the command for 8192ee and 8723be
>> > devices.
>> > 
>> > Until we have a better idea of what is going on, I have commented out
>> > the offending code. I prefer not deleting it until we have a better
>> > understanding of why this is causing issues.
>> > 
>> > Credits to Barry Day for tracking down and isolating the issue.
>> > 
>> > Kalle, not sure if this can make it to 4.9, but if it's possible it
>> > would be ideal since this is causing real issues in the field.
>> 
>> For 4.9 this is too late, sorry. I'll queue this to 4.10.
>
> You should then CC stable so it gets into 4.9.x when it reaches 4.10.

Yeah good idea - Kalle do you want me to repost it with the CC line or
are you happy to add it?

Cheers,
Jes

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH 0/1] rtl8xxxu: Workaround for 8192eu/8723bu not reconnecting
  2016-11-30 15:32     ` Jes Sorensen
@ 2016-11-30 17:27       ` Kalle Valo
  2016-11-30 17:40         ` Jes Sorensen
  0 siblings, 1 reply; 9+ messages in thread
From: Kalle Valo @ 2016-11-30 17:27 UTC (permalink / raw)
  To: Jes Sorensen; +Cc: Luca Coelho, linux-wireless, briselec

Jes Sorensen <Jes.Sorensen@redhat.com> writes:

> Luca Coelho <luca@coelho.fi> writes:
>> On Wed, 2016-11-30 at 10:46 +0200, Kalle Valo wrote:
>>> Jes.Sorensen@redhat.com writes:
>>> 
>>> > From: Jes Sorensen <Jes.Sorensen@redhat.com>
>>> > 
>>> > Hi,
>>> > 
>>> > This patch works around the issue with 8192eu and 8723bu devices not
>>> > being able to reconnect. It is still not clear why this fails, and
>>> > looking at rtlwifi it does issue the command for 8192ee and 8723be
>>> > devices.
>>> > 
>>> > Until we have a better idea of what is going on, I have commented out
>>> > the offending code. I prefer not deleting it until we have a better
>>> > understanding of why this is causing issues.
>>> > 
>>> > Credits to Barry Day for tracking down and isolating the issue.
>>> > 
>>> > Kalle, not sure if this can make it to 4.9, but if it's possible it
>>> > would be ideal since this is causing real issues in the field.
>>> 
>>> For 4.9 this is too late, sorry. I'll queue this to 4.10.
>>
>> You should then CC stable so it gets into 4.9.x when it reaches 4.10.
>
> Yeah good idea - Kalle do you want me to repost it with the CC line or
> are you happy to add it?

I can add it. To which stable releases should this go to?

-- 
Kalle Valo

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH 0/1] rtl8xxxu: Workaround for 8192eu/8723bu not reconnecting
  2016-11-30 17:27       ` Kalle Valo
@ 2016-11-30 17:40         ` Jes Sorensen
  0 siblings, 0 replies; 9+ messages in thread
From: Jes Sorensen @ 2016-11-30 17:40 UTC (permalink / raw)
  To: Kalle Valo; +Cc: Luca Coelho, linux-wireless, briselec

Kalle Valo <kvalo@codeaurora.org> writes:
> Jes Sorensen <Jes.Sorensen@redhat.com> writes:
>
>> Luca Coelho <luca@coelho.fi> writes:
>>> On Wed, 2016-11-30 at 10:46 +0200, Kalle Valo wrote:
>>>> Jes.Sorensen@redhat.com writes:
>>>> 
>>>> > From: Jes Sorensen <Jes.Sorensen@redhat.com>
>>>> > 
>>>> > Hi,
>>>> > 
>>>> > This patch works around the issue with 8192eu and 8723bu devices not
>>>> > being able to reconnect. It is still not clear why this fails, and
>>>> > looking at rtlwifi it does issue the command for 8192ee and 8723be
>>>> > devices.
>>>> > 
>>>> > Until we have a better idea of what is going on, I have commented out
>>>> > the offending code. I prefer not deleting it until we have a better
>>>> > understanding of why this is causing issues.
>>>> > 
>>>> > Credits to Barry Day for tracking down and isolating the issue.
>>>> > 
>>>> > Kalle, not sure if this can make it to 4.9, but if it's possible it
>>>> > would be ideal since this is causing real issues in the field.
>>>> 
>>>> For 4.9 this is too late, sorry. I'll queue this to 4.10.
>>>
>>> You should then CC stable so it gets into 4.9.x when it reaches 4.10.
>>
>> Yeah good idea - Kalle do you want me to repost it with the CC line or
>> are you happy to add it?
>
> I can add it. To which stable releases should this go to?

Lets target 4.8 and 4.9 - I just verified it applies against 4.8.

Thanks,
Jes

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [1/1] rtl8xxxu: Work around issue with 8192eu and 8723bu devices not reconnecting
  2016-11-29 23:59 ` [PATCH 1/1] rtl8xxxu: Work around issue with 8192eu and 8723bu devices " Jes.Sorensen
@ 2016-12-01 10:20   ` Kalle Valo
  2016-12-01 12:24   ` Kalle Valo
  1 sibling, 0 replies; 9+ messages in thread
From: Kalle Valo @ 2016-12-01 10:20 UTC (permalink / raw)
  To: Jes Sorensen; +Cc: linux-wireless, briselec

Jes Sorensen <Jes.Sorensen@redhat.com> wrote:
> From: Jes Sorensen <Jes.Sorensen@redhat.com>
> 
> 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>
> Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>

Like discussed I'll add:

Cc: <stable@vger.kernel.org> #4.8+

-- 
https://patchwork.kernel.org/patch/9453251/

Documentation about submitting wireless patches and checking status
from patchwork:

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [1/1] rtl8xxxu: Work around issue with 8192eu and 8723bu devices not reconnecting
  2016-11-29 23:59 ` [PATCH 1/1] rtl8xxxu: Work around issue with 8192eu and 8723bu devices " Jes.Sorensen
  2016-12-01 10:20   ` [1/1] " Kalle Valo
@ 2016-12-01 12:24   ` Kalle Valo
  1 sibling, 0 replies; 9+ messages in thread
From: Kalle Valo @ 2016-12-01 12:24 UTC (permalink / raw)
  To: Jes Sorensen; +Cc: linux-wireless, briselec

Jes Sorensen <Jes.Sorensen@redhat.com> wrote:
> From: Jes Sorensen <Jes.Sorensen@redhat.com>
> 
> 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>

Patch applied to wireless-drivers-next.git, thanks.

c59f13bbead4 rtl8xxxu: Work around issue with 8192eu and 8723bu devices not reconnecting

-- 
https://patchwork.kernel.org/patch/9453251/

Documentation about submitting wireless patches and checking status
from patchwork:

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2016-12-01 12:25 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-11-29 23:59 [PATCH 0/1] rtl8xxxu: Workaround for 8192eu/8723bu not reconnecting Jes.Sorensen
2016-11-29 23:59 ` [PATCH 1/1] rtl8xxxu: Work around issue with 8192eu and 8723bu devices " Jes.Sorensen
2016-12-01 10:20   ` [1/1] " Kalle Valo
2016-12-01 12:24   ` Kalle Valo
2016-11-30  8:46 ` [PATCH 0/1] rtl8xxxu: Workaround for 8192eu/8723bu " Kalle Valo
2016-11-30 13:54   ` Luca Coelho
2016-11-30 15:32     ` Jes Sorensen
2016-11-30 17:27       ` Kalle Valo
2016-11-30 17:40         ` Jes Sorensen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.