Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 664f2006 authored by Michael Buesch's avatar Michael Buesch Committed by John W. Linville
Browse files

b43legacy: Do not return TX_BUSY from op_tx



Never return TX_BUSY from op_tx. It doesn't make sense to return
TX_BUSY, if we can not transmit the packet.
Drop the packet and return TX_OK.

Signed-off-by: default avatarMichael Buesch <mb@bu3sch.de>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent c9e8eae0
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -2378,8 +2378,10 @@ static int b43legacy_op_tx(struct ieee80211_hw *hw,
	} else
		err = b43legacy_dma_tx(dev, skb, ctl);
out:
	if (unlikely(err))
		return NETDEV_TX_BUSY;
	if (unlikely(err)) {
		/* Drop the packet. */
		dev_kfree_skb_any(skb);
	}
	return NETDEV_TX_OK;
}