]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Send actual MFP configuration when driver takes care of BSS selection
authorVeerendranath Jakkam <quic_vjakkam@quicinc.com>
Mon, 28 Aug 2023 18:34:45 +0000 (00:04 +0530)
committerJouni Malinen <j@w1.fi>
Wed, 30 Aug 2023 12:25:51 +0000 (15:25 +0300)
Send the actual MFP configuration value to the driver instead of
overriding it with MFP required based on the wpa_supplicant selected BSS
when the driver takes care of BSS selection.

This is needed to allow the driver to know whether it can select an MFP
disabled BSS.

Signed-off-by: Veerendranath Jakkam <quic_vjakkam@quicinc.com>
wpa_supplicant/wpa_supplicant.c

index e712c8154594d8163dce43b405541049f821af8e..94f549b6e7ae7fe311b3983506fa806e0fdd7500 100644 (file)
@@ -4292,7 +4292,8 @@ static void wpas_start_assoc_cb(struct wpa_radio_work *work, int deinit)
        if (params.mgmt_frame_protection != NO_MGMT_FRAME_PROTECTION && bss) {
                const u8 *rsn = wpa_bss_get_ie(bss, WLAN_EID_RSN);
                struct wpa_ie_data ie;
-               if (rsn && wpa_parse_wpa_ie(rsn, 2 + rsn[1], &ie) == 0 &&
+               if (!wpas_driver_bss_selection(wpa_s) && rsn &&
+                   wpa_parse_wpa_ie(rsn, 2 + rsn[1], &ie) == 0 &&
                    ie.capabilities &
                    (WPA_CAPABILITY_MFPC | WPA_CAPABILITY_MFPR)) {
                        wpa_dbg(wpa_s, MSG_DEBUG, "WPA: Selected AP supports "