1
0
Fork 0

ssb: pci: Fix flipping of MAC address

Since commit e565275 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: Rafał Miłecki <zajec5@gmail.com>
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
hifive-unleashed-5.1
Larry Finger 2013-03-11 15:38:26 -05:00 committed by John W. Linville
parent c3f251a317
commit a9fac7399b
1 changed files with 1 additions and 1 deletions

View File

@ -234,8 +234,8 @@ static void sprom_get_mac(char *mac, const u16 *in)
{
int i;
for (i = 0; i < 3; i++) {
*mac++ = in[i];
*mac++ = in[i] >> 8;
*mac++ = in[i];
}
}