diff options
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-tx.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-tx.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-tx.c b/drivers/net/wireless/iwlwifi/iwl-tx.c index addf899df174..6cba5e9c54ec 100644 --- a/drivers/net/wireless/iwlwifi/iwl-tx.c +++ b/drivers/net/wireless/iwlwifi/iwl-tx.c | |||
@@ -824,7 +824,7 @@ int iwl_tx_skb(struct iwl_priv *priv, struct sk_buff *skb) | |||
824 | 824 | ||
825 | spin_unlock_irqrestore(&priv->lock, flags); | 825 | spin_unlock_irqrestore(&priv->lock, flags); |
826 | 826 | ||
827 | hdr_len = ieee80211_get_hdrlen(le16_to_cpu(fc)); | 827 | hdr_len = ieee80211_hdrlen(fc); |
828 | 828 | ||
829 | /* Find (or create) index into station table for destination station */ | 829 | /* Find (or create) index into station table for destination station */ |
830 | sta_id = iwl_get_sta_id(priv, hdr); | 830 | sta_id = iwl_get_sta_id(priv, hdr); |
@@ -842,7 +842,7 @@ int iwl_tx_skb(struct iwl_priv *priv, struct sk_buff *skb) | |||
842 | txq_id = swq_id; | 842 | txq_id = swq_id; |
843 | if (ieee80211_is_data_qos(fc)) { | 843 | if (ieee80211_is_data_qos(fc)) { |
844 | qc = ieee80211_get_qos_ctl(hdr); | 844 | qc = ieee80211_get_qos_ctl(hdr); |
845 | tid = qc[0] & 0xf; | 845 | tid = qc[0] & IEEE80211_QOS_CTL_TID_MASK; |
846 | seq_number = priv->stations[sta_id].tid[tid].seq_number; | 846 | seq_number = priv->stations[sta_id].tid[tid].seq_number; |
847 | seq_number &= IEEE80211_SCTL_SEQ; | 847 | seq_number &= IEEE80211_SCTL_SEQ; |
848 | hdr->seq_ctrl = hdr->seq_ctrl & | 848 | hdr->seq_ctrl = hdr->seq_ctrl & |