[drivers rtl8180] Provide retry information with TX completion
authorJoshua Oreman <oremanj@xenon.get-linux.org>
Wed, 17 Jun 2009 07:47:36 +0000 (00:47 -0700)
committerJoshua Oreman <oremanj@xenon.get-linux.org>
Wed, 17 Jun 2009 07:47:36 +0000 (00:47 -0700)
src/drivers/net/rtl818x/rtl8180.c

index 5cdfbd5..d97cafd 100644 (file)
@@ -132,7 +132,7 @@ static void rtl8180_handle_tx(struct net80211_device *dev)
                        rc = EIO;
                }
 
-               net80211_tx_complete(dev, iob, rc);
+               net80211_tx_complete(dev, iob, flags & 0xFF, rc);
 
                priv->tx_buf[priv->tx_cons] = NULL;
                priv->tx_cons = (priv->tx_cons + 1) % RTL8180_TX_RING_SIZE;
@@ -394,7 +394,7 @@ static void rtl8180_free_tx_ring(struct net80211_device *dev)
 
        for (i = 0; i < RTL8180_TX_RING_SIZE; i++) {
                if (priv->tx_buf[i])
-                       net80211_tx_complete(dev, priv->tx_buf[i], ECANCELED);
+                       net80211_tx_complete(dev, priv->tx_buf[i], 0, ECANCELED);
                priv->tx_buf[i] = NULL;
        }