|
@@ -1407,8 +1407,12 @@ enum nl80211_commands {
|
|
*
|
|
*
|
|
* @NL80211_ATTR_USE_MFP: Whether management frame protection (IEEE 802.11w) is
|
|
* @NL80211_ATTR_USE_MFP: Whether management frame protection (IEEE 802.11w) is
|
|
* used for the association (&enum nl80211_mfp, represented as a u32);
|
|
* used for the association (&enum nl80211_mfp, represented as a u32);
|
|
- * this attribute can be used
|
|
|
|
- * with %NL80211_CMD_ASSOCIATE and %NL80211_CMD_CONNECT requests
|
|
|
|
|
|
+ * this attribute can be used with %NL80211_CMD_ASSOCIATE and
|
|
|
|
+ * %NL80211_CMD_CONNECT requests. %NL80211_MFP_OPTIONAL is not allowed for
|
|
|
|
+ * %NL80211_CMD_ASSOCIATE since user space SME is expected and hence, it
|
|
|
|
+ * must have decided whether to use management frame protection or not.
|
|
|
|
+ * Setting %NL80211_MFP_OPTIONAL with a %NL80211_CMD_CONNECT request will
|
|
|
|
+ * let the driver (or the firmware) decide whether to use MFP or not.
|
|
*
|
|
*
|
|
* @NL80211_ATTR_STA_FLAGS2: Attribute containing a
|
|
* @NL80211_ATTR_STA_FLAGS2: Attribute containing a
|
|
* &struct nl80211_sta_flag_update.
|
|
* &struct nl80211_sta_flag_update.
|
|
@@ -3947,10 +3951,12 @@ enum nl80211_key_type {
|
|
* enum nl80211_mfp - Management frame protection state
|
|
* enum nl80211_mfp - Management frame protection state
|
|
* @NL80211_MFP_NO: Management frame protection not used
|
|
* @NL80211_MFP_NO: Management frame protection not used
|
|
* @NL80211_MFP_REQUIRED: Management frame protection required
|
|
* @NL80211_MFP_REQUIRED: Management frame protection required
|
|
|
|
+ * @NL80211_MFP_OPTIONAL: Management frame protection is optional
|
|
*/
|
|
*/
|
|
enum nl80211_mfp {
|
|
enum nl80211_mfp {
|
|
NL80211_MFP_NO,
|
|
NL80211_MFP_NO,
|
|
NL80211_MFP_REQUIRED,
|
|
NL80211_MFP_REQUIRED,
|
|
|
|
+ NL80211_MFP_OPTIONAL,
|
|
};
|
|
};
|
|
|
|
|
|
enum nl80211_wpa_versions {
|
|
enum nl80211_wpa_versions {
|
|
@@ -4923,6 +4929,8 @@ enum nl80211_feature_flags {
|
|
* the first probe request in each channel at rate of at least 5.5Mbps.
|
|
* the first probe request in each channel at rate of at least 5.5Mbps.
|
|
* @NL80211_EXT_FEATURE_OCE_PROBE_REQ_DEFERRAL_SUPPRESSION: Driver supports
|
|
* @NL80211_EXT_FEATURE_OCE_PROBE_REQ_DEFERRAL_SUPPRESSION: Driver supports
|
|
* probe request tx deferral and suppression
|
|
* probe request tx deferral and suppression
|
|
|
|
+ * @NL80211_EXT_FEATURE_MFP_OPTIONAL: Driver supports the %NL80211_MFP_OPTIONAL
|
|
|
|
+ * value in %NL80211_ATTR_USE_MFP.
|
|
*
|
|
*
|
|
* @NUM_NL80211_EXT_FEATURES: number of extended features.
|
|
* @NUM_NL80211_EXT_FEATURES: number of extended features.
|
|
* @MAX_NL80211_EXT_FEATURES: highest extended feature index.
|
|
* @MAX_NL80211_EXT_FEATURES: highest extended feature index.
|
|
@@ -4949,6 +4957,7 @@ enum nl80211_ext_feature_index {
|
|
NL80211_EXT_FEATURE_ACCEPT_BCAST_PROBE_RESP,
|
|
NL80211_EXT_FEATURE_ACCEPT_BCAST_PROBE_RESP,
|
|
NL80211_EXT_FEATURE_OCE_PROBE_REQ_HIGH_TX_RATE,
|
|
NL80211_EXT_FEATURE_OCE_PROBE_REQ_HIGH_TX_RATE,
|
|
NL80211_EXT_FEATURE_OCE_PROBE_REQ_DEFERRAL_SUPPRESSION,
|
|
NL80211_EXT_FEATURE_OCE_PROBE_REQ_DEFERRAL_SUPPRESSION,
|
|
|
|
+ NL80211_EXT_FEATURE_MFP_OPTIONAL,
|
|
|
|
|
|
/* add new features before the definition below */
|
|
/* add new features before the definition below */
|
|
NUM_NL80211_EXT_FEATURES,
|
|
NUM_NL80211_EXT_FEATURES,
|