/* @ifp: ifp to use for iovars (primary). @p2p_mac: mac address to configure for p2p_da_override  */
static int brcmf_p2p_set_firmware(struct brcmf_if *ifp, u8 *p2p_mac)
/* @ifp: ifp to use for iovars (primary). @p2p_mac: mac address to configure for p2p_da_override  */
static int brcmf_p2p_set_firmware(struct brcmf_if *ifp, u8 *p2p_mac)
{
	s32 ret = 0;
	brcmf_fil_cmd_int_set(ifp, BRCMF_C_DOWN, 1);
	brcmf_fil_iovar_int_set(ifp, "apsta", 1);
	brcmf_fil_cmd_int_set(ifp, BRCMF_C_UP, 1);
	brcmf_fil_iovar_int_set(ifp, "p2p_disc", 0);
	ret = brcmf_fil_iovar_data_set(ifp, "p2p_da_override", p2p_mac,
				       ETH_ALEN);
	if (ret)
		brcmf_err("failed to update device address ret %d\n", ret);
	return ret;
}