[PATCH v11 4/7] hostapd: Support 80/160/320 MHz widths in hostapd_is_usable_chans

Jouni Malinen j at w1.fi
Sun Apr 5 02:09:23 PDT 2026


On Thu, Apr 02, 2026 at 05:53:53PM +0800, Allen Ye wrote:
> Update hostapd_is_usable_chans utility routine logic to take into
> account 80MHz, 160MHz and 320MHz channel widths.
> This is a preliminary patch to introduce AFC support.

This breaks hwsim test cases he_downgrade_40mhz_plus_minus_to_20mhz and
he_downgrade_40mhz_to_20mhz. I did not look at details on what exactly
is causing this, but something breaks the check for usable channels in
this special case where a 40 MHz channel has to be changed to 20 MHz
due to regulatory constraints.

I applied patches 1-3, but cannot not proceed with the other patches due
to this regression to existing functionality and the dependency implied
in this commit message.

-- 
Jouni Malinen                                            PGP id EFC895FA



More information about the Hostap mailing list