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

handshake: add event for rekey success

Rekeys for station mode don't need to know when complete since
there is nothing to do once done. AP mode on the other hand needs
to know if the rekey was successful in order to reset/set the next
rekey timer.
This commit is contained in:
James Prestwood 2023-01-11 12:15:38 -08:00 committed by Denis Kenzior
parent 17afcf84dc
commit c66e5ce8fc
2 changed files with 2 additions and 0 deletions

View File

@ -60,6 +60,7 @@ enum handshake_event {
HANDSHAKE_EVENT_EAP_NOTIFY,
HANDSHAKE_EVENT_TRANSITION_DISABLE,
HANDSHAKE_EVENT_P2P_IP_REQUEST,
HANDSHAKE_EVENT_REKEY_COMPLETE,
};
typedef void (*handshake_event_func_t)(struct handshake_state *hs,

View File

@ -1015,6 +1015,7 @@ static void station_handshake_event(struct handshake_state *hs,
case HANDSHAKE_EVENT_SETTING_KEYS_FAILED:
case HANDSHAKE_EVENT_EAP_NOTIFY:
case HANDSHAKE_EVENT_P2P_IP_REQUEST:
case HANDSHAKE_EVENT_REKEY_COMPLETE:
/*
* currently we don't care about any other events. The
* netdev_connect_cb will notify us when the connection is