diff options
author | Harvey Harrison <harvey.harrison@gmail.com> | 2008-07-15 21:43:59 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-08-22 16:29:51 -0400 |
commit | 7294ec955cb0c3eeefca2f4dd271c8068ab4edc5 (patch) | |
tree | 9a02b5dae2bccf45e44c43fac70cab095722fff8 /drivers/net/wireless/iwlwifi/iwl-tx.c | |
parent | ba5b6efe5d945f7a4c5b656051cc16698afdda24 (diff) |
iwlwifi: use le16 frame control directly, use QOS symbolic constant mask
Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
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 & |