nl80211: add an option to allow MFP without requiring it
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Fri, 18 Aug 2017 12:31:41 +0000 (15:31 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 21 Sep 2017 09:42:03 +0000 (11:42 +0200)
commit65026002d69de006e273749bb799d3b01b757eb0
tree82499a140005529d29c7e26741cd3b117c7a0d62
parenta6bcda44843c6dfced0fb973e2607c2a98addfa9
nl80211: add an option to allow MFP without requiring it

The user space can now allow the kernel to associate to an AP that
requires MFP or that doesn't have MFP enabled in the same
NL80211_CMD_CONNECT command, by using a new NL80211_MFP_OPTIONAL flag.
The driver / firmware will decide whether to use it or not.

Include a feature bit to advertise support for NL80211_MFP_OPTIONAL.
This allows new user space to run on old kernels and know that it
cannot use the new attribute if it isn't supported.

Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
include/uapi/linux/nl80211.h
net/wireless/nl80211.c