From: Arend van Spriel <arend.vanspriel@broadcom.com>
To: Ian Lin <ian.lin@infineon.com>, johannes@sipsolutions.net
Cc: linux-wireless@vger.kernel.org, brcm80211@lists.linux.dev,
carter.chen@infineon.com, double.lo@infineon.com,
vinoth.sampath@infineon.com, gokulkumar.sivakumar@infineon.com
Subject: Re: [PATCH wireless-next 4/4] wifi: brcmfmac: prevent disable controller in apmode stop
Date: Wed, 4 Jun 2025 12:25:59 +0200 [thread overview]
Message-ID: <1b15a15d-d02c-42af-a628-a8543ffdf528@broadcom.com> (raw)
In-Reply-To: <20250604091629.3943-5-ian.lin@infineon.com>
On 6/4/2025 11:16 AM, Ian Lin wrote:
> From: Ian Lin <ian.lin-ee@infineon.com>
>
> Wpa_supplicant will firstly call scan before start apmode.
> In mbss case, controller will be disabled during stop apmode
> so next time it reports fail in starting apmpde.
> Fix by removing the disable operation.
The function brcmf_cfg80211_stop_ap() is a bit tricky. The flag
ifp->vif->mbss is set to true only when there are multiple AP interface
and only for subsequent AP interface. For the first AP interface being
created the flag is false.
Now looking at the function I suspect there is an assumption that each
AP interface will be stopped. So for a subsequent AP interfaces is will
do a BRCMF_C_DOWN and for the first interface it will do other stuff
below the if statement follwed by BRCMF_C_UP.
Clearly you are solving another scenario here so could you elaborate on
that?
Regards,
Arend
> Signed-off-by: Ian Lin <ian.lin-ee@infineon.com>
> ---
> drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c | 5 -----
> 1 file changed, 5 deletions(-)
>
> diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c
> index e23cd6fc0f56..b4078e74f135 100644
> --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c
> +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c
> @@ -5392,11 +5392,6 @@ static int brcmf_cfg80211_stop_ap(struct wiphy *wiphy, struct net_device *ndev,
> profile->use_fwauth = BIT(BRCMF_PROFILE_FWAUTH_NONE);
> }
>
> - if (ifp->vif->mbss) {
> - err = brcmf_fil_cmd_int_set(ifp, BRCMF_C_DOWN, 1);
> - return err;
> - }
> -
> /* First BSS doesn't get a full reset */
> if (ifp->bsscfgidx == 0)
> brcmf_fil_iovar_int_set(ifp, "closednet", 0);
next prev parent reply other threads:[~2025-06-04 10:26 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-04 9:16 [PATCH wireless-next 0/4] wifi: brcmfmac: apmode related fix Ian Lin
2025-06-04 9:16 ` [PATCH wireless-next 1/4] wifi: brcmfmac: don't allow arp/nd offload to be enabled if ap mode exists Ian Lin
2025-06-04 10:01 ` Arend van Spriel
2025-06-06 8:08 ` Lin Ian (CSS ICW ENG WFS SW WFSW 1)
2025-06-06 8:29 ` Johannes Berg
2025-06-04 9:16 ` [PATCH wireless-next 2/4] wifi: brcmfmac: revise SoftAP channel setting Ian Lin
2025-06-04 9:38 ` Arend van Spriel
2025-06-06 7:45 ` Lin Ian (CSS ICW ENG WFS SW WFSW 1)
2025-06-04 9:16 ` [PATCH wireless-next 3/4] wifi: brcmfmac: Improve the delay during scan Ian Lin
2025-06-04 9:54 ` Arend van Spriel
2025-06-06 7:49 ` Lin Ian (CSS ICW ENG WFS SW WFSW 1)
2025-06-04 9:16 ` [PATCH wireless-next 4/4] wifi: brcmfmac: prevent disable controller in apmode stop Ian Lin
2025-06-04 10:25 ` Arend van Spriel [this message]
2025-06-06 7:41 ` Lin Ian (CSS ICW ENG WFS SW WFSW 1)
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=1b15a15d-d02c-42af-a628-a8543ffdf528@broadcom.com \
--to=arend.vanspriel@broadcom.com \
--cc=brcm80211@lists.linux.dev \
--cc=carter.chen@infineon.com \
--cc=double.lo@infineon.com \
--cc=gokulkumar.sivakumar@infineon.com \
--cc=ian.lin@infineon.com \
--cc=johannes@sipsolutions.net \
--cc=linux-wireless@vger.kernel.org \
--cc=vinoth.sampath@infineon.com \
/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