This patchset finishes the work to make channels work on a KHz offset, and includes the initial definitions for S1G (802.11ah). These patches on top of wt-2020-04-29 with hostap c54a5e96b505 gives the following hwsim test results: Failed even on retry: proxyarp_open_ebtables wpas_config_file fst_dynamic_iface_attach TOTAL=3531 PASS=3265 FAIL=12 SKIP=251 Which is what we currently expect of HEAD. Changes from v3 are rebasing on latest wireless-testing and making the SCAN_FREQ_KHZ more robust so userspace can omit the MHZ-only scan frequencies in the request, and kernel can do the same in the results. Also some breakage introduced by patch #1 has been addressed by leaving the existing cfg80211 API intact. Thomas Pedersen (5): cfg80211: add KHz variants of frame RX API nl80211: add KHz frequency offset for most wifi commands nl80211: support scan frequencies in KHz ieee80211: S1G defines nl80211: S1G band and channel definitions include/linux/ieee80211.h | 222 +++++++++++++++++++++++++++++++++++ include/net/cfg80211.h | 71 ++++++++++- include/uapi/linux/nl80211.h | 77 +++++++++--- net/mac80211/chan.c | 7 +- net/mac80211/main.c | 2 + net/mac80211/rx.c | 8 +- net/mac80211/scan.c | 1 + net/mac80211/tx.c | 5 + net/mac80211/util.c | 5 + net/wireless/chan.c | 29 +++++ net/wireless/core.c | 5 +- net/wireless/mlme.c | 8 +- net/wireless/nl80211.c | 135 +++++++++++++++------ net/wireless/trace.h | 12 +- net/wireless/util.c | 8 ++ 15 files changed, 521 insertions(+), 74 deletions(-) -- 2.20.1