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

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).