3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-28 21:19:24 +01:00

ft: fix ft_associate to verify if authentication succeeded

ft_associate was only checking the presence of the info structure,
not if it actually succeeded to authenticate.
This commit is contained in:
James Prestwood 2022-09-27 16:15:49 -07:00 committed by Denis Kenzior
parent ae0fa6207e
commit 8d224624fc

View File

@ -1055,7 +1055,7 @@ int ft_associate(uint32_t ifindex, const uint8_t *addr)
* a different BSS.
*/
info = ft_info_find(ifindex, addr);
if (!info)
if (!info || !info->parsed)
return -ENOENT;
ft_prepare_handshake(info, hs);