package/button-hotplug: handle KEY_RESTART and KEY_WPS_BUTTON codes as well
[openwrt.git] / package / mac80211 / patches / 560-ath9k_tx_buf_return_cleanup.patch
index ff55912..a2ccf23 100644 (file)
@@ -1,6 +1,6 @@
 --- a/drivers/net/wireless/ath/ath9k/xmit.c
 +++ b/drivers/net/wireless/ath/ath9k/xmit.c
-@@ -260,19 +260,40 @@ static void ath_tx_set_retry(struct ath_
+@@ -261,19 +261,40 @@ static void ath_tx_set_retry(struct ath_
        hdr->frame_control |= cpu_to_le16(IEEE80211_FCTL_RETRY);
  }
  
@@ -46,7 +46,7 @@
        ATH_TXBUF_RESET(tbf);
  
        tbf->aphy = bf->aphy;
-@@ -1083,9 +1104,7 @@ void ath_draintxq(struct ath_softc *sc, 
+@@ -1081,9 +1102,7 @@ void ath_draintxq(struct ath_softc *sc, 
                                list_del(&bf->list);
                                spin_unlock_bh(&txq->axq_lock);
  
@@ -57,7 +57,7 @@
                                continue;
                        }
                }
-@@ -1305,25 +1324,6 @@ static void ath_tx_txqaddbuf(struct ath_
+@@ -1325,25 +1344,6 @@ static void ath_tx_txqaddbuf(struct ath_
        txq->axq_depth++;
  }
  
@@ -83,7 +83,7 @@
  static void ath_tx_send_ampdu(struct ath_softc *sc, struct ath_atx_tid *tid,
                              struct list_head *bf_head,
                              struct ath_tx_control *txctl)
-@@ -1805,9 +1805,7 @@ int ath_tx_start(struct ieee80211_hw *hw
+@@ -1825,9 +1825,7 @@ int ath_tx_start(struct ieee80211_hw *hw
                }
                spin_unlock_bh(&txq->axq_lock);
  
  
                return r;
        }
-@@ -2123,11 +2121,8 @@ static void ath_tx_processq(struct ath_s
+@@ -2141,13 +2139,12 @@ static void ath_tx_processq(struct ath_s
+               txq->axq_depth--;
+               txok = !(ts.ts_status & ATH9K_TXERR_MASK);
                txq->axq_tx_inprogress = false;
++              if (bf_held)
++                      list_del(&bf_held->list);
                spin_unlock_bh(&txq->axq_lock);
  
 -              if (bf_held) {
This page took 0.032106 seconds and 4 git commands to generate.