iwd: station: deprecate ManagementFrameProtection

management_frame_protection should now be used instead.
This commit is contained in:
James Prestwood 2019-07-30 12:36:47 -07:00 committed by Denis Kenzior
parent 2f8e9b9c53
commit 37369f1d5e
1 changed files with 9 additions and 2 deletions

View File

@ -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");