]> git.ipfire.org Git - thirdparty/hostap.git/commit
hostapd: Refactor Channel Switch Wrapper element generation
authorKarthik M <quic_karm@quicinc.com>
Tue, 16 Jul 2024 10:14:05 +0000 (15:44 +0530)
committerJouni Malinen <j@w1.fi>
Tue, 6 Aug 2024 19:52:19 +0000 (22:52 +0300)
commitc9d0c6fd7e4b477180b3775c532cf49b2327f7eb
treee0e988fe9037c3186831e79b91b434c7767a3760
parentb592c1586e0f6502bec7933b47bb482e1a5ada31
hostapd: Refactor Channel Switch Wrapper element generation

The Wide Bandwidth Channel Switch subelement was directly appended in
the Channel Switch Wrapper element function
hostapd_eid_wb_chsw_wrapper(). However, a subsequent change would add
Bandwidth Indication subelement in the Channel Switch Wrapper element.
Hence using the same function name would be confusing.

Hence, refactor the current code into two functions. The first function
hostapd_eid_chsw_wrapper() forms the channel switch wrapper element.
This calls hostapd_eid_wb_channel_switch() to add a Wide Bandwidth
Channel Switch subelement inside it.

No functionality change.

Signed-off-by: Karthik M <quic_karm@quicinc.com>
Signed-off-by: Aditya Kumar Singh <quic_adisi@quicinc.com>
src/ap/beacon.c
src/ap/ieee802_11.c
src/ap/ieee802_11.h