/* P2P needs mac addresses for P2P device and interface. If no device address it specified, these are derived from a random ethernet address.  */
static void brcmf_p2p_generate_bss_mac(struct brcmf_p2p_info *p2p, u8 *dev_addr)
/* P2P needs mac addresses for P2P device and interface. If no device address it specified, these are derived from a random ethernet address.  */
static void brcmf_p2p_generate_bss_mac(struct brcmf_p2p_info *p2p, u8 *dev_addr)
{
	bool random_addr = false;
	if (!dev_addr || is_zero_ether_addr(dev_addr))
		random_addr = true;
	if (random_addr)
		eth_random_addr(p2p->dev_addr);
	else
		memcpy(p2p->dev_addr, dev_addr, ETH_ALEN);
	memcpy(p2p->int_addr, p2p->dev_addr, ETH_ALEN);
	p2p->int_addr[0] |= 0x02;
	p2p->int_addr[4] ^= 0x80;
}