Skip to content

Commit

Permalink
ssb: pci: Fix flipping of MAC address
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Larry Finger <[email protected]>
Signed-off-by: John W. Linville <[email protected]>
  • Loading branch information
lwfinger authored and linvjw committed Mar 13, 2013
1 parent c3f251a commit a9fac73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/ssb/pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -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];
}
}

Expand Down

0 comments on commit a9fac73

Please sign in to comment.