[PATCH] hostapd: Fix CSA on 6GHz with bandwidth > 20

Jouni Malinen j at w1.fi
Sat Apr 4 02:38:54 PDT 2026


On Thu, Mar 05, 2026 at 10:29:10AM +0100, Nicolas Escande wrote:
> On 6GHz we do not specify a secondary channel as it is always 0 for that band.
> 
> The code however was intended for 2.4/5G and clearly missed an exception for
> this band to work when validating bandwidth > 20 MHz. As such switching to a
> 6GHz channel with a wide bandwidth failed systematically.
> 
> As an example a command to start channel switch to 6GHz chan 37 width 320MHz:
> 	CHAN_SWITCH 8 6135 blocktx he eht bandwidth=320 center_freq1=6265

Thanks, applied with some cleanup.

-- 
Jouni Malinen                                            PGP id EFC895FA



More information about the Hostap mailing list