]> git.baikalelectronics.ru Git - kernel.git/commit
rtl2800usb: Fix incorrect storage of MAC address on big-endian platforms
authorLarry Finger <Larry.Finger@lwfinger.net>
Wed, 14 Sep 2011 21:50:23 +0000 (16:50 -0500)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 16 Sep 2011 19:32:10 +0000 (15:32 -0400)
commit8acd65d6fb1cf618c0d1dc8e760d6f01fd331d5c
tree2b8b854628a6f4d0bee4cf5ae87417be773f5b49
parent80904735092eacd9a2eabcf29aa1abe204230b29
rtl2800usb: Fix incorrect storage of MAC address on big-endian platforms

The eeprom data is stored in little-endian order in the rt2x00 library.
As it was converted to cpu order in the read routines, the data need to
be converted to LE on a big-endian platform.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Cc: Stable <stable@kernel.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rt2x00/rt2800lib.c