]> 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)
commite229a893c6d5ea5580f98c21e4de6336061534df
tree2b8b854628a6f4d0bee4cf5ae87417be773f5b49
parentbe85258fea32bf3210fcae77b85300b6272573ad
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