diff options
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/xmit.c')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/xmit.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath9k/xmit.c b/drivers/net/wireless/ath/ath9k/xmit.c index 16d83d0c0959..bce313e85cff 100644 --- a/drivers/net/wireless/ath/ath9k/xmit.c +++ b/drivers/net/wireless/ath/ath9k/xmit.c | |||
@@ -1740,7 +1740,10 @@ int ath_tx_start(struct ieee80211_hw *hw, struct sk_buff *skb, | |||
1740 | int frmlen = skb->len + FCS_LEN; | 1740 | int frmlen = skb->len + FCS_LEN; |
1741 | int q; | 1741 | int q; |
1742 | 1742 | ||
1743 | txctl->an = (struct ath_node *)sta->drv_priv; | 1743 | /* NOTE: sta can be NULL according to net/mac80211.h */ |
1744 | if (sta) | ||
1745 | txctl->an = (struct ath_node *)sta->drv_priv; | ||
1746 | |||
1744 | if (info->control.hw_key) | 1747 | if (info->control.hw_key) |
1745 | frmlen += info->control.hw_key->icv_len; | 1748 | frmlen += info->control.hw_key->icv_len; |
1746 | 1749 | ||