From: Chenming Huang Date: Tue, 5 Dec 2023 07:40:38 +0000 (+0530) Subject: Add "stop_ap" command for hostapd_cli X-Git-Tag: hostap_2_11~354 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a01972a065cc57c14838d7838e611f72984a176a;p=thirdparty%2Fhostap.git Add "stop_ap" command for hostapd_cli Signed-off-by: Chenming Huang --- diff --git a/hostapd/hostapd_cli.c b/hostapd/hostapd_cli.c index 8fb6119c8..118991b91 100644 --- a/hostapd/hostapd_cli.c +++ b/hostapd/hostapd_cli.c @@ -1270,6 +1270,13 @@ static int hostapd_cli_cmd_update_beacon(struct wpa_ctrl *ctrl, int argc, } +static int hostapd_cli_cmd_stop_ap(struct wpa_ctrl *ctrl, int argc, + char *argv[]) +{ + return wpa_ctrl_command(ctrl, "STOP_AP"); +} + + static int hostapd_cli_cmd_vendor(struct wpa_ctrl *ctrl, int argc, char *argv[]) { char cmd[256]; @@ -1759,6 +1766,8 @@ static const struct hostapd_cli_cmd hostapd_cli_commands[] = { "= disable AP MLD to which the interface is affiliated" }, { "update_beacon", hostapd_cli_cmd_update_beacon, NULL, "= update Beacon frame contents\n"}, + { "stop_ap", hostapd_cli_cmd_stop_ap, NULL, + "= stop AP\n"}, { "erp_flush", hostapd_cli_cmd_erp_flush, NULL, "= drop all ERP keys"}, { "log_level", hostapd_cli_cmd_log_level, NULL,