aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath9k/xmit.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/xmit.c')
-rw-r--r--drivers/net/wireless/ath/ath9k/xmit.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/drivers/net/wireless/ath/ath9k/xmit.c b/drivers/net/wireless/ath/ath9k/xmit.c
index f9e6eb2a4e0b..d8dfb3ec818a 100644
--- a/drivers/net/wireless/ath/ath9k/xmit.c
+++ b/drivers/net/wireless/ath/ath9k/xmit.c
@@ -135,6 +135,9 @@ static struct ath_frame_info *get_frame_info(struct sk_buff *skb)
135 135
136static void ath_send_bar(struct ath_atx_tid *tid, u16 seqno) 136static void ath_send_bar(struct ath_atx_tid *tid, u16 seqno)
137{ 137{
138 if (!tid->an->sta)
139 return;
140
138 ieee80211_send_bar(tid->an->vif, tid->an->sta->addr, tid->tidno, 141 ieee80211_send_bar(tid->an->vif, tid->an->sta->addr, tid->tidno,
139 seqno << IEEE80211_SEQ_SEQ_SHIFT); 142 seqno << IEEE80211_SEQ_SEQ_SHIFT);
140} 143}
@@ -1382,7 +1385,7 @@ static bool ath_tx_sched_aggr(struct ath_softc *sc, struct ath_txq *txq,
1382 if (list_empty(&bf_q)) 1385 if (list_empty(&bf_q))
1383 return false; 1386 return false;
1384 1387
1385 if (tid->ac->clear_ps_filter) { 1388 if (tid->ac->clear_ps_filter || tid->an->no_ps_filter) {
1386 tid->ac->clear_ps_filter = false; 1389 tid->ac->clear_ps_filter = false;
1387 tx_info->flags |= IEEE80211_TX_CTL_CLEAR_PS_FILT; 1390 tx_info->flags |= IEEE80211_TX_CTL_CLEAR_PS_FILT;
1388 } 1391 }
@@ -1572,7 +1575,7 @@ void ath9k_release_buffered_frames(struct ieee80211_hw *hw,
1572 sent++; 1575 sent++;
1573 TX_STAT_INC(txq->axq_qnum, a_queued_hw); 1576 TX_STAT_INC(txq->axq_qnum, a_queued_hw);
1574 1577
1575 if (!ath_tid_has_buffered(tid)) 1578 if (an->sta && !ath_tid_has_buffered(tid))
1576 ieee80211_sta_set_buffered(an->sta, i, false); 1579 ieee80211_sta_set_buffered(an->sta, i, false);
1577 } 1580 }
1578 ath_txq_unlock_complete(sc, tid->ac->txq); 1581 ath_txq_unlock_complete(sc, tid->ac->txq);
@@ -2104,6 +2107,7 @@ static int ath_tx_prepare(struct ieee80211_hw *hw, struct sk_buff *skb,
2104 struct ieee80211_tx_info *info = IEEE80211_SKB_CB(skb); 2107 struct ieee80211_tx_info *info = IEEE80211_SKB_CB(skb);
2105 struct ieee80211_sta *sta = txctl->sta; 2108 struct ieee80211_sta *sta = txctl->sta;
2106 struct ieee80211_vif *vif = info->control.vif; 2109 struct ieee80211_vif *vif = info->control.vif;
2110 struct ath_vif *avp;
2107 struct ath_softc *sc = hw->priv; 2111 struct ath_softc *sc = hw->priv;
2108 int frmlen = skb->len + FCS_LEN; 2112 int frmlen = skb->len + FCS_LEN;
2109 int padpos, padsize; 2113 int padpos, padsize;
@@ -2111,6 +2115,10 @@ static int ath_tx_prepare(struct ieee80211_hw *hw, struct sk_buff *skb,
2111 /* NOTE: sta can be NULL according to net/mac80211.h */ 2115 /* NOTE: sta can be NULL according to net/mac80211.h */
2112 if (sta) 2116 if (sta)
2113 txctl->an = (struct ath_node *)sta->drv_priv; 2117 txctl->an = (struct ath_node *)sta->drv_priv;
2118 else if (vif && ieee80211_is_data(hdr->frame_control)) {
2119 avp = (void *)vif->drv_priv;
2120 txctl->an = &avp->mcast_node;
2121 }
2114 2122
2115 if (info->control.hw_key) 2123 if (info->control.hw_key)
2116 frmlen += info->control.hw_key->icv_len; 2124 frmlen += info->control.hw_key->icv_len;