OSDN Git Service

MIPS: BCM47XX: fixup broken MAC addresses in nvram
authorHauke Mehrtens <hauke@hauke-m.de>
Mon, 28 Jul 2014 22:08:01 +0000 (00:08 +0200)
committerRalf Baechle <ralf@linux-mips.org>
Wed, 30 Jul 2014 17:25:15 +0000 (19:25 +0200)
commit103c0bf3ff46486466bc9138d70c25133d516003
tree56f1a2d28257a5a33c4845627e4003301227b41f
parent316cad5c1d4daee998cd1f83ccdb437f6f20d45c
MIPS: BCM47XX: fixup broken MAC addresses in nvram

The address prefix 00:90:4C is used by Broadcom in their initial
configuration. When a mac address with the prefix 00:90:4C is used all
devices from the same series are sharing the same mac address. To
prevent mac address collisions we replace them with a mac address based
on the base address. To generate such addresses we take the main mac
address from et0macaddr and increase it by two for the first wifi
device and by 3 for the second one. This matches the printed mac
address on the device. The main mac address increased by one is used as
wan address by the vendor code.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Cc: zajec5@gmail.com
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/7489/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/bcm47xx/sprom.c