aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/cfg.c
diff options
context:
space:
mode:
authorJouni Malinen <jouni.malinen@atheros.com>2009-05-06 15:09:37 -0400
committerJohn W. Linville <linville@tuxdriver.com>2009-05-11 15:23:54 -0400
commitdc6382ced07d6bad61d0b591fb12ab5da7ca632c (patch)
tree277d03c28c0756368d663d1b053ceaed196f666e /net/mac80211/cfg.c
parented9b58bc443a1210b5be1ded6421b17e015bf985 (diff)
nl80211 : Add support for configuring MFP
NL80211_CMD_ASSOCIATE request must be able to indicate whether management frame protection (IEEE 802.11w) is being used. mac80211 was able to use MFP in client mode only with WEXT, but the new NL80211_ATTR_USE_MFP attribute will allow this to be done with nl80211, too. Since we are currently using nl80211 for MFP only with drivers that use user space SME, only MFP disabled and required values are used. However, the NL80211_ATTR_USE_MFP attribute is an enum that can be extended with MFP optional in the future, if that is needed with some drivers (e.g., if the RSN IE is generated by the driver). Signed-off-by: Jouni Malinen <jouni.malinen@atheros.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/cfg.c')
-rw-r--r--net/mac80211/cfg.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c
index d0ca6da33ca9..4e627cf2b8c1 100644
--- a/net/mac80211/cfg.c
+++ b/net/mac80211/cfg.c
@@ -1253,6 +1253,14 @@ static int ieee80211_assoc(struct wiphy *wiphy, struct net_device *dev,
1253 if (ret) 1253 if (ret)
1254 return ret; 1254 return ret;
1255 1255
1256 if (req->use_mfp) {
1257 sdata->u.mgd.mfp = IEEE80211_MFP_REQUIRED;
1258 sdata->u.mgd.flags |= IEEE80211_STA_MFP_ENABLED;
1259 } else {
1260 sdata->u.mgd.mfp = IEEE80211_MFP_DISABLED;
1261 sdata->u.mgd.flags &= ~IEEE80211_STA_MFP_ENABLED;
1262 }
1263
1256 sdata->u.mgd.flags |= IEEE80211_STA_EXT_SME; 1264 sdata->u.mgd.flags |= IEEE80211_STA_EXT_SME;
1257 sdata->u.mgd.state = IEEE80211_STA_MLME_ASSOCIATE; 1265 sdata->u.mgd.state = IEEE80211_STA_MLME_ASSOCIATE;
1258 ieee80211_sta_req_auth(sdata); 1266 ieee80211_sta_req_auth(sdata);