diff options
author | Chaoli Zhou <quic_zchaoli@quicinc.com> | 2022-09-08 17:43:32 +0800 |
---|---|---|
committer | Andrej Shadura <andrewsh@debian.org> | 2023-12-10 16:17:49 +0100 |
commit | 5279ef3e2cf98483f139eaed888d3a77a5d4a061 (patch) | |
tree | 4e50902899f798783219709c0116253e8e9f2b58 | |
parent | 86a36c45b6967faa9940f5ed788eab719edf96c7 (diff) |
[PATCH] Override ieee80211w from pmf for AP mode in wpa_supplicant
Since NetworkManager doesn't support setting ieee80211w to
wpa_supplicant and only support pmf, so override ieee80211w from pmf for
AP mode if ieee80211w not configurated. Do not change behavior for the
P2P GO cases.
Signed-off-by: Chaoli Zhou <quic_zchaoli@quicinc.com>
Gbp-Pq: Topic upstream-fixes
Gbp-Pq: Name 0016-Override-ieee80211w-from-pmf-for-AP-mode-in-wpa_supp.patch
-rw-r--r-- | wpa_supplicant/ap.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/wpa_supplicant/ap.c b/wpa_supplicant/ap.c index 6a0a69e..9d0f703 100644 --- a/wpa_supplicant/ap.c +++ b/wpa_supplicant/ap.c @@ -701,8 +701,12 @@ static int wpa_supplicant_conf_ap(struct wpa_supplicant *wpa_s, bss->wpa_group_rekey = 86400; } - if (ssid->ieee80211w != MGMT_FRAME_PROTECTION_DEFAULT) + if (ssid->ieee80211w != MGMT_FRAME_PROTECTION_DEFAULT) { bss->ieee80211w = ssid->ieee80211w; + } else if (wpa_s->conf->pmf != MGMT_FRAME_PROTECTION_DEFAULT) { + if (ssid->mode == WPAS_MODE_AP) + bss->ieee80211w = wpa_s->conf->pmf; + } #ifdef CONFIG_OCV bss->ocv = ssid->ocv; |