3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-30 06:02:39 +01:00

netdev: Fixup USE_MFP atribute usage

The kernel parses NL80211_ATTR_USE_MFP to mean an enumeration
nl80211_mfp.  So instead of using a boolean, we should be using the
value NL80211_MFP_REQUIRED.
This commit is contained in:
Denis Kenzior 2016-12-13 09:26:42 -06:00
parent 221a8f9218
commit 2cd36be5ff

View File

@ -1314,9 +1314,9 @@ static struct l_genl_msg *netdev_build_cmd_connect(struct netdev *netdev,
4, &nl_cipher);
if (hs->mfp) {
bool mfp = true;
uint32_t use_mfp = NL80211_MFP_REQUIRED;
l_genl_msg_append_attr(msg, NL80211_ATTR_USE_MFP,
4, &mfp);
4, &use_mfp);
}
nl_akm = ie_rsn_akm_suite_to_nl80211(hs->akm_suite);