diff mbox series

[4/9] handshake: add event for rekey success

Message ID 20230111201543.397692-4-prestwoj@gmail.com (mailing list archive)
State Accepted, archived
Headers show
Series [1/9] eapol: set secure on message 2/4 properly | expand

Checks

Context Check Description
tedd_an/pre-ci_am success Success
prestwoj/iwd-ci-gitlint success GitLint

Commit Message

James Prestwood Jan. 11, 2023, 8:15 p.m. UTC
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.
---
 src/handshake.h | 1 +
 src/station.c   | 1 +
 2 files changed, 2 insertions(+)

Comments

Denis Kenzior Jan. 11, 2023, 10:30 p.m. UTC | #1
Hi James,

On 1/11/23 14:15, James Prestwood wrote:
> 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.
> ---
>   src/handshake.h | 1 +
>   src/station.c   | 1 +
>   2 files changed, 2 insertions(+)
> 

Patches 4-7 applied, thanks.

Regards,
-Denis
diff mbox series

Patch

diff --git a/src/handshake.h b/src/handshake.h
index f2321634..863ffac7 100644
--- 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
index bad067c8..ad5ad724 100644
--- 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