[PATCH 04/15] wpa_supplicant: Set MFPR when a security profile is used
Andrei Otcheretianski
andrei.otcheretianski at intel.com
Tue Nov 24 00:53:00 PST 2026
From: Ilan Peer <ilan.peer at intel.com>
All security profiles require both MFPC and MFPR (IEEE P802.11bn/D2.0,
Table 9-bb18), but the station set MFPR in its RSNE only based on the
network configuration. Force MFPR=1 when a security profile is selected.
Signed-off-by: Ilan Peer <ilan.peer at intel.com>
---
wpa_supplicant/wpa_supplicant.c | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/wpa_supplicant/wpa_supplicant.c b/wpa_supplicant/wpa_supplicant.c
index 34950f6cf0..b2884a412d 100644
--- a/wpa_supplicant/wpa_supplicant.c
+++ b/wpa_supplicant/wpa_supplicant.c
@@ -2663,6 +2663,16 @@ int wpa_supplicant_set_suites(struct wpa_supplicant *wpa_s,
wpa_sm_set_param(wpa_s->wpa, WPA_PARAM_MFP,
MGMT_FRAME_PROTECTION_REQUIRED);
}
+
+ if (sel_sp &&
+ wpas_get_ssid_pmf(wpa_s, ssid) != MGMT_FRAME_PROTECTION_REQUIRED) {
+ wpa_dbg(wpa_s, MSG_DEBUG,
+ "RSN: Force MFPR=1 for security profile %d",
+ sel_sp->number);
+ wpa_sm_set_param(wpa_s->wpa, WPA_PARAM_MFP,
+ MGMT_FRAME_PROTECTION_REQUIRED);
+ }
+
#ifdef CONFIG_TESTING_OPTIONS
wpa_sm_set_param(wpa_s->wpa, WPA_PARAM_FT_RSNXE_USED,
wpa_s->ft_rsnxe_used);
--
2.56.1
More information about the Hostap
mailing list