All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kalle Valo <kvalo@kernel.org>
To: Arend van Spriel <arend.vanspriel@broadcom.com>
Cc: brcm80211@lists.linux.dev,  linux-wireless@vger.kernel.org
Subject: Re: brcmfmac: implement basic AP-follow-STA
Date: Mon, 17 Jun 2024 16:19:53 +0300	[thread overview]
Message-ID: <87v827k8p2.fsf@kernel.org> (raw)
In-Reply-To: <Zmqf7jCqwlQNGM_j@x1.vandijck-laurijssen.be> (Kurt Van Dijck's message of "Thu, 13 Jun 2024 09:29:50 +0200")

Kurt Van Dijck <dev.kurt@vandijck-laurijssen.be> writes:

> /* context */
> We (Yamabiko) have an application where we migrated to a bcm4339 sdio wifi chip.
> We use it in AP+STA mode: when the chip is detected (wlan+ add uevent),
> we call 'run iw dev wlan0 interface add wap0 type __ap' and start
> wpa_supplicant on wlan0 and hostapd on wap0.
> The STA is more important than the AP.
> We have 'roamoff' parameter set. We observed problems with the firmware roaming
> before and switched to wpa_supplicant roaming.
>
> We run a linux v5.4.24 derivative.
>
> /* problem */
> We observed that the chip is able to switch channel for wpa_supplicant to
> connect to a different channel, but it soon looses connection because hostapd
> does not change channel too.
>
> This did work with our previous wifi chip (realtek 88x2 something), which notifies
> hostapd that it switched.
>
> /* patch description */
> I went down and ended up modifying the brcmfmac driver, patch appended below.
> For contributing on these mailing lists, I ported it to yesterday's master.
> The idea is that whenever a STA issues a connect with channel info, the AP's
> will switch to it too. This implies a small glitch in the AP radio, which already
> occurred before my patch. it seems that the wifi chip cannot modify radio settings
> per virtual interface, although the API to the wifi chip suggests it can (that is
> most probable a more generic communication used for other chips that can do this).
> The channel switch is also reported to userspace.
>
> To be less invasive, this new behaviour is put behind
> a module parameter 'ap_follow_sta'.

FWIW module parameters should be avoided, especially for 802.11 protocol
level functionality.

-- 
https://patchwork.kernel.org/project/linux-wireless/list/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches

  reply	other threads:[~2024-06-17 13:19 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-13  7:29 brcmfmac: implement basic AP-follow-STA Kurt Van Dijck
2024-06-17 13:19 ` Kalle Valo [this message]
2024-06-17 14:57   ` Arend Van Spriel
2024-06-17 17:27   ` Kurt Van Dijck

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=87v827k8p2.fsf@kernel.org \
    --to=kvalo@kernel.org \
    --cc=arend.vanspriel@broadcom.com \
    --cc=brcm80211@lists.linux.dev \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.