diff options
author | Michael Buesch <mb@bu3sch.de> | 2009-09-06 10:18:58 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-09-09 11:18:54 -0400 |
commit | cde1b55b43b71cabb1a94278a809bca21b9df791 (patch) | |
tree | c5a58a99108f2706ac313aee64a386e589e9231c /drivers/net/wireless/b43/xmit.c | |
parent | b0544eb6019a33e836141156a8fbe74a9f8367b4 (diff) |
b43: Fix sparse warning in hw-tkip code
This fixes a sparse warning in the hardware-TKIP code:
drivers/net/wireless/b43/xmit.c:272:18: warning: incorrect type in assignment (different base types)
drivers/net/wireless/b43/xmit.c:272:18: expected unsigned short [unsigned] [short] <noident>
drivers/net/wireless/b43/xmit.c:272:18: got restricted unsigned short [usertype] <noident>
The code should work correctly with and without this patch applied.
Signed-off-by: Michael Buesch <mb@bu3sch.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/b43/xmit.c')
-rw-r--r-- | drivers/net/wireless/b43/xmit.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/net/wireless/b43/xmit.c b/drivers/net/wireless/b43/xmit.c index e7075d2c7757..14f541248b5c 100644 --- a/drivers/net/wireless/b43/xmit.c +++ b/drivers/net/wireless/b43/xmit.c | |||
@@ -267,11 +267,11 @@ int b43_generate_txhdr(struct b43_wldev *dev, | |||
267 | */ | 267 | */ |
268 | ieee80211_get_tkip_key(info->control.hw_key, skb_frag, | 268 | ieee80211_get_tkip_key(info->control.hw_key, skb_frag, |
269 | IEEE80211_TKIP_P1_KEY, (u8*)phase1key); | 269 | IEEE80211_TKIP_P1_KEY, (u8*)phase1key); |
270 | /* phase1key is in host endian */ | 270 | /* phase1key is in host endian. Copy to little-endian txhdr->iv. */ |
271 | for (i = 0; i < 5; i++) | 271 | for (i = 0; i < 5; i++) { |
272 | phase1key[i] = cpu_to_le16(phase1key[i]); | 272 | txhdr->iv[i * 2 + 0] = phase1key[i]; |
273 | 273 | txhdr->iv[i * 2 + 1] = phase1key[i] >> 8; | |
274 | memcpy(txhdr->iv, phase1key, 10); | 274 | } |
275 | /* iv16 */ | 275 | /* iv16 */ |
276 | memcpy(txhdr->iv + 10, ((u8 *) wlhdr) + wlhdr_len, 3); | 276 | memcpy(txhdr->iv + 10, ((u8 *) wlhdr) + wlhdr_len, 3); |
277 | } else { | 277 | } else { |