]> git.ipfire.org Git - thirdparty/hostap.git/commit
EHT: Fix updating center freq segment 0 index for HE and VHT
authorMikelis Vuls <mvuls@maxlinear.com>
Mon, 4 Dec 2023 12:27:48 +0000 (12:27 +0000)
committerJouni Malinen <j@w1.fi>
Wed, 6 Dec 2023 10:11:13 +0000 (12:11 +0200)
commit58116877b67126acc7870de08ccf6780c646a0e7
tree0ba674ebf19bdc415a62c0728bd694fd7dc353f0
parent40b04b7034f4dd904fba27fa165a5146055c5fb5
EHT: Fix updating center freq segment 0 index for HE and VHT

Add additional check for 6 GHz operating class. Otherwise this results
in setting incorrect segment 0 index for 5 GHz 40 MHz channel 157-161,
which has the same center segment 0 index 159 as 6 GHz 320 MHz expected
channel.

Fixes: 085a3fc76e6b ("EHT: Add 320 channel width support")
Signed-off-by: Mikelis Vuls <mvuls@maxlinear.com>
src/ap/ap_config.h