From c07addc4bf73ea17e898363299e5d6c7d2167b1a Mon Sep 17 00:00:00 2001 From: Rahul Rahul Date: Thu, 8 Dec 2016 08:26:16 -0600 Subject: [PATCH] netdev: set NL80211_ATTR_USE_MFP if mfp is enabled --- src/netdev.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/netdev.c b/src/netdev.c index 87106dee..a74f4d21 100644 --- a/src/netdev.c +++ b/src/netdev.c @@ -1313,6 +1313,12 @@ static struct l_genl_msg *netdev_build_cmd_connect(struct netdev *netdev, l_genl_msg_append_attr(msg, NL80211_ATTR_CIPHER_SUITE_GROUP, 4, &nl_cipher); + if (hs->mfp) { + bool mfp = true; + l_genl_msg_append_attr(msg, NL80211_ATTR_USE_MFP, + 4, &mfp); + } + nl_akm = ie_rsn_akm_suite_to_nl80211(hs->akm_suite); if (nl_akm) l_genl_msg_append_attr(msg, NL80211_ATTR_AKM_SUITES,