diff options
author | Arend van Spriel <arend@broadcom.com> | 2014-09-30 04:23:16 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2014-09-30 13:17:47 -0400 |
commit | f48556e1b6a60f1b394a6c4b0a7b8cacba3eb107 (patch) | |
tree | 76011bfa052b4210ed990d7ce6790f59499e877b /drivers/net/wireless/brcm80211/brcmfmac/p2p.c | |
parent | 3ba066109974dff307f143ffdeddc7af83b2bb8e (diff) |
brcmfmac: assure P2P discovery is disabled when setting P2P_DEVICE mac address
In order to provision the P2P_DEVICE mac address using p2p_da_override iovar
the discovery interface must be disabled. On some targets setting the mac
address failed so disable the discovery interface to be certain.
Reviewed-by: Hante Meuleman <meuleman@broadcom.com>
Reviewed-by: Franky (Zhenhui) Lin <frankyl@broadcom.com>
Reviewed-by: Daniel (Deognyoun) Kim <dekim@broadcom.com>
Reviewed-by: Pieter-Paul Giesberts <pieterpg@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/brcm80211/brcmfmac/p2p.c')
-rw-r--r-- | drivers/net/wireless/brcm80211/brcmfmac/p2p.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/net/wireless/brcm80211/brcmfmac/p2p.c b/drivers/net/wireless/brcm80211/brcmfmac/p2p.c index 1d78a91db594..d54c58a32faa 100644 --- a/drivers/net/wireless/brcm80211/brcmfmac/p2p.c +++ b/drivers/net/wireless/brcm80211/brcmfmac/p2p.c | |||
@@ -440,8 +440,11 @@ static int brcmf_p2p_set_firmware(struct brcmf_if *ifp, u8 *p2p_mac) | |||
440 | 440 | ||
441 | /* In case of COB type, firmware has default mac address | 441 | /* In case of COB type, firmware has default mac address |
442 | * After Initializing firmware, we have to set current mac address to | 442 | * After Initializing firmware, we have to set current mac address to |
443 | * firmware for P2P device address | 443 | * firmware for P2P device address. This must be done with discovery |
444 | * disabled. | ||
444 | */ | 445 | */ |
446 | brcmf_fil_iovar_int_set(ifp, "p2p_disc", 0); | ||
447 | |||
445 | ret = brcmf_fil_iovar_data_set(ifp, "p2p_da_override", p2p_mac, | 448 | ret = brcmf_fil_iovar_data_set(ifp, "p2p_da_override", p2p_mac, |
446 | ETH_ALEN); | 449 | ETH_ALEN); |
447 | if (ret) | 450 | if (ret) |