[PATCH] hostapd: safe call to hostapd_config_check_bss_6g()

Jouni Malinen j at w1.fi
Wed Jun 25 02:27:23 PDT 2025


On Mon, Jun 23, 2025 at 09:11:42PM +0200, Christopher Söllinger wrote:
> In ap_drv_ops.c, the call to hostapd_config_check_bss_6g() is executed
> unconditionally. However, it should only be used when the BSS is actually
> configured on a 6 GHz operating class. This leads to false configuration
> errors in setups where the 6 GHz BSS has proper settings but other bands
> (2.4/5 GHz) share the same config structure.
> 
> This patch adds the missing is_6ghz_op_class() condition, mirroring how
> it's already used elsewhere in the codebase (e.g. in ap_config.c).
> 
> Fix verified on OpenWRT 24.10-SNAPSHOT using Mediatek Wi-Fi 7 hardware.

Thanks, applied.

-- 
Jouni Malinen                                            PGP id EFC895FA



More information about the Hostap mailing list