diff options
author | John W. Linville <linville@tuxdriver.com> | 2010-07-20 20:09:11 +0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-07-21 00:49:36 +0400 |
commit | 3f6ff6bacdec217c98a60910c4804d11ce859820 (patch) | |
tree | 2e789996d2e03e06c1ada336ef6b132d1fbe1cca /net/wireless/lib80211_crypt_tkip.c | |
parent | 4f366c5dabcb936dd5754a35188bd699181fe1ce (diff) | |
download | linux-3f6ff6bacdec217c98a60910c4804d11ce859820.tar.xz |
wireless: correct sparse warning in lib80211_crypt_tkip.c
CHECK net/wireless/lib80211_crypt_tkip.c
net/wireless/lib80211_crypt_tkip.c:581:27: warning: cast to restricted __le16
Caused by dereferencing a "u8 *" and passing it to le16_to_cpu...
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/wireless/lib80211_crypt_tkip.c')
-rw-r--r-- | net/wireless/lib80211_crypt_tkip.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/wireless/lib80211_crypt_tkip.c b/net/wireless/lib80211_crypt_tkip.c index 8cbdb32ff316..a7f995613f1f 100644 --- a/net/wireless/lib80211_crypt_tkip.c +++ b/net/wireless/lib80211_crypt_tkip.c @@ -578,7 +578,7 @@ static void michael_mic_hdr(struct sk_buff *skb, u8 * hdr) } if (ieee80211_is_data_qos(hdr11->frame_control)) { - hdr[12] = le16_to_cpu(*ieee80211_get_qos_ctl(hdr11)) + hdr[12] = le16_to_cpu(*((__le16 *)ieee80211_get_qos_ctl(hdr11))) & IEEE80211_QOS_CTL_TID_MASK; } else hdr[12] = 0; /* priority */ |