From 7444e96deb495056f0c27c6aaee14753ae66a458 Mon Sep 17 00:00:00 2001 From: Ze Gan Date: Tue, 26 Oct 2021 17:19:55 +0800 Subject: [PATCH] [macsecmgr]: Add rekey period in macsec mgr (#1958) * Add rekey period in macsec mgr Signed-off-by: Ze Gan * rename mka rekey period Signed-off-by: Ze Gan --- cfgmgr/macsecmgr.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/cfgmgr/macsecmgr.cpp b/cfgmgr/macsecmgr.cpp index 012741aa8cb2..bcd693d427c4 100644 --- a/cfgmgr/macsecmgr.cpp +++ b/cfgmgr/macsecmgr.cpp @@ -712,6 +712,16 @@ bool MACsecMgr::configureMACsec( "mka_priority", profile.priority); + if (profile.rekey_period) + { + wpa_cli_exec_and_check( + session.sock, + port_name, + network_id, + "mka_rekey_period", + profile.rekey_period); + } + wpa_cli_exec_and_check( session.sock, port_name,