Author: hauke Date: 2014-07-05 21:36:49 +0200 (Sat, 05 Jul 2014) New Revision: 41515
Modified: trunk/target/linux/brcm47xx/patches-3.10/180-generate-mac-address.patch trunk/target/linux/brcm47xx/patches-3.14/180-generate-mac-address.patch Log: 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 <[email protected]> Modified: trunk/target/linux/brcm47xx/patches-3.10/180-generate-mac-address.patch =================================================================== --- trunk/target/linux/brcm47xx/patches-3.10/180-generate-mac-address.patch 2014-07-05 19:23:40 UTC (rev 41514) +++ trunk/target/linux/brcm47xx/patches-3.10/180-generate-mac-address.patch 2014-07-05 19:36:49 UTC (rev 41515) @@ -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) Modified: trunk/target/linux/brcm47xx/patches-3.14/180-generate-mac-address.patch =================================================================== --- trunk/target/linux/brcm47xx/patches-3.14/180-generate-mac-address.patch 2014-07-05 19:23:40 UTC (rev 41514) +++ trunk/target/linux/brcm47xx/patches-3.14/180-generate-mac-address.patch 2014-07-05 19:36:49 UTC (rev 41515) @@ -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) _______________________________________________ openwrt-commits mailing list [email protected] https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits
