[PATCH v13 0/5] Introduce Automated Frequency Coordination (AFC) support
Allen Ye
allen.ye at mediatek.com
Mon Aug 3 23:34:32 PDT 2026
This patch series introduces Automated Frequency Coordination (AFC) support
for Standard Power Devices (SPDs) operating in the 6GHz UNII-5 and UNII-7
bands. AFC is a regulatory requirement for SPDs to determine a list of
available channels and their permissible power levels.
The implementation introduces a new standalone daemon, afcd, to manage
communication with the AFC server. A client within hostapd then interacts
with afcd via a Unix socket to fetch spectrum availability and update AP
parameters accordingly. The series also includes hwsim tests for validation.
Note: The AFC daemon support (afcd) was merged in v11. This series contains
the remaining patches.
The implementation has been tested against the Wi-Fi Alliance's AFC DUT
Test Harness [0].
[0] https://github.com/Wi-FiTestSuite/AFC-DUT/tree/main
Changes since v12:
- Rework hostapd_is_usable_chans() to optimize ht40_plus_minus_allowed
handling and introduce hostapd_is_usable_chan_seg() to handle 80/160/320
MHz bandwidths
- Fix potential memory leaks when processing AFC server response
- Rebase on top of hostapd main branch
Changes since v11:
- Fix hwsim test fail
- Remove merged patches and rebase on top of hostapd main branch
Allen Ye (3):
hostapd: Fix ht40_plus_minus_allowed secondary channel selection
hostapd: Support 80/160/320 MHz widths in hostapd_is_usable_chans
tests: Add AFC hwsim tests
Lorenzo Bianconi (2):
AFC: Add AFC client support
AFC: Update TPE IE according to AFC
hostapd/Makefile | 8 +
hostapd/config_file.c | 250 ++++++
hostapd/ctrl_iface.c | 47 ++
hostapd/defconfig | 3 +
hostapd/hostapd.conf | 41 +
hostapd/hostapd_cli.c | 29 +
src/ap/afc.c | 1128 ++++++++++++++++++++++++++++
src/ap/ap_config.c | 15 +
src/ap/ap_config.h | 46 ++
src/ap/hostapd.c | 24 +
src/ap/hostapd.h | 61 ++
src/ap/hw_features.c | 118 ++-
src/ap/hw_features.h | 6 +
src/ap/ieee802_11.c | 53 +-
src/common/wpa_ctrl.h | 3 +
tests/hwsim/example-hostapd.config | 1 +
tests/hwsim/test_afc.py | 335 +++++++++
17 files changed, 2132 insertions(+), 36 deletions(-)
create mode 100644 src/ap/afc.c
create mode 100644 tests/hwsim/test_afc.py
--
2.45.2
More information about the Hostap
mailing list