Skip to content

Commit

Permalink
ath9k: fix a regression in the powersave handling related changes
Browse files Browse the repository at this point in the history
Signed-off-by: Felix Fietkau <[email protected]>

SVN-Revision: 36859
  • Loading branch information
Felix Fietkau committed Jun 5, 2013
1 parent 1d301e0 commit 29464f1
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions package/mac80211/patches/300-pending_work.patch
Original file line number Diff line number Diff line change
Expand Up @@ -4415,18 +4415,19 @@
bool is_40, is_sgi, is_sp;
int phy;

@@ -1107,9 +1122,8 @@ static void ath_tx_fill_desc(struct ath_
@@ -1106,10 +1121,8 @@ static void ath_tx_fill_desc(struct ath_
struct ath_txq *txq, int len)
{
struct ath_hw *ah = sc->sc_ah;
struct ieee80211_tx_info *tx_info = IEEE80211_SKB_CB(bf->bf_mpdu);
- struct ieee80211_tx_info *tx_info = IEEE80211_SKB_CB(bf->bf_mpdu);
- struct ath_buf *bf_first = bf;
+ struct ath_buf *bf_first = NULL;
struct ath_tx_info info;
- bool aggr = !!(bf->bf_state.bf_type & BUF_AGGR);

memset(&info, 0, sizeof(info));
info.is_first = true;
@@ -1117,24 +1131,17 @@ static void ath_tx_fill_desc(struct ath_
@@ -1117,24 +1130,14 @@ static void ath_tx_fill_desc(struct ath_
info.txpower = MAX_RATE_POWER;
info.qcu = txq->axq_qnum;

Expand All @@ -4439,29 +4440,32 @@
- ath_buf_set_rate(sc, bf, &info, len);
-
- if (tx_info->flags & IEEE80211_TX_CTL_CLEAR_PS_FILT)
+ if ((tx_info->flags & IEEE80211_TX_CTL_CLEAR_PS_FILT) ||
+ txq == sc->tx.uapsdq)
info.flags |= ATH9K_TXDESC_CLRDMASK;

- info.flags |= ATH9K_TXDESC_CLRDMASK;
-
if (bf->bf_state.bfs_paprd)
info.flags |= (u32) bf->bf_state.bfs_paprd << ATH9K_TXDESC_PAPRD_S;

-
while (bf) {
struct sk_buff *skb = bf->bf_mpdu;
+ struct ieee80211_tx_info *tx_info = IEEE80211_SKB_CB(skb);
struct ath_frame_info *fi = get_frame_info(skb);
+ bool aggr = !!(bf->bf_state.bf_type & BUF_AGGR);

info.type = get_hw_packet_type(skb);
if (bf->bf_next)
@@ -1142,6 +1149,21 @@ static void ath_tx_fill_desc(struct ath_
@@ -1142,6 +1145,25 @@ static void ath_tx_fill_desc(struct ath_
else
info.link = 0;

+ if (!bf_first) {
+ bf_first = bf;
+
+ info.flags = ATH9K_TXDESC_INTREQ;
+ if ((tx_info->flags & IEEE80211_TX_CTL_CLEAR_PS_FILT) ||
+ txq == sc->tx.uapsdq)
+ info.flags |= ATH9K_TXDESC_CLRDMASK;
+
+ if (tx_info->flags & IEEE80211_TX_CTL_NO_ACK)
+ info.flags |= ATH9K_TXDESC_NOACK;
+ if (tx_info->flags & IEEE80211_TX_CTL_LDPC)
Expand Down Expand Up @@ -4777,7 +4781,7 @@
+ txq = sc->tx.uapsdq;
+ ath_txq_lock(sc, txq);
+ }
+
+ if (txctl->an && ieee80211_is_data_qos(hdr->frame_control)) {
+ tidno = ieee80211_get_qos_ctl(hdr)[0] &
+ IEEE80211_QOS_CTL_TID_MASK;
Expand Down Expand Up @@ -4811,7 +4815,7 @@
+
+ ath_set_rates(vif, sta, bf);
+ ath_tx_send_normal(sc, txq, tid, skb);
+
+out:
ath_txq_unlock(sc, txq);

Expand Down

0 comments on commit 29464f1

Please sign in to comment.