3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-22 23:09:34 +01:00

netdev: Set Supplicant RSNXE to handshake_state

This commit is contained in:
Denis Kenzior 2021-07-08 22:45:13 -05:00
parent 636c6eb645
commit f7b5ebd097

View File

@ -1988,6 +1988,7 @@ static void parse_request_ies(struct netdev *netdev, const uint8_t *ies,
{
struct ie_tlv_iter iter;
const void *data;
const uint8_t *rsnxe = NULL;
/*
* The driver may have modified the IEs we passed to CMD_CONNECT
@ -2004,6 +2005,10 @@ static void parse_request_ies(struct netdev *netdev, const uint8_t *ies,
handshake_state_set_supplicant_ie(netdev->handshake,
data - 2);
break;
case IE_TYPE_RSNX:
if (!rsnxe)
rsnxe = data - 2;
break;
case IE_TYPE_VENDOR_SPECIFIC:
if (!is_ie_wpa_ie(data, ie_tlv_iter_get_length(&iter)))
break;
@ -2016,6 +2021,9 @@ static void parse_request_ies(struct netdev *netdev, const uint8_t *ies,
break;
}
}
/* RSNXE element might be omitted when FTing */
handshake_state_set_supplicant_rsnxe(netdev->handshake, rsnxe);
}
static void netdev_driver_connected(struct netdev *netdev)