Add AP SME device feature flag to advertise that the SA Query procedures are handled in driver. If this flag is advertised SA Query request or response frames from peers are not reported to userspace. Thus userspace components shall skip SA Query specific validations. Ex: When AP started with Operating Channel Validation(OCV) support and channel switch occurs, hostapd starts SA Query timer for OCV enabled STAs. Hostapd sends deauth to the STAs which didn't send SA Query request before timeout, Hostapd can skip such validations when this flag advertised. Signed-off-by: Veerendranath Jakkam <vjakkam@xxxxxxxxxxxxxx> --- include/uapi/linux/nl80211.h | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/include/uapi/linux/nl80211.h b/include/uapi/linux/nl80211.h index eda608b..99746aa 100644 --- a/include/uapi/linux/nl80211.h +++ b/include/uapi/linux/nl80211.h @@ -5735,13 +5735,17 @@ enum nl80211_tdls_operation { NL80211_TDLS_DISABLE_LINK, }; -/* +/** * enum nl80211_ap_sme_features - device-integrated AP features - * Reserved for future use, no bits are defined in - * NL80211_ATTR_DEVICE_AP_SME yet. + * @NL80211_DEVICE_AP_SME_SA_QUERY_OFFLOAD: Driver handles SA Query procedures. + * If this flag is advertised by the driver, SA Query request/response + * frames are handled within the driver and won't be reported to userspace. + * Userspace shall skip SA Query specific validations if the driver is + * advertizing this capability. + */ enum nl80211_ap_sme_features { + NL80211_DEVICE_AP_SME_SA_QUERY_OFFLOAD = 1 << 0, }; - */ /** * enum nl80211_feature_flags - device/driver features -- 2.7.4