blob: 25a401def95b4615468d212b04b56986289ccd62 [file] [log] [blame]
developercefd1d02023-07-13 12:12:26 +08001From d9ddfb581c40edd45b7c1a30bfc2889ddb2102a4 Mon Sep 17 00:00:00 2001
developer3a044d22023-06-13 16:03:57 +08002From: mtk23510 <rudra.shahi@mediatek.com>
3Date: Fri, 26 May 2023 14:52:35 +0800
developercefd1d02023-07-13 12:12:26 +08004Subject: [PATCH 1001/1001] hostapd: mtk: Add support for gtk rekeying in
5 hostapd cli
developer3a044d22023-06-13 16:03:57 +08006
7Signed-off-by: mtk23510 <rudra.shahi@mediatek.com>
8---
9 hostapd/hostapd_cli.c | 13 +++++++++++++
10 1 file changed, 13 insertions(+)
11
12diff --git a/hostapd/hostapd_cli.c b/hostapd/hostapd_cli.c
developercefd1d02023-07-13 12:12:26 +080013index 6d763f327..363a6bb93 100644
developer3a044d22023-06-13 16:03:57 +080014--- a/hostapd/hostapd_cli.c
15+++ b/hostapd/hostapd_cli.c
16@@ -1256,6 +1256,15 @@ static int hostapd_cli_cmd_update_beacon(struct wpa_ctrl *ctrl, int argc,
17 }
18
19
20+#ifdef CONFIG_TESTING_OPTIONS
21+static int hostapd_cli_cmd_rekey_gtk(struct wpa_ctrl *ctrl, int argc,
22+ char *argv[])
23+{
24+ return wpa_ctrl_command(ctrl, "REKEY_GTK");
25+}
26+#endif
27+
28+
29 static int hostapd_cli_cmd_vendor(struct wpa_ctrl *ctrl, int argc, char *argv[])
30 {
31 char cmd[256];
32@@ -1761,6 +1770,10 @@ static const struct hostapd_cli_cmd hostapd_cli_commands[] = {
33 "= disable hostapd on current interface" },
34 { "update_beacon", hostapd_cli_cmd_update_beacon, NULL,
35 "= update Beacon frame contents\n"},
36+#ifdef CONFIG_TESTING_OPTIONS
37+ { "rekey_gtk", hostapd_cli_cmd_rekey_gtk, NULL,
38+ "= rekey gtk\n"},
39+#endif
40 { "erp_flush", hostapd_cli_cmd_erp_flush, NULL,
41 "= drop all ERP keys"},
42 { "log_level", hostapd_cli_cmd_log_level, NULL,
43--
developercefd1d02023-07-13 12:12:26 +0800442.39.2
developer3a044d22023-06-13 16:03:57 +080045