diff options
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/xmit.c')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/xmit.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/net/wireless/ath/ath9k/xmit.c b/drivers/net/wireless/ath/ath9k/xmit.c index 2c9da6b2ecb1..ef91f6cc2d79 100644 --- a/drivers/net/wireless/ath/ath9k/xmit.c +++ b/drivers/net/wireless/ath/ath9k/xmit.c | |||
@@ -1773,11 +1773,12 @@ static void ath_tx_send_normal(struct ath_softc *sc, struct ath_txq *txq, | |||
1773 | TX_STAT_INC(txq->axq_qnum, queued); | 1773 | TX_STAT_INC(txq->axq_qnum, queued); |
1774 | } | 1774 | } |
1775 | 1775 | ||
1776 | static void setup_frame_info(struct ieee80211_hw *hw, struct sk_buff *skb, | 1776 | static void setup_frame_info(struct ieee80211_hw *hw, |
1777 | struct ieee80211_sta *sta, | ||
1778 | struct sk_buff *skb, | ||
1777 | int framelen) | 1779 | int framelen) |
1778 | { | 1780 | { |
1779 | struct ieee80211_tx_info *tx_info = IEEE80211_SKB_CB(skb); | 1781 | struct ieee80211_tx_info *tx_info = IEEE80211_SKB_CB(skb); |
1780 | struct ieee80211_sta *sta = tx_info->control.sta; | ||
1781 | struct ieee80211_key_conf *hw_key = tx_info->control.hw_key; | 1782 | struct ieee80211_key_conf *hw_key = tx_info->control.hw_key; |
1782 | struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data; | 1783 | struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data; |
1783 | const struct ieee80211_rate *rate; | 1784 | const struct ieee80211_rate *rate; |
@@ -1935,7 +1936,7 @@ int ath_tx_start(struct ieee80211_hw *hw, struct sk_buff *skb, | |||
1935 | { | 1936 | { |
1936 | struct ieee80211_hdr *hdr = (struct ieee80211_hdr *) skb->data; | 1937 | struct ieee80211_hdr *hdr = (struct ieee80211_hdr *) skb->data; |
1937 | struct ieee80211_tx_info *info = IEEE80211_SKB_CB(skb); | 1938 | struct ieee80211_tx_info *info = IEEE80211_SKB_CB(skb); |
1938 | struct ieee80211_sta *sta = info->control.sta; | 1939 | struct ieee80211_sta *sta = txctl->sta; |
1939 | struct ieee80211_vif *vif = info->control.vif; | 1940 | struct ieee80211_vif *vif = info->control.vif; |
1940 | struct ath_softc *sc = hw->priv; | 1941 | struct ath_softc *sc = hw->priv; |
1941 | struct ath_txq *txq = txctl->txq; | 1942 | struct ath_txq *txq = txctl->txq; |
@@ -1979,7 +1980,7 @@ int ath_tx_start(struct ieee80211_hw *hw, struct sk_buff *skb, | |||
1979 | !ieee80211_is_data(hdr->frame_control)) | 1980 | !ieee80211_is_data(hdr->frame_control)) |
1980 | info->flags |= IEEE80211_TX_CTL_CLEAR_PS_FILT; | 1981 | info->flags |= IEEE80211_TX_CTL_CLEAR_PS_FILT; |
1981 | 1982 | ||
1982 | setup_frame_info(hw, skb, frmlen); | 1983 | setup_frame_info(hw, sta, skb, frmlen); |
1983 | 1984 | ||
1984 | /* | 1985 | /* |
1985 | * At this point, the vif, hw_key and sta pointers in the tx control | 1986 | * At this point, the vif, hw_key and sta pointers in the tx control |