[PATCH] b43legacy: Fix failure in rate-adjustment mechanism Bug: #273143

Larry Finger Larry.Finger at lwfinger.net
Sat Sep 6 22:51:22 BST 2008


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 at lwfinger.net>
Cc: Stable <stable at kernel.org>		[2.6.26], [2.6.25]
Signed-off-by: John W. Linville <linville at tuxdriver.com>
Signed-off-by: Tim Ggardner <tim.gardner at canonical.com>
---
 drivers/net/wireless/b43legacy/xmit.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/net/wireless/b43legacy/xmit.c b/drivers/net/wireless/b43legacy/xmit.c
index f10d637..daaa716 100644
--- a/drivers/net/wireless/b43legacy/xmit.c
+++ b/drivers/net/wireless/b43legacy/xmit.c
@@ -606,7 +606,7 @@ void b43legacy_handle_hwtxstatus(struct b43legacy_wldev *dev,
 	tmp = hw->count;
 	status.frame_count = (tmp >> 4);
 	status.rts_count = (tmp & 0x0F);
-	tmp = hw->flags;
+	tmp = hw->flags << 1;
 	status.supp_reason = ((tmp & 0x1C) >> 2);
 	status.pm_indicated = !!(tmp & 0x80);
 	status.intermediate = !!(tmp & 0x40);
-- 
1.5.4.3


--------------090802080007010605060804--



More information about the kernel-team mailing list