Repository navigation
Two patches supporting a soft AP running on a virtual interface - #7778
Merged
Merged
Conversation
Contributor
Author
|
Updated the Assisted-by tags and pulled in the workflow changes to test them. |
brcmf_cfg80211_start_ap only takes the device down (BRCMF_C_DOWN) when the AP is on the primary interface or the firmware can't run multiple channels/bands, but brcmf_cfg80211_stop_ap always does a full DOWN/SET_AP 0/UP reset for the first AP interface. When the AP is a virtual interface alongside an associated STA (e.g. a NetworkManager "shared" hotspot on an __ap vif), stopping or restarting the AP therefore disconnects the upstream STA. Factor the start_ap condition out into brcmf_ap_owns_radio() and, when the AP doesn't own the radio, just disable its BSS with the "bss" iovar, as is already done for P2P GO interfaces. Assisted-by: Claude:claude-opus-5-5 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
When a soft AP runs on a virtual interface alongside an associated STA, firmware with multi-channel support will run the two on different channels, time-sharing the radio. On the SYN43436P this almost completely breaks traffic forwarded between the interfaces (e.g. a NetworkManager "shared" hotspot), because frames queued for whichever interface is off-channel are dropped. While such an AP is running, set the "mchan_stago_disab" iovar, which disables multi-channel operation for STA + GO/AP concurrency. The firmware then keeps the AP on the STA's channel: it starts there regardless of the channel requested, and follows the STA when it roams. Clear it again when the AP stops (or fails to start) so that other concurrency is unaffected. Firmware without the iovar just ignores the request. Assisted-by: Claude:claude-opus-5-5 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
popcornmix
added a commit
to raspberrypi/firmware
that referenced
this pull request
Nov 23, 2026
kernel: power: reset: gpio-poweroff: Support GPIOs that can sleep See: raspberrypi/linux#7767 kernel: IMX708 ccs and link frequency changes See: raspberrypi/linux#7605 kernel: rp1-pio security audit See: raspberrypi/linux#7771 kernel: wifi: brcmfmac: Enable WPA3 on Z2W See: raspberrypi/linux#7762 kernel: staging: vchiq_core: Store a msg_queue entry before publishing it See: raspberrypi/linux#7761 kernel: Workflow improvements See: raspberrypi/linux#7779 kernel: Two patches supporting a soft AP running on a virtual interface See: raspberrypi/linux#7778 kernel: Revert downstream commits made redundant upstream See: raspberrypi/linux#7781 kernel: dt-bindings: Fix dt_binding_check errors in downstream bindings See: raspberrypi/linux#7783
popcornmix
added a commit
to raspberrypi/rpi-firmware
that referenced
this pull request
Nov 23, 2026
kernel: power: reset: gpio-poweroff: Support GPIOs that can sleep See: raspberrypi/linux#7767 kernel: IMX708 ccs and link frequency changes See: raspberrypi/linux#7605 kernel: rp1-pio security audit See: raspberrypi/linux#7771 kernel: wifi: brcmfmac: Enable WPA3 on Z2W See: raspberrypi/linux#7762 kernel: staging: vchiq_core: Store a msg_queue entry before publishing it See: raspberrypi/linux#7761 kernel: Workflow improvements See: raspberrypi/linux#7779 kernel: Two patches supporting a soft AP running on a virtual interface See: raspberrypi/linux#7778 kernel: Revert downstream commits made redundant upstream See: raspberrypi/linux#7781 kernel: dt-bindings: Fix dt_binding_check errors in downstream bindings See: raspberrypi/linux#7783
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Creating a virtual WiFi interface allows one to create a soft AP while remaining connected as a client of an upstream AP on the real WiFi interface. Existing firmware(s?) support this, but it works best when the soft AP uses the same channel as the upstream AP. These patches limit channel hopping, and also prevent the upstream connection being taken down when the soft AP is stopped.