hostapd/src
Michael-CY Lee 98f3bd26de ACS: Extend the 320 MHz support
There are bandwidth 320 MHz-1 and 320 MHz-2 channelization in EHT mode.
When using ACS, user might prefer one of the channelization or both, but
original ACS was unable to take such preference.

Another problem is that the original ACS returns only the ideal channel
but no 320 MHz channelization. The function acs_get_bw_center_chan()
also could not correctly return the center frequency of bandwidth 320
MHz that is decided by ACS.

For example, if ACS decide the ideal channel is channel 37 with
channelization 320 MHz-2 (center frequency 6265 MHz),
acs_get_bw_center_chan() returns 6105 MHz, which is 320 MHz-1.

Extend the support for 320 MHz so that ACS can choose the best channel
according to the user's preference. Also, after calling
acs_find_ideal_chan_mode(), the best channel and bandwidth can be
derived.

The changes are:
- bw_type ACS_BW320 is divided into ACS_BW320_1 and ACS_BW320_2
- in bandwidth 320 MHz, find the best channel and bandwidth according to
  user's perference (320 MHz-1, 320 Mhz-2 or both are OK)
- before acs_find_ideal_chan_mode() returns, update bw320_offset in
  iface->conf so that the best channel's channelization is recorded.
- get the best center frequency from bw320_offset

Co-developed-by: Money Wang <money.wang@mediatek.com>
Signed-off-by: Michael-CY Lee <michael-cy.lee@mediatek.com>
2023-12-23 16:38:06 +02:00
..
ap ACS: Extend the 320 MHz support 2023-12-23 16:38:06 +02:00
common Move parse_freq() to be a common helper function 2023-12-23 11:59:19 +02:00
crypto OpenSSL: Check EVP_MAC_update() return value more consistently 2023-12-17 12:06:04 +02:00
drivers Support all PSK AKMs in case of AP mode PSK offload 2023-12-23 11:24:26 +02:00
eap_common crypto: Check if crypto_bignum_to_bin() is successful 2022-12-17 12:11:13 +02:00
eap_peer Compile-time config for dynamically loading libraries in wpa_supplicant 2023-11-05 10:23:29 +02:00
eap_server EAP-SIM/AKA server: Configurable limit to fast re-authentication 2023-09-21 11:55:49 +03:00
eapol_auth Do not disconnect EAPOL-Logoff before authentication 2023-05-04 11:10:16 +03:00
eapol_supp Compile-time config for dynamically loading libraries in wpa_supplicant 2023-11-05 10:23:29 +02:00
fst FST: More robust bounds checking of local data in fst_dump_mb_ies() 2022-05-08 17:18:58 +03:00
l2_packet l2_packet_freebsd: Enable receiving priority tagged (VID=0) frames 2023-10-28 17:50:09 +03:00
p2p P2P: Recover from successfully requested, but not started, listen 2023-12-10 19:30:44 +02:00
pae KaY: Make debug output consistent 2023-12-06 12:11:08 +02:00
pasn common: Simplify and avoid confusing defragmentation API 2023-11-25 10:56:56 +02:00
radius RADIUS: Add Filter-Id attribute 2022-10-31 11:56:57 +02:00
rsn_supp TDLS: Avoid unnecessary copying of the Link Identifier element 2023-12-17 11:51:35 +02:00
tls PKCS#1: Do not use pointer value after freeing 2023-12-17 12:17:10 +02:00
utils trace: binutils replaces bfd_hostptr_t with uintptr_t 2023-12-02 19:08:25 +02:00
wps WPS: Optimize attribute parsing workaround 2023-07-18 11:46:57 +03:00
build.rules build: Rebuild libs all the time 2020-10-12 20:18:02 +03:00
lib.rules build: lib.rules: Add common-clean 2020-10-16 12:51:12 +03:00
Makefile PASN: Move initiator changes into a separate file 2022-11-04 00:52:17 +02:00
objs.mk build: Fix dependency file inclusion 2020-10-12 11:05:16 +03:00