diff options
author | Larry Finger <Larry.Finger@lwfinger.net> | 2013-03-11 16:38:26 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2013-03-13 14:23:02 -0400 |
commit | a9fac7399b45db668faeca6c33873d249111cf8b (patch) | |
tree | 93ade422903c19d013bb3bfeb0ff9cadb5fe8dee /drivers/ssb | |
parent | c3f251a317e032c9ceaf539b02a962986f70b523 (diff) |
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>
Diffstat (limited to 'drivers/ssb')
-rw-r--r-- | drivers/ssb/pci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ssb/pci.c b/drivers/ssb/pci.c index 6d6e7b926aa5..63ff69f9d3eb 100644 --- a/drivers/ssb/pci.c +++ b/drivers/ssb/pci.c | |||
@@ -234,8 +234,8 @@ static void sprom_get_mac(char *mac, const u16 *in) | |||
234 | { | 234 | { |
235 | int i; | 235 | int i; |
236 | for (i = 0; i < 3; i++) { | 236 | for (i = 0; i < 3; i++) { |
237 | *mac++ = in[i]; | ||
238 | *mac++ = in[i] >> 8; | 237 | *mac++ = in[i] >> 8; |
238 | *mac++ = in[i]; | ||
239 | } | 239 | } |
240 | } | 240 | } |
241 | 241 | ||