brcmfmac: cleanup netdev transmit callback
authorArend van Spriel <arend@broadcom.com>
Wed, 2 Jan 2013 14:22:46 +0000 (15:22 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 7 Jan 2013 20:16:57 +0000 (15:16 -0500)
commit12b33dacb4bb3780512d3c6a4d064d9ed1172c0e
tree45312582ab5b8a8395531cce16675a4615b60dfe
parent7833b5799fb4dd201d6808c164712ea9d0c3dec0
brcmfmac: cleanup netdev transmit callback

The header of the ethernet packet is processed conditionally, but
the check is wrong as it checks skb length is at least ETH_ALEN. It
should check it is at least sizeof struct ethhdr instead.

Reviewed-by: Pieter-Paul Giesberts <pieterpg@broadcom.com>
Reviewed-by: Hante Meuleman <meuleman@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/brcm80211/brcmfmac/dhd_linux.c