commit 37369f1d5eb9b346aef232ac9dfa2cd681f14212
parent 2f8e9b9c531a787411901b579788ade2185b9fdb
Author: James Prestwood <james.prestwood@linux.intel.com>
Date: Tue, 30 Jul 2019 12:36:47 -0700
iwd: station: deprecate ManagementFrameProtection
management_frame_protection should now be used instead.
Diffstat:
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/src/station.c b/src/station.c
@@ -739,8 +739,15 @@ static int station_build_handshake_rsn(struct handshake_state *hs,
}
if (!l_settings_get_uint(settings, "General",
- "ManagementFrameProtection", &mfp_setting))
- mfp_setting = 1;
+ "management_frame_protection",
+ &mfp_setting)) {
+ if (!l_settings_get_uint(settings, "General",
+ "ManagementFrameProtection", &mfp_setting)) {
+ mfp_setting = 1;
+ } else
+ l_warn("ManagementFrameProtection option is deprecated "
+ "use 'management_frame_protection'");
+ }
if (mfp_setting > 2) {
l_error("Invalid MFP value, using default of 1");