linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/1] mac80211: Tkip fix sparse endianity complain in tkip code
@ 2008-03-13 18:05 Tomas Winkler
  2008-03-13 21:02 ` Johannes Berg
  0 siblings, 1 reply; 4+ messages in thread
From: Tomas Winkler @ 2008-03-13 18:05 UTC (permalink / raw)
  To: linville, johannes, reinette.chatre; +Cc: linux-wireless, Tomas Winkler

This patch fix wrong cast in tkip code

Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
---
 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.


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-03-14  1:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-13 18:05 [PATCH 1/1] mac80211: Tkip fix sparse endianity complain in tkip code Tomas Winkler
2008-03-13 21:02 ` Johannes Berg
2008-03-13 23:57   ` Tomas Winkler
2008-03-14  1:29     ` John W. Linville

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).