Subject: [PATCH] bcm43xx: return correct hard_start_xmit error code]

From: Larry Finger <[email-masked]>
Date: Sat, 19 Aug 2006 10:56:28 -0500

John,

Please apply the following patch by Michael Buesch to wireless-2.6.

Larry

==============================

hard_start_xmit should return a NETIF_TX_FOO error code.

Signed-off-by: Michael Buesch <[email-masked]>
Signed-Off-By: Larry Finger <[email-masked]>

Index: wireless-2.6/drivers/net/wireless/bcm43xx/bcm43xx_main.c
===================================================================
--- wireless-2.6.orig/drivers/net/wireless/bcm43xx/bcm43xx_main.c	
+++ wireless-2.6/drivers/net/wireless/bcm43xx/bcm43xx_main.c	
@@ -3918,7 +3918,9 @@
  		err = bcm43xx_tx(bcm, txb);
  	spin_unlock_irqrestore(&bcm->irq_lock, flags);

-	return err;
+	if (unlikely(err))
+		return NETDEV_TX_BUSY;
+	return NETDEV_TX_OK;
  }

  static struct net_device_stats * bcm43xx_net_get_stats(struct net_device *net_dev)