From: Hans de Goede <hdegoede@redhat.com>
To: Arend Van Spriel <arend.vanspriel@broadcom.com>,
Franky Lin <franky.lin@broadcom.com>,
Hante Meuleman <hante.meuleman@broadcom.com>,
Kalle Valo <kvalo@codeaurora.org>
Cc: Takashi Iwai <tiwai@suse.de>,
linux-wireless@vger.kernel.org,
brcm80211-dev-list.pdl@broadcom.com
Subject: Re: [PATCH v2 2/4] brcmfmac: p2p and normal ap access are not always possible at the same time
Date: Wed, 8 Mar 2017 09:24:05 +0100 [thread overview]
Message-ID: <738d049d-4e90-8a5d-e5c0-d037085a064c@redhat.com> (raw)
In-Reply-To: <33689f32-1bf8-98f8-df65-278de097e435@broadcom.com>
Hi,
On 07-03-17 11:03, Arend Van Spriel wrote:
>
>
> On 27-2-2017 22:45, Hans de Goede wrote:
>> The firmware responding with -EBUSY when trying to add an extra virtual-if
>> is a normal thing, do not print an error for this.
>
> This may be something we need to look into. It seems to me the interface
> combinations needs to be fixed so we do not try to provision firmware.
> Can you explain the scenario here?
I'm not doing anything special just connecting to my isp provided accesspoint
using NetworkManager.
Regards,
Hans
>
> Regards,
> Arend
>
>> Signed-off-by: Hans de Goede <hdegoede@redhat.com>
>> ---
>> .../net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c | 14 ++++++++++----
>> drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c | 5 ++++-
>> 2 files changed, 14 insertions(+), 5 deletions(-)
>>
>> diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c
>> index 7ffc4ab..c54e8b4 100644
>> --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c
>> +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c
>> @@ -688,11 +688,17 @@ static struct wireless_dev *brcmf_cfg80211_add_iface(struct wiphy *wiphy,
>> return ERR_PTR(-EINVAL);
>> }
>>
>> - if (IS_ERR(wdev))
>> - brcmf_err("add iface %s type %d failed: err=%d\n",
>> - name, type, (int)PTR_ERR(wdev));
>> - else
>> + if (IS_ERR(wdev)) {
>> + err = PTR_ERR(wdev);
>> + if (err != -EBUSY)
>> + brcmf_err("add iface %s type %d failed: err=%d\n",
>> + name, type, err);
>> + else
>> + brcmf_dbg(INFO, "add iface %s type %d failed: err=%d\n",
>> + name, type, err);
>> + } else {
>> brcmf_cfg80211_update_proto_addr_mode(wdev);
>> + }
>>
>> return wdev;
>> }
>> diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c
>> index de19c7c..b5df0a0 100644
>> --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c
>> +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c
>> @@ -2090,7 +2090,10 @@ static struct wireless_dev *brcmf_p2p_create_p2pdev(struct brcmf_p2p_info *p2p,
>> /* Initialize P2P Discovery in the firmware */
>> err = brcmf_fil_iovar_int_set(pri_ifp, "p2p_disc", 1);
>> if (err < 0) {
>> - brcmf_err("set p2p_disc error\n");
>> + if (err != -EBUSY)
>> + brcmf_err("set p2p_disc error\n");
>> + else
>> + brcmf_dbg(INFO, "set p2p_disc error\n");
>> brcmf_fweh_p2pdev_setup(pri_ifp, false);
>> brcmf_cfg80211_arm_vif_event(p2p->cfg, NULL);
>> goto fail;
>>
next prev parent reply other threads:[~2017-03-08 8:47 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-27 21:45 [PATCH v2 1/4] brcmfmac: Do not print the firmware version as an error Hans de Goede
2017-02-27 21:45 ` [PATCH v2 2/4] brcmfmac: p2p and normal ap access are not always possible at the same time Hans de Goede
2017-03-07 10:03 ` Arend Van Spriel
2017-03-08 8:24 ` Hans de Goede [this message]
2017-03-08 9:26 ` Arend Van Spriel
2017-03-08 10:15 ` Arend Van Spriel
2017-03-08 11:16 ` Hans de Goede
2017-03-10 8:08 ` Hans de Goede
2017-03-10 9:35 ` Arend Van Spriel
2017-03-16 11:51 ` Hans de Goede
2017-02-27 21:45 ` [PATCH v2 3/4] brcmfmac: Do not complain about country code "00" Hans de Goede
2017-03-07 10:04 ` Arend Van Spriel
2017-02-27 21:45 ` [PATCH v2 4/4] brcmfmac: Handle status == BRCMF_E_STATUS_ABORT in cfg80211_escan_handler Hans de Goede
2017-03-07 10:06 ` Arend Van Spriel
2017-03-07 9:59 ` [PATCH v2 1/4] brcmfmac: Do not print the firmware version as an error Arend Van Spriel
2017-03-08 8:23 ` Hans de Goede
2017-03-08 9:28 ` Arend Van Spriel
2017-03-08 9:57 ` Kalle Valo
2017-03-08 10:08 ` Hans de Goede
2017-03-08 10:13 ` Arend Van Spriel
2017-03-08 10:14 ` Kalle Valo
2017-03-07 14:30 ` Kalle Valo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=738d049d-4e90-8a5d-e5c0-d037085a064c@redhat.com \
--to=hdegoede@redhat.com \
--cc=arend.vanspriel@broadcom.com \
--cc=brcm80211-dev-list.pdl@broadcom.com \
--cc=franky.lin@broadcom.com \
--cc=hante.meuleman@broadcom.com \
--cc=kvalo@codeaurora.org \
--cc=linux-wireless@vger.kernel.org \
--cc=tiwai@suse.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox