When a critical update occurs to any of elements inside beacon frame, AP shall increment BSS Parameters Change Count(BPCC) subfield and set the Critical Update flag subfield of the Capability Information to notify client that the critical update occurred on AP. Refer section "35.3.10 BSS parameter critical update procedure" on IEEE P802.11be D4.0 for details. On beacon offload case, change in CU parameters should be sent to user space either before or along with probe or assoc request frame receive to ensure that user space uses latest CU values and BPCC while generating response to the received frames. So, add the critical update parameters as a new attribute to existing NL80211_CMD_FRAME command instead of sending this on a separate NL80211 event. Add an ieee80211_critical_update() API to send the parameters to cfg80211 and call it when event received from firmware to update critical parameters to user space. Driver (ath12k) changes that utilize this will be posted in the future versions. Rathees Kumar R Chinannan (2): wifi: nl80211: Add attribute to send critical update params wifi: mac80211: Indicate ongoing critical update parameters include/net/cfg80211.h | 10 +++ include/net/mac80211.h | 13 ++++ include/uapi/linux/nl80211.h | 98 +++++++++++++++++++++++++++++ net/mac80211/cfg.c | 35 ++++++++++- net/mac80211/rx.c | 12 ++++ net/mac80211/tx.c | 5 ++ net/wireless/nl80211.c | 117 ++++++++++++++++++++++++++++++++++- 7 files changed, 288 insertions(+), 2 deletions(-) -- 2.34.1