projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4f366c5
)
wireless: correct sparse warning in lib80211_crypt_tkip.c
author
John W. Linville
<
[email protected]
>
Tue, 20 Jul 2010 16:09:11 +0000
(12:09 -0400)
committer
John W. Linville
<
[email protected]
>
Tue, 20 Jul 2010 20:49:36 +0000
(16:49 -0400)
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 <
[email protected]
>
net/wireless/lib80211_crypt_tkip.c
patch
|
blob
|
history
diff --git
a/net/wireless/lib80211_crypt_tkip.c
b/net/wireless/lib80211_crypt_tkip.c
index 8cbdb32ff31657fd312969ff319e1e79246e2238..a7f995613f1f9da00c2dc008babd17135bcb9530 100644
(file)
--- 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 */