linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH]rt73usb: fix for master mode.
@ 2009-05-18 12:55 Alexandre Becholey
  2009-05-18 13:17 ` John W. Linville
  2009-05-18 13:31 ` Ivo van Doorn
  0 siblings, 2 replies; 5+ messages in thread
From: Alexandre Becholey @ 2009-05-18 12:55 UTC (permalink / raw)
  To: linux-wireless; +Cc: Alexandre Becholey

[-- Attachment #1: Type: text/plain, Size: 332 bytes --]

Report status unknown as if there were successfully transmitted.
This will avoid hostapd to disassociate because it doesn't understand what a status unknown is.

Signed-off-by: Alexandre Becholey <alexandre.becholey@epfl.ch>
---
 drivers/net/wireless/rt2x00/rt2x00dev.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-rt73usb-fix-for-master-mode.patch --]
[-- Type: text/x-patch; name="0001-rt73usb-fix-for-master-mode.patch", Size: 745 bytes --]

diff --git a/drivers/net/wireless/rt2x00/rt2x00dev.c b/drivers/net/wireless/rt2x00/rt2x00dev.c
index f227084..0bbee06 100644
--- a/drivers/net/wireless/rt2x00/rt2x00dev.c
+++ b/drivers/net/wireless/rt2x00/rt2x00dev.c
@@ -280,6 +280,9 @@ void rt2x00lib_txdone(struct queue_entry *entry,
 	if (!(tx_info->flags & IEEE80211_TX_CTL_NO_ACK)) {
 		if (test_bit(TXDONE_SUCCESS, &txdesc->flags))
 			tx_info->flags |= IEEE80211_TX_STAT_ACK;
+                /* Report unkown status as if it was success */
+                else if (test_bit(TXDONE_UNKNOWN, &txdesc->flags))
+                        tx_info->flags |= IEEE80211_TX_STAT_ACK;
 		else if (test_bit(TXDONE_FAILURE, &txdesc->flags))
 			rt2x00dev->low_level_stats.dot11ACKFailureCount++;
 	}

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

* Re: [PATCH]rt73usb: fix for master mode.
  2009-05-18 12:55 [PATCH]rt73usb: fix for master mode Alexandre Becholey
@ 2009-05-18 13:17 ` John W. Linville
  2009-05-18 13:31 ` Ivo van Doorn
  1 sibling, 0 replies; 5+ messages in thread
From: John W. Linville @ 2009-05-18 13:17 UTC (permalink / raw)
  To: Alexandre Becholey; +Cc: linux-wireless

On Mon, May 18, 2009 at 02:55:36PM +0200, Alexandre Becholey wrote:
> Report status unknown as if there were successfully transmitted.
> This will avoid hostapd to disassociate because it doesn't understand what a status unknown is.
> 
> Signed-off-by: Alexandre Becholey <alexandre.becholey@epfl.ch>
> ---
>  drivers/net/wireless/rt2x00/rt2x00dev.c |    3 +++
>  1 files changed, 3 insertions(+), 0 deletions(-)
> 

Seems OK, but...

> diff --git a/drivers/net/wireless/rt2x00/rt2x00dev.c b/drivers/net/wireless/rt2x00/rt2x00dev.c
> index f227084..0bbee06 100644
> --- a/drivers/net/wireless/rt2x00/rt2x00dev.c
> +++ b/drivers/net/wireless/rt2x00/rt2x00dev.c
> @@ -280,6 +280,9 @@ void rt2x00lib_txdone(struct queue_entry *entry,
>  	if (!(tx_info->flags & IEEE80211_TX_CTL_NO_ACK)) {
>  		if (test_bit(TXDONE_SUCCESS, &txdesc->flags))
>  			tx_info->flags |= IEEE80211_TX_STAT_ACK;
> +                /* Report unkown status as if it was success */
> +                else if (test_bit(TXDONE_UNKNOWN, &txdesc->flags))
> +                        tx_info->flags |= IEEE80211_TX_STAT_ACK;
>  		else if (test_bit(TXDONE_FAILURE, &txdesc->flags))
>  			rt2x00dev->low_level_stats.dot11ACKFailureCount++;
>  	}

Please use tabs...

-- 
John W. Linville		Someday the world will need a hero, and you
linville@tuxdriver.com			might be all we have.  Be ready.

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

* Re: [PATCH]rt73usb: fix for master mode.
  2009-05-18 12:55 [PATCH]rt73usb: fix for master mode Alexandre Becholey
  2009-05-18 13:17 ` John W. Linville
@ 2009-05-18 13:31 ` Ivo van Doorn
  2009-05-18 14:42   ` Alexandre Becholey
  1 sibling, 1 reply; 5+ messages in thread
From: Ivo van Doorn @ 2009-05-18 13:31 UTC (permalink / raw)
  To: Alexandre Becholey; +Cc: linux-wireless

On Monday 18 May 2009, Alexandre Becholey wrote:
> Report status unknown as if there were successfully transmitted.
> This will avoid hostapd to disassociate because it doesn't understand what a status unknown is.
> 
> Signed-off-by: Alexandre Becholey <alexandre.becholey@epfl.ch>
> ---
>  drivers/net/wireless/rt2x00/rt2x00dev.c |    3 +++
>  1 files changed, 3 insertions(+), 0 deletions(-)

Please put your patches inline, and CC me for rt2x00 related patches.

As for the patch it seems like you indented with spaces rather then tabs?
And please put the comment inside the else statement rather then breaking
the if-elseif-elseif list.

Also have you considered the following things:
	RTS frames success/failure reporting?
	tx_success/tx_failure statistics counters (used in link_tuner as well)

Thanks,

Ivo





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

* Re: [PATCH]rt73usb: fix for master mode.
  2009-05-18 13:31 ` Ivo van Doorn
@ 2009-05-18 14:42   ` Alexandre Becholey
  2009-05-18 14:45     ` Ivo van Doorn
  0 siblings, 1 reply; 5+ messages in thread
From: Alexandre Becholey @ 2009-05-18 14:42 UTC (permalink / raw)
  To: Ivo van Doorn; +Cc: linville, linux-wireless

Ivo van Doorn wrote:
> On Monday 18 May 2009, Alexandre Becholey wrote:
>   
>> Report status unknown as if there were successfully transmitted.
>> This will avoid hostapd to disassociate because it doesn't understand what a status unknown is.
>>
>> Signed-off-by: Alexandre Becholey <alexandre.becholey@epfl.ch>
>> ---
>>  drivers/net/wireless/rt2x00/rt2x00dev.c |    3 +++
>>  1 files changed, 3 insertions(+), 0 deletions(-)
>>     
>
> Please put your patches inline, and CC me for rt2x00 related patches.
>   
Yep sorry I forgot to CC you :-/
Oups I forgot an --inline in the git-format-patch
> As for the patch it seems like you indented with spaces rather then tabs?
>   
Sorry first time I submitted a patch... I use vim and I use tabs that's 
strange.
I'll restart from the original file.

> And please put the comment inside the else statement rather then breaking
> the if-elseif-elseif list.
>
> Also have you considered the following things:
> 	RTS frames success/failure reporting?
> 	tx_success/tx_failure statistics counters (used in link_tuner as well)
>
> Thanks,
>
> Ivo
>   
Ok I'll do it, but how should I treat the status unknown for the 
statistics? as a success?

Alexandre

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

* Re: [PATCH]rt73usb: fix for master mode.
  2009-05-18 14:42   ` Alexandre Becholey
@ 2009-05-18 14:45     ` Ivo van Doorn
  0 siblings, 0 replies; 5+ messages in thread
From: Ivo van Doorn @ 2009-05-18 14:45 UTC (permalink / raw)
  To: Alexandre Becholey; +Cc: linville, linux-wireless

> > Also have you considered the following things:
> > 	RTS frames success/failure reporting?
> > 	tx_success/tx_failure statistics counters (used in link_tuner as well)
> >
> > Thanks,
> >
> > Ivo
> >   
> Ok I'll do it, but how should I treat the status unknown for the 
> statistics? as a success?

yeah, since it will be reported as success to mac80211 as well,
it only makes sense to handle it in the statistics as such as well.

Ivo

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

end of thread, other threads:[~2009-05-18 14:45 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-18 12:55 [PATCH]rt73usb: fix for master mode Alexandre Becholey
2009-05-18 13:17 ` John W. Linville
2009-05-18 13:31 ` Ivo van Doorn
2009-05-18 14:42   ` Alexandre Becholey
2009-05-18 14:45     ` Ivo van Doorn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).