mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-21 03:32:42 +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:
parent
221a8f9218
commit
2cd36be5ff
@ -1314,9 +1314,9 @@ static struct l_genl_msg *netdev_build_cmd_connect(struct netdev *netdev,
|
|||||||
4, &nl_cipher);
|
4, &nl_cipher);
|
||||||
|
|
||||||
if (hs->mfp) {
|
if (hs->mfp) {
|
||||||
bool mfp = true;
|
uint32_t use_mfp = NL80211_MFP_REQUIRED;
|
||||||
l_genl_msg_append_attr(msg, NL80211_ATTR_USE_MFP,
|
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);
|
nl_akm = ie_rsn_akm_suite_to_nl80211(hs->akm_suite);
|
||||||
|
Loading…
Reference in New Issue
Block a user