linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Arend Van Spriel <aspriel@gmail.com>
To: Ian Lin <ian.lin@infineon.com>, linux-wireless@vger.kernel.org
Cc: brcm80211-dev-list@broadcom.com, brcm80211-dev-list@cypress.com,
	franky.lin@broadcom.com, hante.meuleman@broadcom.com,
	kvalo@kernel.org, Double.Lo@infineon.com
Subject: Re: [PATCH v3 4/4] brcmfmac: Fix authentication latency caused by OBSS stats survey
Date: Mon, 10 Oct 2022 12:16:06 +0200	[thread overview]
Message-ID: <449400ea-9751-e78b-fd90-0389aee39dbd@gmail.com> (raw)
In-Reply-To: <20220929012527.4152-5-ian.lin@infineon.com>

On 9/29/2022 3:25 AM, Ian Lin wrote:
> From: Ramesh Rangavittal <ramesh.rangavittal@infineon.com>
> 
> Auto Channel Select feature of HostAP uses dump_survey to fetch
> OBSS statistics. When the device is in the middle of an authentication
> sequence or just at the end of authentication completion, running
> dump_survey would trigger a channel change. The channel change in-turn
> can cause packet loss, resulting in authentication delay. With this change,
> dump_survey won't be run when authentication or association is in progress,
> hence resolving the issue.

It does a bit more than that. It only allows survey when not connected. 
The description above suggests that it is possible when connection is 
completed, but the condition checked below is saying something else.

Regards,
Arend

> Signed-off-by: Ramesh Rangavittal <ramesh.rangavittal@infineon.com>
> Signed-off-by: Chung-Hsien Hsu <chung-hsien.hsu@infineon.com>
> Signed-off-by: Chi-hsien Lin <chi-hsien.lin@infineon.com>
> Signed-off-by: Ian Lin <ian.lin@infineon.com>
> ---
>   drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c | 6 ++++++
>   1 file changed, 6 insertions(+)
> 
> diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c
> index c13c4c559e6e..362d8fd0af4e 100644
> --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c
> +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c
> @@ -7697,6 +7697,12 @@ brcmf_cfg80211_dump_survey(struct wiphy *wiphy, struct net_device *ndev,
>   
>   	brcmf_dbg(TRACE, "Enter: channel idx=%d\n", idx);
>   
> +	/* Do not run survey when VIF in CONNECTING / CONNECTED states */
> +	if ((test_bit(BRCMF_VIF_STATUS_CONNECTING, &ifp->vif->sme_state)) ||
> +	    (test_bit(BRCMF_VIF_STATUS_CONNECTED, &ifp->vif->sme_state))) {
> +		return -EBUSY;
> +	}
> +
>   	band = wiphy->bands[NL80211_BAND_2GHZ];
>   	if (band && idx >= band->n_channels) {
>   		idx -= band->n_channels;

      reply	other threads:[~2022-10-10 10:16 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-29  1:25 [PATCH v3 0/4] brcmfmac: Add dump_survey cfg80211 ops series Ian Lin
2022-09-29  1:25 ` [PATCH v3 1/4] brcmfmac: Add dump_survey cfg80211 ops for HostApd AutoChannelSelection Ian Lin
2022-10-04  8:19   ` Kalle Valo
2022-10-04  8:24     ` Kalle Valo
2022-10-04  8:27   ` Kalle Valo
2022-09-29  1:25 ` [PATCH v3 2/4] brcmfmac: fix firmware trap while dumping obss stats Ian Lin
2022-09-29  1:25 ` [PATCH v3 3/4] brcmfmac: fix CERT-P2P:5.1.10 failure Ian Lin
2022-09-29  1:25 ` [PATCH v3 4/4] brcmfmac: Fix authentication latency caused by OBSS stats survey Ian Lin
2022-10-10 10:16   ` Arend Van Spriel [this message]

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=449400ea-9751-e78b-fd90-0389aee39dbd@gmail.com \
    --to=aspriel@gmail.com \
    --cc=Double.Lo@infineon.com \
    --cc=brcm80211-dev-list@broadcom.com \
    --cc=brcm80211-dev-list@cypress.com \
    --cc=franky.lin@broadcom.com \
    --cc=hante.meuleman@broadcom.com \
    --cc=ian.lin@infineon.com \
    --cc=kvalo@kernel.org \
    --cc=linux-wireless@vger.kernel.org \
    /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;
as well as URLs for NNTP newsgroup(s).