Search Linux Wireless

[PATCH 1/1] mac80211: Tkip fix sparse endianity complain in tkip code

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This patch fix wrong cast in tkip code

Signed-off-by: Tomas Winkler <tomas.winkler@xxxxxxxxx>
---
 net/mac80211/tkip.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/net/mac80211/tkip.c b/net/mac80211/tkip.c
index f61f1dd..0ce2a84 100644
--- a/net/mac80211/tkip.c
+++ b/net/mac80211/tkip.c
@@ -118,7 +118,7 @@ static u8 *set_ext_iv(u8 *pos, u16 iv16)
 
 static u8 *set_tkip_iv(u8 *pos, u32 iv32)
 {
-	*((u32 *)pos) = cpu_to_le32(iv32);
+	*((__le32 *)pos) = cpu_to_le32(iv32);
 	return pos + 4;
 }
 
-- 
1.5.4.1

---------------------------------------------------------------------
Intel Israel (74) Limited

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux