[PATCH v2 01/15] hostapd: Allow the primary/secondary channel switch to be disabled
Jouni Malinen
j at w1.fi
Sun Nov 15 08:27:44 PST 2026
On Fri, Oct 16, 2026 at 10:08:09PM +0300, Andrei-Alexandru Bleortu wrote:
> Before enabling a 40 MHz or wider channel, hostapd scans for neighboring
> BSSs and swaps its primary and secondary 20 MHz channels when another BSS
> has its primary channel on this BSS's secondary channel. The scan can
> already be skipped with no_pri_sec_switch, but only P2P GO and mesh set
> it, so an operator with a coordinated channel plan cannot keep the
> configured primary channel.
>
> Expose no_pri_sec_switch as a configuration parameter, documenting that
> it skips the whole scan, which IEEE Std 802.11-2024, 11.15.3.2 otherwise
> requires. Since the scan is what records the secondary channel to return
> to after a 20/40 MHz coexistence fallback, record it when skipping too.
This primary/secondary channel switching mechanism is mandatory behavior
and because of that, this type of configuration parameter to skip the
check has not been provided for AP mode.
--
Jouni Malinen PGP id EFC895FA
More information about the Hostap
mailing list