diff options
author | Larry Finger <Larry.Finger@lwfinger.net> | 2006-08-19 11:56:28 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2006-08-29 17:06:30 -0400 |
commit | b6971c2191d910714ec36b0ef50886f12c744a06 (patch) | |
tree | d0c3a73fd93614cbb330e661784072f9847f1338 /drivers/net/wireless/bcm43xx/bcm43xx_main.c | |
parent | 80b60fa8488e98ceaecb8f976abe79df50988037 (diff) |
[PATCH] bcm43xx: return correct hard_start_xmit error code
hard_start_xmit should return a NETIF_TX_FOO error code.
Signed-off-by: Michael Buesch <mb@bu3sch.de>
Signed-Off-By: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/bcm43xx/bcm43xx_main.c')
-rw-r--r-- | drivers/net/wireless/bcm43xx/bcm43xx_main.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/wireless/bcm43xx/bcm43xx_main.c b/drivers/net/wireless/bcm43xx/bcm43xx_main.c index b1e45340bd82..468cd8a376b5 100644 --- a/drivers/net/wireless/bcm43xx/bcm43xx_main.c +++ b/drivers/net/wireless/bcm43xx/bcm43xx_main.c | |||
@@ -3918,7 +3918,9 @@ static int bcm43xx_ieee80211_hard_start_xmit(struct ieee80211_txb *txb, | |||
3918 | err = bcm43xx_tx(bcm, txb); | 3918 | err = bcm43xx_tx(bcm, txb); |
3919 | spin_unlock_irqrestore(&bcm->irq_lock, flags); | 3919 | spin_unlock_irqrestore(&bcm->irq_lock, flags); |
3920 | 3920 | ||
3921 | return err; | 3921 | if (unlikely(err)) |
3922 | return NETDEV_TX_BUSY; | ||
3923 | return NETDEV_TX_OK; | ||
3922 | } | 3924 | } |
3923 | 3925 | ||
3924 | static struct net_device_stats * bcm43xx_net_get_stats(struct net_device *net_dev) | 3926 | static struct net_device_stats * bcm43xx_net_get_stats(struct net_device *net_dev) |