3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-25 17:59:25 +01:00

netdev: set TK index to zero for FT

Since FT re-uses the handshake the active TK index may be set to a
non-zero value.
This commit is contained in:
James Prestwood 2021-10-08 11:50:05 -07:00 committed by Denis Kenzior
parent 3d736d4c20
commit a205afe2de

View File

@ -4405,6 +4405,7 @@ static void prepare_ft(struct netdev *netdev, const struct scan_bss *target_bss)
target_bss->rsne);
memcpy(netdev->handshake->mde + 2, target_bss->mde, 3);
netdev->handshake->active_tk_index = 0;
netdev->associated = false;
netdev->operational = false;
netdev->in_ft = true;