dect
/
linux-2.6
Archived
13
0
Fork 0
This repository has been archived on 2022-02-17. You can view files and clone it, but cannot push or open issues or pull requests.
linux-2.6/drivers/net/wireless/zd1211rw
Shaddy Baddah cde6901b7b zd1211rw: use unaligned safe memcmp() in-place of compare_ether_addr()
Under my 2.6.28-rc6 sparc64, when associating to an AP through my
zd1211rw device, I was seeing kernel log messages like (not exact output):

  Kernel unaligned access at TPC[10129b68] zd_mac_rx+0x144/0x32c [zd1211rw]

For the zd1211rw module, on RX, the 80211 packet will be located after
the PLCP header in the skb data buffer. The PLCP header being 5 bytes
long, the 80211 header will start unaligned from an aligned skb
buffer.

As per Documentation/unaligned-memory-access.txt, we must replace the
not unaligned() safe compare_ether_addr() with memcmp() to protect
architectures that require alignment.

Signed-off-by: Shaddy Baddah <shaddy_baddah@hotmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
2008-12-05 09:18:35 -05:00
..
Kconfig zd1211rw: port to mac80211 2008-01-28 15:04:47 -08:00
Makefile zd1211rw: make use of new regulatory_hint() 2008-09-15 16:48:19 -04:00
zd_chip.c zd1211rw: make use of new regulatory_hint() 2008-09-15 16:48:19 -04:00
zd_chip.h zd1211rw: support for mesh interface and beaconing 2008-03-06 17:19:47 -05:00
zd_def.h zd1211rw: add copyright notices 2008-01-28 15:04:49 -08:00
zd_mac.c zd1211rw: use unaligned safe memcmp() in-place of compare_ether_addr() 2008-12-05 09:18:35 -05:00
zd_mac.h zd1211rw: make use of new regulatory_hint() 2008-09-15 16:48:19 -04:00
zd_rf.c zd1211rw: make use of new regulatory_hint() 2008-09-15 16:48:19 -04:00
zd_rf.h zd1211rw: add copyright notices 2008-01-28 15:04:49 -08:00
zd_rf_al2230.c zd1211rw: add copyright notices 2008-01-28 15:04:49 -08:00
zd_rf_al7230b.c zd1211rw: add copyright notices 2008-01-28 15:04:49 -08:00
zd_rf_rf2959.c zd1211rw: add copyright notices 2008-01-28 15:04:49 -08:00
zd_rf_uw2453.c zd1211rw: add copyright notices 2008-01-28 15:04:49 -08:00
zd_usb.c zd1211rw: Add 2 device IDs 2008-11-06 16:37:10 -05:00
zd_usb.h zd1211rw: add copyright notices 2008-01-28 15:04:49 -08:00