b43: Fix possible unaligned u32 access
authorMatthieu CASTET <castet.matthieu@free.fr>
Thu, 4 Jun 2009 21:18:33 +0000 (23:18 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 10 Jun 2009 17:27:53 +0000 (13:27 -0400)
commitb52a033c2c501a8015df3727a4bd73389ccb1641
tree57275be394a4031015d7978b3cc11dfd87d4ae9b
parent5ee58d7e6ad019675b4090582aec4fa1180d8703
b43: Fix possible unaligned u32 access

Fix possible unaligned u32 access in b43_generate_plcp_hdr().
Unaligned data is read/write with a u32 pointer instead of using the
packed structure. Some versions of gcc ignore the "packed" attribute, if the
structure element is accessed through a local pointer.

Signed-off-by: Matthieu CASTET <castet.matthieu@free.fr>
Signed-off-by: Michael Buesch <mb@bu3sch.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/b43/xmit.c