mwifiex: fix wakeup on magic packet
authorAndreas Fenkart <afenkart@gmail.com>
Fri, 17 Jan 2014 14:26:20 +0000 (15:26 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 23 Jan 2014 19:02:45 +0000 (14:02 -0500)
commit09e65f5b2b9cf0d1fd0c2f2c40f0c48f05319cf6
tree1caa98620c745dda12faf3c320882d4dfea03f9a
parentcfa9c3fba738031ae107039ed7da0819f2c02502
mwifiex: fix wakeup on magic packet

 8 bytes preamble
14 bytes src/dst/eth_type
 6 bytes 0xff:0xff..

http://en.wikipedia.org/wiki/Wake-on-LAN#Magic_packet
http://en.wikipedia.org/wiki/EtherType

This will fail if we VLAN or the magic packet is encapsulated
as a UDP packet...

Signed-off-by: Andreas Fenkart <afenkart@gmail.com>
Acked-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/mwifiex/cfg80211.c