cfg80211: support RNR for EMA AP
As per IEEE Std 802.11ax-2021, 11.1.3.8.3 Discovery of a nontransmitted BSSID profile, an EMA AP that transmits a Beacon frame carrying a partial list of nontransmitted BSSID profiles should include in the frame a Reduced Neighbor Report element carrying information for at least the nontransmitted BSSIDs that are not present in the Multiple BSSID element carried in that frame. Add new nested attribute NL80211_ATTR_EMA_RNR_ELEMS to support the above. Number of RNR elements must be more than or equal to the number of MBSSID elements. This attribute can be used only when EMA is enabled. Userspace is responsible for splitting the RNR into multiple elements such that each element excludes the non-transmitting profiles already included in the MBSSID element (%NL80211_ATTR_MBSSID_ELEMS) at the same index. Each EMA beacon will be generated by adding MBSSID and RNR elements at the same index. If the userspace provides more RNR elements than the number of MBSSID elements then these will be added in every EMA beacon. Signed-off-by: Aloka Dixit <quic_alokad@quicinc.com> Link: https://lore.kernel.org/r/20230323113801.6903-2-quic_alokad@quicinc.com [Johannes: validate elements] Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
committed by
Johannes Berg
parent
f102424bef
commit
dbbb27e183
@@ -2794,6 +2794,17 @@ enum nl80211_commands {
|
||||
* @NL80211_ATTR_HW_TIMESTAMP_ENABLED: Indicates whether HW timestamping should
|
||||
* be enabled or not (flag attribute).
|
||||
*
|
||||
* @NL80211_ATTR_EMA_RNR_ELEMS: Optional nested attribute for
|
||||
* reduced neighbor report (RNR) elements. This attribute can be used
|
||||
* only when NL80211_MBSSID_CONFIG_ATTR_EMA is enabled.
|
||||
* Userspace is responsible for splitting the RNR into multiple
|
||||
* elements such that each element excludes the non-transmitting
|
||||
* profiles already included in the MBSSID element
|
||||
* (%NL80211_ATTR_MBSSID_ELEMS) at the same index. Each EMA beacon
|
||||
* will be generated by adding MBSSID and RNR elements at the same
|
||||
* index. If the userspace includes more RNR elements than number of
|
||||
* MBSSID elements then these will be added in every EMA beacon.
|
||||
*
|
||||
* @NUM_NL80211_ATTR: total number of nl80211_attrs available
|
||||
* @NL80211_ATTR_MAX: highest attribute number currently defined
|
||||
* @__NL80211_ATTR_AFTER_LAST: internal use
|
||||
@@ -3328,6 +3339,8 @@ enum nl80211_attrs {
|
||||
NL80211_ATTR_MAX_HW_TIMESTAMP_PEERS,
|
||||
NL80211_ATTR_HW_TIMESTAMP_ENABLED,
|
||||
|
||||
NL80211_ATTR_EMA_RNR_ELEMS,
|
||||
|
||||
/* add attributes here, update the policy in nl80211.c */
|
||||
|
||||
__NL80211_ATTR_AFTER_LAST,
|
||||
|
||||
Reference in New Issue
Block a user