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

From: Michael Buesch <[email-masked]>
Date: Sat, 19 Aug 2006 20:18:27 +0200

Hi John,

Please apply this to wireless-dev.

--

hard_start_xmit should return a NETDEV_TX_FOO error code.

Signed-off-by: Michael Buesch <[email-masked]>

Index: wireless-dev/drivers/net/wireless/d80211/bcm43xx/bcm43xx_main.c
===================================================================
--- wireless-dev.orig/drivers/net/wireless/d80211/bcm43xx/bcm43xx_main.c	2006-08-19 18:26:03.000000000 +0200
+++ wireless-dev/drivers/net/wireless/d80211/bcm43xx/bcm43xx_main.c	2006-08-19 20:11:20.000000000 +0200
@@ -3980,7 +3980,9 @@
 	}
 	spin_unlock_irqrestore(&bcm->irq_lock, flags);
 
-	return err;
+	if (unlikely(err))
+		return NETDEV_TX_BUSY;
+	return NETDEV_TX_OK;
 }
 
 static int bcm43xx_net_reset(struct net_device *net_dev)

-- 
Greetings Michael.