diff options
author | Hauke Mehrtens <hauke@hauke-m.de> | 2014-07-05 19:36:49 +0000 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2014-07-05 19:36:49 +0000 |
commit | 77dee19ab42af55252a2e84aff406f8a754e744d (patch) | |
tree | 0ec6d6be787063a4853eb90665e67f7f27ee3cf2 /target/linux/brcm47xx | |
parent | 817c56f77c2229f7a91307b04a4af3e79dc16ebb (diff) | |
download | mtk-20170518-77dee19ab42af55252a2e84aff406f8a754e744d.zip mtk-20170518-77dee19ab42af55252a2e84aff406f8a754e744d.tar.gz mtk-20170518-77dee19ab42af55252a2e84aff406f8a754e744d.tar.bz2 |
brcm47xx: increase fallback mac addresses by one
Now the mac address is increased by two for the first fallback mac
address. It could be that the address increased should be used for the
wan port.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
SVN-Revision: 41515
Diffstat (limited to 'target/linux/brcm47xx')
-rw-r--r-- | target/linux/brcm47xx/patches-3.10/180-generate-mac-address.patch | 4 | ||||
-rw-r--r-- | target/linux/brcm47xx/patches-3.14/180-generate-mac-address.patch | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/target/linux/brcm47xx/patches-3.10/180-generate-mac-address.patch b/target/linux/brcm47xx/patches-3.10/180-generate-mac-address.patch index 58112ce..9ba9bb2 100644 --- a/target/linux/brcm47xx/patches-3.10/180-generate-mac-address.patch +++ b/target/linux/brcm47xx/patches-3.10/180-generate-mac-address.patch @@ -14,7 +14,7 @@ +static bool bcm47xx_is_valid_mac(u8 *mac) +{ -+ return !(mac[0] == 0x00 && mac[1] == 0x90 && mac[2] == 0x4c); ++ return mac && !(mac[0] == 0x00 && mac[1] == 0x90 && mac[2] == 0x4c); +} + +static int bcm47xx_increase_mac_addr(u8 *mac, u8 num) @@ -37,7 +37,7 @@ + return 0; +} + -+static int mac_addr_used = 1; ++static int mac_addr_used = 2; + static void bcm47xx_fill_sprom_ethernet(struct ssb_sprom *sprom, const char *prefix, bool fallback) diff --git a/target/linux/brcm47xx/patches-3.14/180-generate-mac-address.patch b/target/linux/brcm47xx/patches-3.14/180-generate-mac-address.patch index 58112ce..9ba9bb2 100644 --- a/target/linux/brcm47xx/patches-3.14/180-generate-mac-address.patch +++ b/target/linux/brcm47xx/patches-3.14/180-generate-mac-address.patch @@ -14,7 +14,7 @@ +static bool bcm47xx_is_valid_mac(u8 *mac) +{ -+ return !(mac[0] == 0x00 && mac[1] == 0x90 && mac[2] == 0x4c); ++ return mac && !(mac[0] == 0x00 && mac[1] == 0x90 && mac[2] == 0x4c); +} + +static int bcm47xx_increase_mac_addr(u8 *mac, u8 num) @@ -37,7 +37,7 @@ + return 0; +} + -+static int mac_addr_used = 1; ++static int mac_addr_used = 2; + static void bcm47xx_fill_sprom_ethernet(struct ssb_sprom *sprom, const char *prefix, bool fallback) |