Commit a9fac739 authored by Larry Finger's avatar Larry Finger Committed by John W. Linville

ssb: pci: Fix flipping of MAC address

Since commit e5652756 entitled "ssb: pci: Standardize a function to get mac
address", the SPROM readout of the MAC has had the values flipped so that
00:11:22:33:44:55 became 11:00:33:22:55:44. The fix has been tested on both
little- and big-endian architectures.
Reported-by: default avatarRafał Miłecki <zajec5@gmail.com>
Signed-off-by: default avatarLarry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent c3f251a3
...@@ -234,8 +234,8 @@ static void sprom_get_mac(char *mac, const u16 *in) ...@@ -234,8 +234,8 @@ static void sprom_get_mac(char *mac, const u16 *in)
{ {
int i; int i;
for (i = 0; i < 3; i++) { for (i = 0; i < 3; i++) {
*mac++ = in[i];
*mac++ = in[i] >> 8; *mac++ = in[i] >> 8;
*mac++ = in[i];
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment