Send actual MFP configuration when driver takes care of BSS selection
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>
This commit is contained in:
parent
edfca280cb
commit
32dcec9529
1 changed files with 2 additions and 1 deletions
|
@ -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) {
|
if (params.mgmt_frame_protection != NO_MGMT_FRAME_PROTECTION && bss) {
|
||||||
const u8 *rsn = wpa_bss_get_ie(bss, WLAN_EID_RSN);
|
const u8 *rsn = wpa_bss_get_ie(bss, WLAN_EID_RSN);
|
||||||
struct wpa_ie_data ie;
|
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 &
|
ie.capabilities &
|
||||||
(WPA_CAPABILITY_MFPC | WPA_CAPABILITY_MFPR)) {
|
(WPA_CAPABILITY_MFPC | WPA_CAPABILITY_MFPR)) {
|
||||||
wpa_dbg(wpa_s, MSG_DEBUG, "WPA: Selected AP supports "
|
wpa_dbg(wpa_s, MSG_DEBUG, "WPA: Selected AP supports "
|
||||||
|
|
Loading…
Reference in a new issue