aboutsummaryrefslogtreecommitdiffstats
path: root/net/wireless/nl80211.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/wireless/nl80211.c')
-rw-r--r--net/wireless/nl80211.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c
index df22048419e3..4976eac888a3 100644
--- a/net/wireless/nl80211.c
+++ b/net/wireless/nl80211.c
@@ -3239,11 +3239,11 @@ static int nl80211_associate(struct sk_buff *skb, struct genl_info *info)
3239 } 3239 }
3240 3240
3241 if (info->attrs[NL80211_ATTR_USE_MFP]) { 3241 if (info->attrs[NL80211_ATTR_USE_MFP]) {
3242 enum nl80211_mfp use_mfp = 3242 enum nl80211_mfp mfp =
3243 nla_get_u32(info->attrs[NL80211_ATTR_USE_MFP]); 3243 nla_get_u32(info->attrs[NL80211_ATTR_USE_MFP]);
3244 if (use_mfp == NL80211_MFP_REQUIRED) 3244 if (mfp == NL80211_MFP_REQUIRED)
3245 use_mfp = true; 3245 use_mfp = true;
3246 else if (use_mfp != NL80211_MFP_NO) { 3246 else if (mfp != NL80211_MFP_NO) {
3247 err = -EINVAL; 3247 err = -EINVAL;
3248 goto out; 3248 goto out;
3249 } 3249 }