[PATCH 0/6] S1G scan plumbing and freq_khz metadata

James Ewing james at teledatics.com
Tue Sep 30 12:11:27 PDT 2025


Below is a 6-patch S1G plumbing series. The first two patches
add hwsim helpers and smoke coverage so we can exercise an
NL80211_BAND_S1GHZ radio. The middle updates teach hostapd,
wpa_supplicant, and nl80211 about the 1/2/4/5/8/10/16 MHz channel widths
and the kHz-level frequency metadata exposed by the kernel. The final
patch covers a full association, verifying that freq_khz/freq_offset are
preserved through the control interface.

Smoke testing runs clean on our mac80211_hwsim lab (see below); the
association test currently skips when the kernel cannot report an S1G
channel index.

Test coverage:
  - tests/hwsim/run_s1g_smoke.sh (PASS)
  - tests/hwsim/run_s1g_assoc_tmp.sh (SKIP: iw phy did not report an S1G 
channel index)

James Ewing (6):
   tests: add S1G channel helpers
   tests: add S1G smoke harness
   common: add IEEE 802.11ah channel widths
   nl80211: propagate S1G widths and freq offsets
   wpa_supplicant: preserve freq_khz metadata
   tests: add S1G association coverage

  hostapd/ctrl_iface.c               |  17 +++++
  src/ap/ctrl_iface_ap.c             |   2 +
  src/ap/hw_features.c               |   2 +
  src/common/defs.h                  |   8 +++
  src/common/hw_features_common.c    |  16 ++++-
  src/common/ieee802_11_common.c     |   7 ++
  src/drivers/driver.h               |  21 ++++++
  src/drivers/driver_common.c        |  28 ++++++++
  src/drivers/driver_nl80211.c       |  90 ++++++++++++++++++++++++-
  src/drivers/driver_nl80211_event.c |  28 ++++++++
  src/drivers/driver_nl80211_scan.c  |  32 +++++++++
  tests/hwsim/test_s1g_assoc.py      | 101 +++++++++++++++++++++++++++++
  tests/hwsim/test_s1g_smoke.py      |  40 ++++++++++++
  tests/hwsim/utils.py               |  55 ++++++++++++++++
  wpa_supplicant/bss.c               |   4 ++
  wpa_supplicant/bss.h               |   4 ++
  wpa_supplicant/ctrl_iface.c        |  14 ++++
  wpa_supplicant/scan.c              |  32 +++++----
  wpa_supplicant/wpa_supplicant.c    |   9 +++
  wpa_supplicant/wpa_supplicant_i.h  |   2 +
  20 files changed, 496 insertions(+), 16 deletions(-)
  create mode 100644 tests/hwsim/test_s1g_assoc.py
  create mode 100644 tests/hwsim/test_s1g_smoke.py

-- 
2.43.0





More information about the Hostap mailing list