public inbox for linux-wireless@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] p54: Fix regression due to commit b19fa1f
@ 2008-08-04 21:14 Larry Finger
  2008-08-06 22:57 ` Chr
  0 siblings, 1 reply; 15+ messages in thread
From: Larry Finger @ 2008-08-04 21:14 UTC (permalink / raw)
  To: John W Linville; +Cc: linux-wireless

In commit b19fa1fa91845234961c64dbd564671aa7c0fd27, the configuration
parameter NETDEVICES_MULTIQUEUE was eliminated making multiple TX queues
the normal behavior. For p54usb, enabling multiple queues broke the driver.

The real failure is not known, but a temporary hack that forces only one
queue is presented here.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
---

John,

This is clearly not the best fix, but there has been no action so far, and
it does fix the b19fa1f regression. Let's push this up to 2.6.27.

Larry


Index: linux-2.6/drivers/net/wireless/p54/p54common.c
===================================================================
--- linux-2.6.orig/drivers/net/wireless/p54/p54common.c
+++ linux-2.6/drivers/net/wireless/p54/p54common.c
@@ -150,7 +150,7 @@ void p54_parse_firmware(struct ieee80211
 		priv->tx_stats[1].limit = 4;
 		priv->tx_stats[2].limit = 3;
 		priv->tx_stats[3].limit = 1;
-		dev->queues = 4;
+		dev->queues = 1; /* temp. hack, set to 1 as 4 breaks p54usb */
 	}
 }
 EXPORT_SYMBOL_GPL(p54_parse_firmware);

^ permalink raw reply	[flat|nested] 15+ messages in thread
* [PATCH] p54: Fix regression due to commit b19fa1f
@ 2008-08-07 13:21 Larry Finger
  2008-08-07 13:27 ` Johannes Berg
  0 siblings, 1 reply; 15+ messages in thread
From: Larry Finger @ 2008-08-07 13:21 UTC (permalink / raw)
  To: John W Linville, chunkeey; +Cc: linux-wireless

From: Christian Lamparter <chunkeey@web.de>

For p54pci and p54usb, skb_get_queue_mapping does not work correctly for
multiple queues.

Signed-off-by: Christian Lamparter <chunkeey@web.de>
Acked by: Larry Finger <Larry.Finger@lwfinger.net>
CC: stable@kernel.org
---

Index: wireless-testing/drivers/net/wireless/p54/p54common.c
===================================================================
--- wireless-testing.orig/drivers/net/wireless/p54/p54common.c
+++ wireless-testing/drivers/net/wireless/p54/p54common.c
@@ -413,12 +413,12 @@ static void p54_rx_frame_sent(struct iee
 			last_addr = range->end_addr;
 			__skb_unlink(entry, &priv->tx_queue);
 			memset(&info->status, 0, sizeof(info->status));
-			priv->tx_stats[skb_get_queue_mapping(skb)].len--;
 			entry_hdr = (struct p54_control_hdr *) entry->data;
 			entry_data = (struct p54_tx_control_allocdata *) entry_hdr->data;
 			if ((entry_hdr->magic1 & cpu_to_le16(0x4000)) != 0)
 				pad = entry_data->align[0];
 
+			priv->tx_stats[le32_to_cpu(entry_data->frame_type - 4)].len--;
 			if (!(info->flags & IEEE80211_TX_CTL_NO_ACK)) {
 				if (!(payload->status & 0x01))
 					info->flags |= IEEE80211_TX_STAT_ACK;

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

end of thread, other threads:[~2008-08-07 23:15 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-04 21:14 [PATCH] p54: Fix regression due to commit b19fa1f Larry Finger
2008-08-06 22:57 ` Chr
2008-08-07  3:33   ` Larry Finger
2008-08-07  7:33     ` Chr
2008-08-07  6:35   ` Johannes Berg
  -- strict thread matches above, loose matches on Subject: below --
2008-08-07 13:21 Larry Finger
2008-08-07 13:27 ` Johannes Berg
2008-08-07 15:20   ` Larry Finger
2008-08-07 15:27   ` Chr
2008-08-07 15:26     ` Johannes Berg
2008-08-07 15:27     ` Johannes Berg
2008-08-07 16:00       ` Chr
2008-08-07 16:34         ` Michael Buesch
2008-08-07 15:59     ` Larry Finger
2008-08-07 23:18       ` Chr

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox