mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-22 21:22:37 +01:00
netdev: unset ptk_installed flag for TK
When the TK is installed the 'ptk_installed' flag was never set to zero. For initial associations this was fine (already zero) but for rekeys the flag needs to be unset so try_handshake_complete knows if the key was installed. This is consistent with how gtk/igtk keys work as well.
This commit is contained in:
parent
c66e5ce8fc
commit
70e3a43475
@ -2024,6 +2024,8 @@ static void netdev_set_tk(struct handshake_state *hs, uint8_t key_index,
|
||||
const uint8_t *addr = netdev_choose_key_address(nhs);
|
||||
int err;
|
||||
|
||||
nhs->ptk_installed = false;
|
||||
|
||||
/*
|
||||
* WPA1 does the group handshake after the 4-way finishes so we can't
|
||||
* rely on the gtk/igtk being set immediately after the ptk. Since
|
||||
|
Loading…
Reference in New Issue
Block a user