linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* brcmfmac: error creating p2p
@ 2015-06-02  5:39 Rafał Miłecki
  2015-06-03 11:46 ` Arend van Spriel
  0 siblings, 1 reply; 2+ messages in thread
From: Rafał Miłecki @ 2015-06-02  5:39 UTC (permalink / raw)
  To: brcm80211 development; +Cc: linux-wireless@vger.kernel.org

Hi,

I think brcmfmac may have some problems with mixing various
interfaces, so just for some test I decided to try p2p interface. I'm
using BCM43602 and it seems to support p2p:
# iw phy phy0 info | tail
        valid interface combinations:
                 * #{ IBSS, managed } <= 1, #{ AP } <= 4, #{
P2P-client, P2P-GO } <= 1, #{ P2P-device } <= 1,
                   total <= 3, #channels <= 1

But I can't create p2p interface:
# iw phy phy0 interface add p2p0 type __p2pdev
brcmfmac: brcmf_add_if: ERROR: netdev:wlan0 already exists
brcmfmac: brcmf_add_if: ignore IF event
brcmfmac: brcmf_p2p_set_firmware: failed to update device address ret -52
brcmfmac: brcmf_p2p_create_p2pdev: set p2p_disc error
command failed: Invalid exchange (-52)

-- 
Rafał

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: brcmfmac: error creating p2p
  2015-06-02  5:39 brcmfmac: error creating p2p Rafał Miłecki
@ 2015-06-03 11:46 ` Arend van Spriel
  0 siblings, 0 replies; 2+ messages in thread
From: Arend van Spriel @ 2015-06-03 11:46 UTC (permalink / raw)
  To: Rafał Miłecki
  Cc: brcm80211 development, linux-wireless@vger.kernel.org

On 06/02/15 07:39, Rafał Miłecki wrote:
> Hi,
>
> I think brcmfmac may have some problems with mixing various
> interfaces, so just for some test I decided to try p2p interface. I'm
> using BCM43602 and it seems to support p2p:
> # iw phy phy0 info | tail
>          valid interface combinations:
>                   * #{ IBSS, managed }<= 1, #{ AP }<= 4, #{
> P2P-client, P2P-GO }<= 1, #{ P2P-device }<= 1,
>                     total<= 3, #channels<= 1
>
> But I can't create p2p interface:
> # iw phy phy0 interface add p2p0 type __p2pdev
> brcmfmac: brcmf_add_if: ERROR: netdev:wlan0 already exists
> brcmfmac: brcmf_add_if: ignore IF event
> brcmfmac: brcmf_p2p_set_firmware: failed to update device address ret -52
> brcmfmac: brcmf_p2p_create_p2pdev: set p2p_disc error
> command failed: Invalid exchange (-52)

This looked familiar so digging the log I think you need the following 
commit:

commit f48556e1b6a60f1b394a6c4b0a7b8cacba3eb107
Author: Arend van Spriel <arend@broadcom.com>
Date:   Tue Sep 30 10:23:16 2014 +0200

     brcmfmac: assure P2P discovery is disabled when setting P2P_DEVICE 
mac addre

     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>

Not sure what kernel and/or brcmfmac you are seeing this so hopefully 
this commit will help.

Regards,
Arend


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-06-03 11:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-02  5:39 brcmfmac: error creating p2p Rafał Miłecki
2015-06-03 11:46 ` Arend van Spriel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).