linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] b43legacy: Fix failure in rate-adjustment mechanism
@ 2008-09-06 18:34 Larry Finger
  2008-09-06 18:41 ` Michael Buesch
  0 siblings, 1 reply; 12+ messages in thread
From: Larry Finger @ 2008-09-06 18:34 UTC (permalink / raw)
  To: John W Linville, Tim Gardner; +Cc: bcm43xx-dev, linux-wireless

A coding error present since b43legacy was incorporated into the
kernel has prevented the driver from using the rate-setting mechanism
of mac80211. The driver has been forced to remain at a 1 Mb/s rate.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Cc: Stable <stable@kernel.org>		[2.6.26], [2.6.25]
---

John,

Although this is not strictly a regression, it is a bug. I hope
it can be sent to 2.6.27.

Thanks,

Larry
---

Index: wireless-testing/drivers/net/wireless/b43legacy/xmit.c
===================================================================
--- wireless-testing.orig/drivers/net/wireless/b43legacy/xmit.c
+++ wireless-testing/drivers/net/wireless/b43legacy/xmit.c
@@ -629,7 +629,7 @@ void b43legacy_handle_hwtxstatus(struct
 	status.pm_indicated = !!(tmp & 0x80);
 	status.intermediate = !!(tmp & 0x40);
 	status.for_ampdu = !!(tmp & 0x20);
-	status.acked = !!(tmp & 0x02);
+	status.acked = tmp & 0x01;
 
 	b43legacy_handle_txstatus(dev, &status);
 }
Index: wireless-testing/drivers/net/wireless/b43legacy/main.c
===================================================================
--- wireless-testing.orig/drivers/net/wireless/b43legacy/main.c
+++ wireless-testing/drivers/net/wireless/b43legacy/main.c
@@ -744,7 +744,7 @@ static void handle_irq_transmit_status(s
 
 	while (1) {
 		v0 = b43legacy_read32(dev, B43legacy_MMIO_XMITSTAT_0);
-		if (!(v0 & 0x00000001))
+		if (!v0)
 			break;
 		v1 = b43legacy_read32(dev, B43legacy_MMIO_XMITSTAT_1);
 
@@ -758,7 +758,7 @@ static void handle_irq_transmit_status(s
 		stat.pm_indicated = !!(tmp & 0x0080);
 		stat.intermediate = !!(tmp & 0x0040);
 		stat.for_ampdu = !!(tmp & 0x0020);
-		stat.acked = !!(tmp & 0x0002);
+		stat.acked = tmp & 0x0001;
 
 		b43legacy_handle_txstatus(dev, &stat);
 	}

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

end of thread, other threads:[~2008-09-07  2:02 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-06 18:34 [PATCH] b43legacy: Fix failure in rate-adjustment mechanism Larry Finger
2008-09-06 18:41 ` Michael Buesch
2008-09-06 18:44   ` John W. Linville
2008-09-06 18:52   ` Larry Finger
2008-09-06 18:55     ` Michael Buesch
2008-09-06 18:57       ` Johannes Berg
2008-09-06 19:04         ` Michael Buesch
2008-09-06 19:36           ` Larry Finger
2008-09-06 19:41             ` Johannes Berg
2008-09-06 19:59               ` Larry Finger
2008-09-06 20:02                 ` Johannes Berg
2008-09-06 20:07                 ` Michael Buesch

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