]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - net/ieee80211/ieee80211_crypt_tkip.c
ieee80211: fix TKIP QoS bug
[karo-tx-linux.git] / net / ieee80211 / ieee80211_crypt_tkip.c
index 5a48d8e0aec1a98a73761cfe9626d32c4fd47383..7f11dd935b715daf87a1301874a83c64e692e3d2 100644 (file)
@@ -584,7 +584,7 @@ static void michael_mic_hdr(struct sk_buff *skb, u8 * hdr)
        if (stype & IEEE80211_STYPE_QOS_DATA) {
                const struct ieee80211_hdr_3addrqos *qoshdr =
                        (struct ieee80211_hdr_3addrqos *)skb->data;
-               hdr[12] = qoshdr->qos_ctl & cpu_to_le16(IEEE80211_QCTL_TID);
+               hdr[12] = le16_to_cpu(qoshdr->qos_ctl) & IEEE80211_QCTL_TID;
        } else
                hdr[12] = 0;            /* priority */