mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-22 21:22:37 +01:00
netdev: support HANDSHAKE_EVENT_REKEY_COMPLETE
In try_handshake_complete() we return early if all the keys had been installed before (initial associations). For rekeys we can now emit the REKEY_COMPLETE event which lets AP mode reset the rekey timer for that station.
This commit is contained in:
parent
70e3a43475
commit
b373d1fa69
@ -1469,8 +1469,13 @@ static void netdev_setting_keys_failed(struct netdev_handshake_state *nhs,
|
||||
|
||||
static void try_handshake_complete(struct netdev_handshake_state *nhs)
|
||||
{
|
||||
if (nhs->ptk_installed && nhs->gtk_installed && nhs->igtk_installed &&
|
||||
!nhs->complete) {
|
||||
if (nhs->ptk_installed && nhs->gtk_installed && nhs->igtk_installed) {
|
||||
if (nhs->complete) {
|
||||
handshake_event(&nhs->super,
|
||||
HANDSHAKE_EVENT_REKEY_COMPLETE);
|
||||
return;
|
||||
}
|
||||
|
||||
nhs->complete = true;
|
||||
|
||||
if (handshake_event(&nhs->super, HANDSHAKE_EVENT_COMPLETE))
|
||||
|
Loading…
Reference in New Issue
Block a user