commit c66e5ce8fc4dd79fa697fa88903c5c2acf100e4b
parent 17afcf84dc6cdfb062d91e6834901f463c0ef542
Author: James Prestwood <prestwoj@gmail.com>
Date: Wed, 11 Jan 2023 12:15:38 -0800
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.
Diffstat:
2 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/handshake.h b/src/handshake.h
@@ -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,
diff --git a/src/station.c b/src/station.c
@@ -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