[PATCH v12 0/4] Introduce Automated Frequency Coordination (AFC) support

Allen Ye allen.ye at mediatek.com
Tue Apr 7 22:56:36 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 v11:
- Fix hwsim test fail
- Remove merged patches and rebase on top of hostapd main branch

Allen Ye (2):
  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                       | 1122 ++++++++++++++++++++++++++++
 src/ap/ap_config.c                 |   15 +
 src/ap/ap_config.h                 |   46 ++
 src/ap/hostapd.c                   |   24 +
 src/ap/hostapd.h                   |   58 ++
 src/ap/hw_features.c               |  127 +++-
 src/ap/hw_features.h               |    7 +
 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, 2123 insertions(+), 46 deletions(-)
 create mode 100644 src/ap/afc.c
 create mode 100644 tests/hwsim/test_afc.py

-- 
2.43.0




More information about the Hostap mailing list