developer | cefd1d0 | 2023-07-13 12:12:26 +0800 | [diff] [blame] | 1 | From d9ddfb581c40edd45b7c1a30bfc2889ddb2102a4 Mon Sep 17 00:00:00 2001 |
developer | 3a044d2 | 2023-06-13 16:03:57 +0800 | [diff] [blame] | 2 | From: mtk23510 <rudra.shahi@mediatek.com> |
| 3 | Date: Fri, 26 May 2023 14:52:35 +0800 |
developer | cefd1d0 | 2023-07-13 12:12:26 +0800 | [diff] [blame] | 4 | Subject: [PATCH 1001/1001] hostapd: mtk: Add support for gtk rekeying in |
| 5 | hostapd cli |
developer | 3a044d2 | 2023-06-13 16:03:57 +0800 | [diff] [blame] | 6 | |
| 7 | Signed-off-by: mtk23510 <rudra.shahi@mediatek.com> |
| 8 | --- |
| 9 | hostapd/hostapd_cli.c | 13 +++++++++++++ |
| 10 | 1 file changed, 13 insertions(+) |
| 11 | |
| 12 | diff --git a/hostapd/hostapd_cli.c b/hostapd/hostapd_cli.c |
developer | cefd1d0 | 2023-07-13 12:12:26 +0800 | [diff] [blame] | 13 | index 6d763f327..363a6bb93 100644 |
developer | 3a044d2 | 2023-06-13 16:03:57 +0800 | [diff] [blame] | 14 | --- 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 | -- |
developer | cefd1d0 | 2023-07-13 12:12:26 +0800 | [diff] [blame] | 44 | 2.39.2 |
developer | 3a044d2 | 2023-06-13 16:03:57 +0800 | [diff] [blame] | 45 | |