]> git.ipfire.org Git - thirdparty/hostap.git/commit
hostapd: Avoid channel selection across underlying hardware index
authorAditya Kumar Singh <quic_adisi@quicinc.com>
Wed, 24 Jul 2024 07:08:14 +0000 (12:38 +0530)
committerJouni Malinen <j@w1.fi>
Fri, 9 Aug 2024 19:25:02 +0000 (22:25 +0300)
commit3e2758b19a75c6e93feca0e48b7884c69480ca3d
tree059786f6ad19311d135417206c688026ccad780b
parent15bf093b5b48eb9e4ebebe5805c5dca5e836a37c
hostapd: Avoid channel selection across underlying hardware index

Currently, channel is selected from the current hw_mode. However, not
all channels under current hw_mode might be available for the current
operating underlying hardware.

Add logic to check if the selected channel falls under the current
operating hardware index and only if so, continue with the selected
channel.

Co-developed-by: Harshitha Prem <quic_hprem@quicinc.com>
Signed-off-by: Harshitha Prem <quic_hprem@quicinc.com>
Signed-off-by: Aditya Kumar Singh <quic_adisi@quicinc.com>
hostapd/ctrl_iface.c
src/ap/dfs.c
src/common/hw_features_common.c
src/common/hw_features_common.h