staging: brcm80211: Fix handling of firmware and inits on big-endian platforms
authorHenry Ptasinski <henryp@broadcom.com>
Mon, 15 Aug 2011 13:34:23 +0000 (15:34 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 23 Aug 2011 20:08:06 +0000 (13:08 -0700)
commitd745a845045f31a8250cd856b79e84c8374a3adb
treeb4936e45a075a2cd5474a4161539d0e17ddbb3db
parentba1fff7f705ed15e9d5a5922614aa4a259e9f8bc
staging: brcm80211: Fix handling of firmware and inits on big-endian platforms

The firmware files are encoded as little-endian.  Do the appropriate swapping
for big-endian platforms.

Tested on Mac G5 PPC and BCM63281.

Signed-off-by: Henry Ptasinski <henryp@broadcom.com>
Reviewed-by: Arend van Spriel <arend@broadcom.com>
Reviewed-by: Roland Vossen <rvossen@broadcom.com>
Tested-by: Jonas Gorski <jonas.gorski@gmail.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/brcm80211/brcmsmac/mac80211_if.c
drivers/staging/brcm80211/brcmsmac/main.c