X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/559f191cc256f9fc93405a74b0fb4dd9339424aa..3b3f7e203dd94995eb34a385bca33cc7282a4b8d:/package/mac80211/patches/541-ath9k_aggr_queue_cleanup.patch diff --git a/package/mac80211/patches/541-ath9k_aggr_queue_cleanup.patch b/package/mac80211/patches/541-ath9k_aggr_queue_cleanup.patch index 1ea3c143f..27c144fba 100644 --- a/package/mac80211/patches/541-ath9k_aggr_queue_cleanup.patch +++ b/package/mac80211/patches/541-ath9k_aggr_queue_cleanup.patch @@ -6,8 +6,8 @@ struct ath_frame_info { + struct ath_buf *bf; int framelen; - u32 keyix; enum ath9k_key_type keytype; + u8 keyix; @@ -235,7 +236,7 @@ struct ath_buf { struct ath_atx_tid { @@ -92,7 +92,7 @@ if (fi->retries) ath_tx_update_baw(sc, tid, fi->seqno); -@@ -352,7 +353,8 @@ static void ath_tx_complete_aggr(struct +@@ -349,7 +350,8 @@ static void ath_tx_complete_aggr(struct struct ieee80211_tx_info *tx_info; struct ath_atx_tid *tid = NULL; struct ath_buf *bf_next, *bf_last = bf->bf_lastbf; @@ -102,7 +102,7 @@ u16 seq_st = 0, acked_cnt = 0, txfail_cnt = 0; u32 ba[WME_BA_BMP_SIZE >> 5]; int isaggr, txfail, txpending, sendbar = 0, needreset = 0, nbad = 0; -@@ -430,8 +432,7 @@ static void ath_tx_complete_aggr(struct +@@ -422,8 +424,7 @@ static void ath_tx_complete_aggr(struct } } @@ -112,7 +112,7 @@ ath_tx_count_frames(sc, bf, ts, txok, &nframes, &nbad); while (bf) { -@@ -476,10 +477,10 @@ static void ath_tx_complete_aggr(struct +@@ -467,10 +468,10 @@ static void ath_tx_complete_aggr(struct * Make sure the last desc is reclaimed if it * not a holding desc. */ @@ -126,7 +126,7 @@ if (!txpending || (tid->state & AGGR_CLEANUP)) { /* -@@ -530,7 +531,7 @@ static void ath_tx_complete_aggr(struct +@@ -521,7 +522,7 @@ static void ath_tx_complete_aggr(struct ath9k_hw_cleartxdesc(sc->sc_ah, tbf->bf_desc); @@ -135,7 +135,7 @@ } else { /* * Clear descriptor status words for -@@ -545,21 +546,21 @@ static void ath_tx_complete_aggr(struct +@@ -536,21 +537,21 @@ static void ath_tx_complete_aggr(struct * Put this buffer to the temporary pending * queue to retain ordering */ @@ -160,7 +160,7 @@ if (!an->sleeping) ath_tx_queue_tid(txq, tid); spin_unlock_bh(&txq->axq_lock); -@@ -721,19 +722,22 @@ static enum ATH_AGGR_STATUS ath_tx_form_ +@@ -743,19 +744,22 @@ static enum ATH_AGGR_STATUS ath_tx_form_ int *aggr_len) { #define PADBYTES(_len) ((4 - ((_len) % 4)) % 4) @@ -188,7 +188,7 @@ /* do not step over block-ack window */ if (!BAW_WITHIN(tid->seq_start, tid->baw_size, fi->seqno)) { -@@ -784,7 +788,9 @@ static enum ATH_AGGR_STATUS ath_tx_form_ +@@ -808,7 +812,9 @@ static enum ATH_AGGR_STATUS ath_tx_form_ if (!fi->retries) ath_tx_addto_baw(sc, tid, fi->seqno); ath9k_hw_set11n_aggr_middle(sc->sc_ah, bf->bf_desc, ndelim); @@ -199,7 +199,7 @@ if (bf_prev) { bf_prev->bf_next = bf; ath9k_hw_set_desc_link(sc->sc_ah, bf_prev->bf_desc, -@@ -792,7 +798,7 @@ static enum ATH_AGGR_STATUS ath_tx_form_ +@@ -816,7 +822,7 @@ static enum ATH_AGGR_STATUS ath_tx_form_ } bf_prev = bf; @@ -208,7 +208,7 @@ *aggr_len = al; -@@ -810,7 +816,7 @@ static void ath_tx_sched_aggr(struct ath +@@ -834,7 +840,7 @@ static void ath_tx_sched_aggr(struct ath int aggr_len; do { @@ -217,7 +217,7 @@ return; INIT_LIST_HEAD(&bf_q); -@@ -931,7 +937,7 @@ bool ath_tx_aggr_sleep(struct ath_softc +@@ -955,7 +961,7 @@ bool ath_tx_aggr_sleep(struct ath_softc spin_lock_bh(&txq->axq_lock); @@ -226,7 +226,7 @@ buffered = true; tid->sched = false; -@@ -964,7 +970,7 @@ void ath_tx_aggr_wakeup(struct ath_softc +@@ -988,7 +994,7 @@ void ath_tx_aggr_wakeup(struct ath_softc spin_lock_bh(&txq->axq_lock); ac->clear_ps_filter = true; @@ -235,7 +235,7 @@ ath_tx_queue_tid(txq, tid); ath_txq_schedule(sc, txq); } -@@ -1308,7 +1314,7 @@ void ath_txq_schedule(struct ath_softc * +@@ -1332,7 +1338,7 @@ void ath_txq_schedule(struct ath_softc * * add tid to round-robin queue if more frames * are pending for the tid */ @@ -244,7 +244,7 @@ ath_tx_queue_tid(txq, tid); if (tid == last_tid || -@@ -1414,7 +1420,7 @@ static void ath_tx_send_ampdu(struct ath +@@ -1438,7 +1444,7 @@ static void ath_tx_send_ampdu(struct ath * - seqno is not within block-ack window * - h/w queue depth exceeds low water mark */ @@ -253,7 +253,7 @@ !BAW_WITHIN(tid->seq_start, tid->baw_size, fi->seqno) || txctl->txq->axq_ampdu_depth >= ATH_AGGR_MIN_QDEPTH) { /* -@@ -1422,7 +1428,7 @@ static void ath_tx_send_ampdu(struct ath +@@ -1446,7 +1452,7 @@ static void ath_tx_send_ampdu(struct ath * for aggregation. */ TX_STAT_INC(txctl->txq->axq_qnum, a_queued_sw); @@ -262,7 +262,7 @@ if (!txctl->an || !txctl->an->sleeping) ath_tx_queue_tid(txctl->txq, tid); return; -@@ -1753,6 +1759,7 @@ static struct ath_buf *ath_tx_setup_buff +@@ -1777,6 +1783,7 @@ static struct ath_buf *ath_tx_setup_buff bf->bf_buf_addr, txq->axq_qnum); @@ -270,7 +270,7 @@ return bf; } -@@ -2370,7 +2377,7 @@ void ath_tx_node_init(struct ath_softc * +@@ -2394,7 +2401,7 @@ void ath_tx_node_init(struct ath_softc * tid->sched = false; tid->paused = false; tid->state &= ~AGGR_CLEANUP;