This patchset builds on the work down by Thomas Pedersen to add further support for 802.11ah in cfg80211 and mac80211. The ultimate goal is to enable the successful starting of an AP on 802.11ah using 802.11ah terms by implementing the various features that are required by the AP. The features are split into their own commits, please see those patches for more details. The patchset has been tested on both real hardware (Morse Micro MM610x) and mac80211_hwsim, in AP and STA modes. Basic regression testing was performed on 802.11n with mac80211_hwsim by starting an AP and having a STA interface connect to it. 802.11ah features/support missing: - Rate control integration - Regulatory database updates (only US regulatory information exists) - Optional 802.11ah (S1G) features such as RAW, TWT and AID grouping Kieran Frewen (12): cfg80211: regulatory: extend regulatory support for S1G mac80211: update TIM for S1G specification changes mac80211: S1G beacon/short beacon support nl80211: support setting S1G short beacon period nl80211: support advertising S1G capabilities mac80211: support ieee80211_ext format mac80211: S1G capabilities information element in probe request cfg80211: S1G rate flags nl80211: support advertising S1G rate information mac80211: support S1G rate encoding. cfg80211: support for calculating S1G bitrates mac80211_hwsim: support for S1G rate information drivers/net/wireless/mac80211_hwsim.c | 40 +++- include/net/cfg80211.h | 16 +- include/net/mac80211.h | 33 ++- include/uapi/linux/nl80211.h | 27 +++ net/mac80211/cfg.c | 43 +++- net/mac80211/ieee80211_i.h | 1 + net/mac80211/rx.c | 32 ++- net/mac80211/sta_info.c | 7 + net/mac80211/sta_info.h | 7 + net/mac80211/tx.c | 27 ++- net/mac80211/util.c | 67 +++++- net/wireless/nl80211.c | 37 ++++ net/wireless/reg.c | 50 +++-- net/wireless/reg_s1g.h | 281 ++++++++++++++++++++++++++ net/wireless/util.c | 144 ++++++++++++- 15 files changed, 758 insertions(+), 54 deletions(-) create mode 100644 net/wireless/reg_s1g.h -- 2.25.1