brcm80211: smac: avoid sprom endianess conversions for crc8 check
authorArend van Spriel <arend@broadcom.com>
Tue, 18 Oct 2011 12:03:06 +0000 (14:03 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 8 Nov 2011 20:54:07 +0000 (15:54 -0500)
commit888153b3db3fb10a048768c0c262951e2bc19719
tree8a026a6ff5b7970fc8c4977fb455de4094f9ded3
parent32cb68bf57b726f4b9161cdc110ffe45134aab69
brcm80211: smac: avoid sprom endianess conversions for crc8 check

The data from the sprom consists of u16 values stored in little
endian notation over which a crc8 was determined. To validate this
the buffer needed to be converted for big-endian systems. Reading
the sprom data is now done per byte so conversion is only done
after a successful crc8 check.

Reviewed-by: Alwin Beukers <alwin@broadcom.com>
Reviewed-by: Roland Vossen <rvossen@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/brcm80211/brcmsmac/srom.c