]> git.ipfire.org Git - thirdparty/hostap.git/commit
Derive seg0_idx and seg1_idx for 6 GHz when processing channel switch
authorRohan <drohan@codeaurora.org>
Thu, 16 Jul 2020 14:05:14 +0000 (19:35 +0530)
committerJouni Malinen <j@w1.fi>
Thu, 13 Aug 2020 18:37:49 +0000 (21:37 +0300)
commit0fa274d2bf608a574114f5c051c4c35edc706f7c
tree173519c00b4bb1577c8026baa6d9e1ab87505e43
parent5644b23de1f0ed384b489d77db92af2036f2e3df
Derive seg0_idx and seg1_idx for 6 GHz when processing channel switch

The function hostapd_event_ch_switch() derived the seg0_idx and seg1_idx
values only for the 5 GHz and 2.4 GHz bands and the 6 GHz case ended up
using incorrect calculation based on the 5 GHz channel definitions.

Fix this by adding support for 6 GHz frequencies.

Signed-off-by: Rohan <drohan@codeaurora.org>
src/ap/drv_callbacks.c