Changeset 41515


Ignore:
Timestamp:
2014-07-05T21:36:49+02:00 (4 years ago)
Author:
hauke
Message:

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@…>

Location:
trunk/target/linux/brcm47xx
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/brcm47xx/patches-3.10/180-generate-mac-address.patch

    r41513 r41515  
    1515+static bool bcm47xx_is_valid_mac(u8 *mac) 
    1616+{ 
    17 +       return !(mac[0] == 0x00 && mac[1] == 0x90 && mac[2] == 0x4c); 
     17+       return mac && !(mac[0] == 0x00 && mac[1] == 0x90 && mac[2] == 0x4c); 
    1818+} 
    1919+ 
     
    3838+} 
    3939+ 
    40 +static int mac_addr_used = 1; 
     40+static int mac_addr_used = 2; 
    4141+ 
    4242 static void bcm47xx_fill_sprom_ethernet(struct ssb_sprom *sprom, 
  • trunk/target/linux/brcm47xx/patches-3.14/180-generate-mac-address.patch

    r41513 r41515  
    1515+static bool bcm47xx_is_valid_mac(u8 *mac) 
    1616+{ 
    17 +       return !(mac[0] == 0x00 && mac[1] == 0x90 && mac[2] == 0x4c); 
     17+       return mac && !(mac[0] == 0x00 && mac[1] == 0x90 && mac[2] == 0x4c); 
    1818+} 
    1919+ 
     
    3838+} 
    3939+ 
    40 +static int mac_addr_used = 1; 
     40+static int mac_addr_used = 2; 
    4141+ 
    4242 static void bcm47xx_fill_sprom_ethernet(struct ssb_sprom *sprom, 
Note: See TracChangeset for help on using the changeset viewer.