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
1 changed files with 1 additions and 1 deletions

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);