Lines Matching defs:mac
153 pr_warn("Can not parse mac address: %s\n", buf);
483 static bool bcm47xx_is_valid_mac(u8 *mac)
485 return mac && !(mac[0] == 0x00 && mac[1] == 0x90 && mac[2] == 0x4c);
488 static int bcm47xx_increase_mac_addr(u8 *mac, u8 num)
490 u8 *oui = mac + ETH_ALEN/2 - 1;
491 u8 *p = mac + ETH_ALEN - 1;
502 pr_err("unable to fetch mac address\n");
535 * configuration. When a mac address with the prefix 00:90:4C is used
536 * all devices from the same series are sharing the same mac address.
537 * To prevent mac address collisions we replace them with a mac address
541 u8 mac[6];
543 nvram_read_macaddr(NULL, "et0macaddr", mac, false);
544 if (bcm47xx_is_valid_mac(mac)) {
545 int err = bcm47xx_increase_mac_addr(mac, mac_addr_used);
548 ether_addr_copy(sprom->il0mac, mac);