]> err.no Git - linux-2.6/commit
airo: bug in airo_interrupt() handling on incoming 802.11
authorAl Viro <viro@zeniv.linux.org.uk>
Thu, 20 Dec 2007 03:38:33 +0000 (22:38 -0500)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Jan 2008 23:08:50 +0000 (15:08 -0800)
commit0300b3321d9ed73a0c3f575f2df250c577852356
treef08a833e60d4276fabbd79a20361acec740fa725
parent851b3e5e3de0feea7bfee634f99a940648de58c8
airo: bug in airo_interrupt() handling on incoming 802.11

On big-endian we end up with swapped first two bytes in packet,
due to earlier conversion to host-endian and forgotten conversion
back.

The code we calculated that host-endian for had been duplicated
several time - it finds the 802.11 MAC header length by the first
two bytes of packet; taken into a new helper (header_len(__le16 ctl)).

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/airo.c