Skip to content
This repository has been archived by the owner on Nov 14, 2024. It is now read-only.

[nrf noup] Conditionally compile wpa commands help strings. #161

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
368 changes: 368 additions & 0 deletions wpa_supplicant/wpa_cli_cmds.c
Original file line number Diff line number Diff line change
Expand Up @@ -2955,6 +2955,7 @@ struct wpa_cli_cmd {
const char *usage;
};

#ifdef CONFIG_WPA_CLI
static const struct wpa_cli_cmd wpa_cli_commands[] = {
{ "status", wpa_cli_cmd_status, NULL,
cli_cmd_flag_none,
Expand Down Expand Up @@ -3646,6 +3647,373 @@ static const struct wpa_cli_cmd wpa_cli_commands[] = {
#endif /* !CONFIG_ZEPHYR || (CONFIG_ZEPHYR && CONFIG_WPA_CLI)*/
{ NULL, NULL, NULL, cli_cmd_flag_none, NULL }
};
#else
/* Compile commands without help string to spare some bytes */
static const struct wpa_cli_cmd wpa_cli_commands[] = {
{"status", wpa_cli_cmd_status, NULL, cli_cmd_flag_none, NULL},
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure what will be easier to maintain in future.. but alternatively you can do:

#ifdef CONFIG_WPA_CLI
#define HELP_MSG(msg) (msg)
#else
#define HELP_MSG(msg) NULL
#endif

And later:

{ "status", wpa_cli_cmd_status, NULL,
	  cli_cmd_flag_none,
	  HELP_MSG("[verbose] = get current WPA/EAPOL/EAP status") },

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wanted to keep the original array not changed and just append the stripped one for possible further refactoring (or moving it to e.g. separate file). But personally I like Łukasz's idea much better. @krish2718 please decide what would be easier for you to maintain and I will act accordingly :)

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I also prefer @LuDuda's suggestion but I would recommend going with this presently in the interest of time (also @krish2718 is out till 13th). We in the Wi-Fi driver team can take a relook at this post 2.6.0 and bring it in as an enhancement.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, using a macro to compile out RO strings is good. And this commands is nrf noup anyway, as I didn't want to duplicate the commands, so, moved to a new file wpa_cli_cmds.c which doesn't exist in the opensource, so, this is fine.

{"set_network", wpa_cli_cmd_set_network, wpa_cli_complete_network,
cli_cmd_flag_sensitive, NULL},
{"get_network", wpa_cli_cmd_get_network, wpa_cli_complete_network,
cli_cmd_flag_none, NULL},
{"list_networks", wpa_cli_cmd_list_networks, NULL, cli_cmd_flag_none, NULL},
{"select_network", wpa_cli_cmd_select_network, wpa_cli_complete_network_id,
cli_cmd_flag_none, NULL},
{"enable_network", wpa_cli_cmd_enable_network, wpa_cli_complete_network_id,
cli_cmd_flag_none, NULL},
{"disable_network", wpa_cli_cmd_disable_network,
wpa_cli_complete_network_id, cli_cmd_flag_none, NULL},
{"add_network", wpa_cli_cmd_add_network, NULL, cli_cmd_flag_none, NULL},
{"remove_network", wpa_cli_cmd_remove_network, wpa_cli_complete_network_id,
cli_cmd_flag_none, NULL},
{"disconnect", wpa_cli_cmd_disconnect, NULL, cli_cmd_flag_none, NULL},
{"interface_add", wpa_cli_cmd_interface_add, NULL, cli_cmd_flag_none, NULL},
{"interface_remove", wpa_cli_cmd_interface_remove, NULL, cli_cmd_flag_none,
NULL},
{"interface_list", wpa_cli_cmd_interface_list, NULL, cli_cmd_flag_none,
NULL},
#ifdef CONFIG_AP
{"sta", wpa_cli_cmd_sta, wpa_cli_complete_sta, cli_cmd_flag_none, NULL},
{"all_sta", wpa_cli_cmd_all_sta, NULL, cli_cmd_flag_none, NULL},
{"list_sta", wpa_cli_cmd_list_sta, NULL, cli_cmd_flag_none, NULL},
{"deauthenticate", wpa_cli_cmd_deauthenticate,
wpa_cli_complete_deauthenticate, cli_cmd_flag_none, NULL},
{"disassociate", wpa_cli_cmd_disassociate, wpa_cli_complete_disassociate,
cli_cmd_flag_none, NULL},
{"chan_switch", wpa_cli_cmd_chanswitch, NULL, cli_cmd_flag_none, NULL},
{"update_beacon", wpa_cli_cmd_update_beacon, NULL, cli_cmd_flag_none, NULL},
#endif /* CONFIG_AP */
#if !defined(CONFIG_ZEPHYR) || \
(defined(CONFIG_ZEPHYR) && defined(CONFIG_WPA_CLI))
{"ifname", wpa_cli_cmd_ifname, NULL, cli_cmd_flag_none, NULL},
{"ping", wpa_cli_cmd_ping, NULL, cli_cmd_flag_none, NULL},
{"relog", wpa_cli_cmd_relog, NULL, cli_cmd_flag_none, NULL},
{"note", wpa_cli_cmd_note, NULL, cli_cmd_flag_none, NULL},
{"mib", wpa_cli_cmd_mib, NULL, cli_cmd_flag_none, NULL},
{"set", wpa_cli_cmd_set, wpa_cli_complete_set, cli_cmd_flag_none, NULL},
{"dump", wpa_cli_cmd_dump, NULL, cli_cmd_flag_none, NULL},
{"get", wpa_cli_cmd_get, wpa_cli_complete_get, cli_cmd_flag_none, NULL},
{"driver_flags", wpa_cli_cmd_driver_flags, NULL, cli_cmd_flag_none, NULL},
{"logon", wpa_cli_cmd_logon, NULL, cli_cmd_flag_none, NULL},
{"logoff", wpa_cli_cmd_logoff, NULL, cli_cmd_flag_none, NULL},
{"pmksa", wpa_cli_cmd_pmksa, NULL, cli_cmd_flag_none, NULL},
{"pmksa_flush", wpa_cli_cmd_pmksa_flush, NULL, cli_cmd_flag_none, NULL},
#ifdef CONFIG_PMKSA_CACHE_EXTERNAL
{"pmksa_get", wpa_cli_cmd_pmksa_get, NULL, cli_cmd_flag_none, NULL},
{"pmksa_add", wpa_cli_cmd_pmksa_add, NULL, cli_cmd_flag_sensitive, NULL},
#ifdef CONFIG_MESH
{"mesh_pmksa_get", wpa_cli_mesh_cmd_pmksa_get, NULL, cli_cmd_flag_none,
NULL},
{"mesh_pmksa_add", wpa_cli_mesh_cmd_pmksa_add, NULL, cli_cmd_flag_sensitive,
NULL},
#endif /* CONFIG_MESH */
#endif /* CONFIG_PMKSA_CACHE_EXTERNAL */
{"reassociate", wpa_cli_cmd_reassociate, NULL, cli_cmd_flag_none, NULL},
{"reattach", wpa_cli_cmd_reattach, NULL, cli_cmd_flag_none, NULL},
{"preauthenticate", wpa_cli_cmd_preauthenticate, wpa_cli_complete_bss,
cli_cmd_flag_none, NULL},
{"identity", wpa_cli_cmd_identity, wpa_cli_complete_network_id,
cli_cmd_flag_none, NULL},
{"password", wpa_cli_cmd_password, wpa_cli_complete_network_id,
cli_cmd_flag_sensitive, NULL},
{"new_password", wpa_cli_cmd_new_password, wpa_cli_complete_network_id,
cli_cmd_flag_sensitive, NULL},
{"pin", wpa_cli_cmd_pin, wpa_cli_complete_network_id,
cli_cmd_flag_sensitive, NULL},
{"otp", wpa_cli_cmd_otp, wpa_cli_complete_network_id,
cli_cmd_flag_sensitive, NULL},
{"psk_passphrase", wpa_cli_cmd_psk_passphrase, wpa_cli_complete_network_id,
cli_cmd_flag_sensitive, NULL},
{"passphrase", wpa_cli_cmd_passphrase, wpa_cli_complete_network_id,
cli_cmd_flag_sensitive, NULL},
{"sim", wpa_cli_cmd_sim, wpa_cli_complete_network_id,
cli_cmd_flag_sensitive, NULL},
{"bssid", wpa_cli_cmd_bssid, wpa_cli_complete_network_id, cli_cmd_flag_none,
NULL},
{"bssid_ignore", wpa_cli_cmd_bssid_ignore, wpa_cli_complete_bss,
cli_cmd_flag_none, NULL},
{"blacklist", /* deprecated alias for bssid_ignore */
wpa_cli_cmd_bssid_ignore, wpa_cli_complete_bss, cli_cmd_flag_none, NULL},
{"log_level", wpa_cli_cmd_log_level, NULL, cli_cmd_flag_none, NULL},
{"dup_network", wpa_cli_cmd_dup_network, wpa_cli_complete_dup_network,
cli_cmd_flag_none, NULL},
{"list_creds", wpa_cli_cmd_list_creds, NULL, cli_cmd_flag_none, NULL},
{"add_cred", wpa_cli_cmd_add_cred, NULL, cli_cmd_flag_none, NULL},
{"remove_cred", wpa_cli_cmd_remove_cred, NULL, cli_cmd_flag_none, NULL},
{"set_cred", wpa_cli_cmd_set_cred, wpa_cli_complete_cred,
cli_cmd_flag_sensitive, NULL},
{"get_cred", wpa_cli_cmd_get_cred, wpa_cli_complete_cred, cli_cmd_flag_none,
NULL},
{"save_config", wpa_cli_cmd_save_config, NULL, cli_cmd_flag_none, NULL},
{"reconnect", wpa_cli_cmd_reconnect, NULL, cli_cmd_flag_none, NULL},
{"scan", wpa_cli_cmd_scan, NULL, cli_cmd_flag_none, NULL},
{"scan_results", wpa_cli_cmd_scan_results, NULL, cli_cmd_flag_none, NULL},
{"abort_scan", wpa_cli_cmd_abort_scan, NULL, cli_cmd_flag_none, NULL},
{"bss", wpa_cli_cmd_bss, wpa_cli_complete_bss, cli_cmd_flag_none, NULL},
{"get_capability", wpa_cli_cmd_get_capability,
wpa_cli_complete_get_capability, cli_cmd_flag_none, NULL},
{"reconfigure", wpa_cli_cmd_reconfigure, NULL, cli_cmd_flag_none, NULL},
{"terminate", wpa_cli_cmd_terminate, NULL, cli_cmd_flag_none, NULL},
{"ap_scan", wpa_cli_cmd_ap_scan, NULL, cli_cmd_flag_none, NULL},
{"scan_interval", wpa_cli_cmd_scan_interval, NULL, cli_cmd_flag_none, NULL},
{"bss_expire_age", wpa_cli_cmd_bss_expire_age, NULL, cli_cmd_flag_none,
NULL},
{"bss_expire_count", wpa_cli_cmd_bss_expire_count, NULL, cli_cmd_flag_none,
NULL},
{"bss_flush", wpa_cli_cmd_bss_flush, NULL, cli_cmd_flag_none, NULL},
{"ft_ds", wpa_cli_cmd_ft_ds, wpa_cli_complete_bss, cli_cmd_flag_none, NULL},
{"wps_pbc", wpa_cli_cmd_wps_pbc, wpa_cli_complete_bss, cli_cmd_flag_none,
NULL},
{"wps_pin", wpa_cli_cmd_wps_pin, wpa_cli_complete_bss,
cli_cmd_flag_sensitive, NULL},
{"wps_check_pin", wpa_cli_cmd_wps_check_pin, NULL, cli_cmd_flag_sensitive,
NULL},
{"wps_cancel", wpa_cli_cmd_wps_cancel, NULL, cli_cmd_flag_none, NULL},
#ifdef CONFIG_WPS_NFC
{"wps_nfc", wpa_cli_cmd_wps_nfc, wpa_cli_complete_bss, cli_cmd_flag_none,
NULL},
{"wps_nfc_config_token", wpa_cli_cmd_wps_nfc_config_token, NULL,
cli_cmd_flag_none, NULL},
{"wps_nfc_token", wpa_cli_cmd_wps_nfc_token, NULL, cli_cmd_flag_none, NULL},
{"wps_nfc_tag_read", wpa_cli_cmd_wps_nfc_tag_read, NULL,
cli_cmd_flag_sensitive, NULL},
{"nfc_get_handover_req", wpa_cli_cmd_nfc_get_handover_req, NULL,
cli_cmd_flag_none, NULL},
{"nfc_get_handover_sel", wpa_cli_cmd_nfc_get_handover_sel, NULL,
cli_cmd_flag_none, NULL},
{"nfc_report_handover", wpa_cli_cmd_nfc_report_handover, NULL,
cli_cmd_flag_none, NULL},
#endif /* CONFIG_WPS_NFC */
{"wps_reg", wpa_cli_cmd_wps_reg, wpa_cli_complete_bss,
cli_cmd_flag_sensitive, NULL},
{"wps_ap_pin", wpa_cli_cmd_wps_ap_pin, NULL, cli_cmd_flag_sensitive, NULL},
{"wps_er_start", wpa_cli_cmd_wps_er_start, NULL, cli_cmd_flag_none, NULL},
{"wps_er_stop", wpa_cli_cmd_wps_er_stop, NULL, cli_cmd_flag_none, NULL},
{"wps_er_pin", wpa_cli_cmd_wps_er_pin, NULL, cli_cmd_flag_sensitive, NULL},
{"wps_er_pbc", wpa_cli_cmd_wps_er_pbc, NULL, cli_cmd_flag_none, NULL},
{"wps_er_learn", wpa_cli_cmd_wps_er_learn, NULL, cli_cmd_flag_sensitive,
NULL},
{"wps_er_set_config", wpa_cli_cmd_wps_er_set_config, NULL,
cli_cmd_flag_none, NULL},
{"wps_er_config", wpa_cli_cmd_wps_er_config, NULL, cli_cmd_flag_sensitive,
NULL},
#ifdef CONFIG_WPS_NFC
{"wps_er_nfc_config_token", wpa_cli_cmd_wps_er_nfc_config_token, NULL,
cli_cmd_flag_none, NULL},
#endif /* CONFIG_WPS_NFC */
{"ibss_rsn", wpa_cli_cmd_ibss_rsn, NULL, cli_cmd_flag_none, NULL},
{"suspend", wpa_cli_cmd_suspend, NULL, cli_cmd_flag_none, NULL},
{"resume", wpa_cli_cmd_resume, NULL, cli_cmd_flag_none, NULL},
#ifdef CONFIG_TESTING_OPTIONS
{"drop_sa", wpa_cli_cmd_drop_sa, NULL, cli_cmd_flag_none, NULL},
#endif /* CONFIG_TESTING_OPTIONS */
{"roam", wpa_cli_cmd_roam, wpa_cli_complete_bss, cli_cmd_flag_none, NULL},
#ifdef CONFIG_MESH
{"mesh_interface_add", wpa_cli_cmd_mesh_interface_add, NULL,
cli_cmd_flag_none, NULL},
{"mesh_group_add", wpa_cli_cmd_mesh_group_add, NULL, cli_cmd_flag_none,
NULL},
{"mesh_group_remove", wpa_cli_cmd_mesh_group_remove, NULL,
cli_cmd_flag_none, NULL},
{"mesh_peer_remove", wpa_cli_cmd_mesh_peer_remove, NULL, cli_cmd_flag_none,
NULL},
{"mesh_peer_add", wpa_cli_cmd_mesh_peer_add, NULL, cli_cmd_flag_none, NULL},
{"mesh_link_probe", wpa_cli_cmd_mesh_link_probe, NULL, cli_cmd_flag_none,
NULL},
#endif /* CONFIG_MESH */
#ifdef CONFIG_P2P
{"p2p_find", wpa_cli_cmd_p2p_find, wpa_cli_complete_p2p_find,
cli_cmd_flag_none, NULL},
{"p2p_stop_find", wpa_cli_cmd_p2p_stop_find, NULL, cli_cmd_flag_none, NULL},
{"p2p_asp_provision", wpa_cli_cmd_p2p_asp_provision, NULL,
cli_cmd_flag_none, NULL},
{"p2p_asp_provision_resp", wpa_cli_cmd_p2p_asp_provision_resp, NULL,
cli_cmd_flag_none, NULL},
{"p2p_connect", wpa_cli_cmd_p2p_connect, wpa_cli_complete_p2p_connect,
cli_cmd_flag_none, NULL},
{"p2p_listen", wpa_cli_cmd_p2p_listen, NULL, cli_cmd_flag_none, NULL},
{"p2p_group_remove", wpa_cli_cmd_p2p_group_remove,
wpa_cli_complete_p2p_group_remove, cli_cmd_flag_none, NULL},
{"p2p_group_add", wpa_cli_cmd_p2p_group_add, NULL, cli_cmd_flag_none, NULL},
{"p2p_group_member", wpa_cli_cmd_p2p_group_member, NULL, cli_cmd_flag_none,
NULL},
{"p2p_prov_disc", wpa_cli_cmd_p2p_prov_disc, wpa_cli_complete_p2p_peer,
cli_cmd_flag_none, NULL},
{"p2p_get_passphrase", wpa_cli_cmd_p2p_get_passphrase, NULL,
cli_cmd_flag_none, NULL},
{"p2p_serv_disc_req", wpa_cli_cmd_p2p_serv_disc_req,
wpa_cli_complete_p2p_peer, cli_cmd_flag_none, NULL},
{"p2p_serv_disc_cancel_req", wpa_cli_cmd_p2p_serv_disc_cancel_req, NULL,
cli_cmd_flag_none, NULL},
{"p2p_serv_disc_resp", wpa_cli_cmd_p2p_serv_disc_resp, NULL,
cli_cmd_flag_none, NULL},
{"p2p_service_update", wpa_cli_cmd_p2p_service_update, NULL,
cli_cmd_flag_none, NULL},
{"p2p_serv_disc_external", wpa_cli_cmd_p2p_serv_disc_external, NULL,
cli_cmd_flag_none, NULL},
{"p2p_service_flush", wpa_cli_cmd_p2p_service_flush, NULL,
cli_cmd_flag_none, NULL},
{"p2p_service_add", wpa_cli_cmd_p2p_service_add, NULL, cli_cmd_flag_none,
NULL},
{"p2p_service_rep", wpa_cli_cmd_p2p_service_rep, NULL, cli_cmd_flag_none,
NULL},
{"p2p_service_del", wpa_cli_cmd_p2p_service_del, NULL, cli_cmd_flag_none,
NULL},
{"p2p_reject", wpa_cli_cmd_p2p_reject, wpa_cli_complete_p2p_peer,
cli_cmd_flag_none, NULL},
{"p2p_invite", wpa_cli_cmd_p2p_invite, NULL, cli_cmd_flag_none, NULL},
{"p2p_peers", wpa_cli_cmd_p2p_peers, NULL, cli_cmd_flag_none, NULL},
{"p2p_peer", wpa_cli_cmd_p2p_peer, wpa_cli_complete_p2p_peer,
cli_cmd_flag_none, NULL},
{"p2p_set", wpa_cli_cmd_p2p_set, wpa_cli_complete_p2p_set,
cli_cmd_flag_none, NULL},
{"p2p_flush", wpa_cli_cmd_p2p_flush, NULL, cli_cmd_flag_none, NULL},
{"p2p_cancel", wpa_cli_cmd_p2p_cancel, NULL, cli_cmd_flag_none, NULL},
{"p2p_unauthorize", wpa_cli_cmd_p2p_unauthorize, wpa_cli_complete_p2p_peer,
cli_cmd_flag_none, NULL},
{"p2p_presence_req", wpa_cli_cmd_p2p_presence_req, NULL, cli_cmd_flag_none,
NULL},
{"p2p_ext_listen", wpa_cli_cmd_p2p_ext_listen, NULL, cli_cmd_flag_none,
NULL},
{"p2p_remove_client", wpa_cli_cmd_p2p_remove_client,
wpa_cli_complete_p2p_peer, cli_cmd_flag_none, NULL},
#endif /* CONFIG_P2P */
{"vendor_elem_add", wpa_cli_cmd_vendor_elem_add, NULL, cli_cmd_flag_none,
NULL},
{"vendor_elem_get", wpa_cli_cmd_vendor_elem_get, NULL, cli_cmd_flag_none,
NULL},
{"vendor_elem_remove", wpa_cli_cmd_vendor_elem_remove, NULL,
cli_cmd_flag_none, NULL},
#ifdef CONFIG_WIFI_DISPLAY
{"wfd_subelem_set", wpa_cli_cmd_wfd_subelem_set, NULL, cli_cmd_flag_none,
NULL},
{"wfd_subelem_get", wpa_cli_cmd_wfd_subelem_get, NULL, cli_cmd_flag_none,
NULL},
#endif /* CONFIG_WIFI_DISPLAY */
#ifdef CONFIG_INTERWORKING
{"fetch_anqp", wpa_cli_cmd_fetch_anqp, NULL, cli_cmd_flag_none, NULL},
{"stop_fetch_anqp", wpa_cli_cmd_stop_fetch_anqp, NULL, cli_cmd_flag_none,
NULL},
{"interworking_select", wpa_cli_cmd_interworking_select, NULL,
cli_cmd_flag_none, NULL},
{"interworking_connect", wpa_cli_cmd_interworking_connect,
wpa_cli_complete_bss, cli_cmd_flag_none, NULL},
{"interworking_add_network", wpa_cli_cmd_interworking_add_network,
wpa_cli_complete_bss, cli_cmd_flag_none, NULL},
{"anqp_get", wpa_cli_cmd_anqp_get, wpa_cli_complete_bss, cli_cmd_flag_none,
NULL},
{"gas_request", wpa_cli_cmd_gas_request, wpa_cli_complete_bss,
cli_cmd_flag_none, NULL},
{"gas_response_get", wpa_cli_cmd_gas_response_get, wpa_cli_complete_bss,
cli_cmd_flag_none, NULL},
#endif /* CONFIG_INTERWORKING */
#ifdef CONFIG_HS20
{"hs20_anqp_get", wpa_cli_cmd_hs20_anqp_get, wpa_cli_complete_bss,
cli_cmd_flag_none, NULL},
{"nai_home_realm_list", wpa_cli_cmd_get_nai_home_realm_list,
wpa_cli_complete_bss, cli_cmd_flag_none, NULL},
{"hs20_icon_request", wpa_cli_cmd_hs20_icon_request, wpa_cli_complete_bss,
cli_cmd_flag_none, NULL},
{"fetch_osu", wpa_cli_cmd_fetch_osu, NULL, cli_cmd_flag_none, NULL},
{"cancel_fetch_osu", wpa_cli_cmd_cancel_fetch_osu, NULL, cli_cmd_flag_none,
NULL},
#endif /* CONFIG_HS20 */
{"sta_autoconnect", wpa_cli_cmd_sta_autoconnect, NULL, cli_cmd_flag_none,
NULL},
{"tdls_discover", wpa_cli_cmd_tdls_discover, NULL, cli_cmd_flag_none, NULL},
{"tdls_setup", wpa_cli_cmd_tdls_setup, NULL, cli_cmd_flag_none, NULL},
{"tdls_teardown", wpa_cli_cmd_tdls_teardown, NULL, cli_cmd_flag_none, NULL},
{"tdls_link_status", wpa_cli_cmd_tdls_link_status, NULL, cli_cmd_flag_none,
NULL},
{"wmm_ac_addts", wpa_cli_cmd_wmm_ac_addts, NULL, cli_cmd_flag_none, NULL},
{"wmm_ac_delts", wpa_cli_cmd_wmm_ac_delts, NULL, cli_cmd_flag_none, NULL},
{"wmm_ac_status", wpa_cli_cmd_wmm_ac_status, NULL, cli_cmd_flag_none, NULL},
{"tdls_chan_switch", wpa_cli_cmd_tdls_chan_switch, NULL, cli_cmd_flag_none,
NULL},
{"tdls_cancel_chan_switch", wpa_cli_cmd_tdls_cancel_chan_switch, NULL,
cli_cmd_flag_none, NULL},
{"signal_poll", wpa_cli_cmd_signal_poll, NULL, cli_cmd_flag_none, NULL},
{"signal_monitor", wpa_cli_cmd_signal_monitor, NULL, cli_cmd_flag_none,
NULL},
{"pktcnt_poll", wpa_cli_cmd_pktcnt_poll, NULL, cli_cmd_flag_none, NULL},
{"reauthenticate", wpa_cli_cmd_reauthenticate, NULL, cli_cmd_flag_none,
NULL},
#ifdef CONFIG_AUTOSCAN
{"autoscan", wpa_cli_cmd_autoscan, NULL, cli_cmd_flag_none, NULL},
#endif /* CONFIG_AUTOSCAN */
#ifdef CONFIG_WNM
{"wnm_sleep", wpa_cli_cmd_wnm_sleep, NULL, cli_cmd_flag_none, NULL},
{"wnm_bss_query", wpa_cli_cmd_wnm_bss_query, NULL, cli_cmd_flag_none, NULL},
#endif /* CONFIG_WNM */
{"raw", wpa_cli_cmd_raw, NULL, cli_cmd_flag_sensitive, NULL},
{"flush", wpa_cli_cmd_flush, NULL, cli_cmd_flag_none, NULL},
{"radio_work", wpa_cli_cmd_radio_work, NULL, cli_cmd_flag_none, NULL},
{"vendor", wpa_cli_cmd_vendor, NULL, cli_cmd_flag_none, NULL},
{"neighbor_rep_request", wpa_cli_cmd_neighbor_rep_request, NULL,
cli_cmd_flag_none, NULL},
{"twt_setup", wpa_cli_cmd_twt_setup, NULL, cli_cmd_flag_none, NULL},
{"twt_teardown", wpa_cli_cmd_twt_teardown, NULL, cli_cmd_flag_none, NULL},
{"erp_flush", wpa_cli_cmd_erp_flush, NULL, cli_cmd_flag_none, NULL},
{"mac_rand_scan", wpa_cli_cmd_mac_rand_scan, NULL, cli_cmd_flag_none, NULL},
{"get_pref_freq_list", wpa_cli_cmd_get_pref_freq_list, NULL,
cli_cmd_flag_none, NULL},
{"p2p_lo_start", wpa_cli_cmd_p2p_lo_start, NULL, cli_cmd_flag_none, NULL},
{"p2p_lo_stop", wpa_cli_cmd_p2p_lo_stop, NULL, cli_cmd_flag_none, NULL},
#ifdef CONFIG_DPP
{"dpp_qr_code", wpa_cli_cmd_dpp_qr_code, NULL, cli_cmd_flag_none, NULL},
{"dpp_bootstrap_gen", wpa_cli_cmd_dpp_bootstrap_gen, NULL,
cli_cmd_flag_sensitive, NULL},
{"dpp_bootstrap_remove", wpa_cli_cmd_dpp_bootstrap_remove, NULL,
cli_cmd_flag_none, NULL},
{"dpp_bootstrap_get_uri", wpa_cli_cmd_dpp_bootstrap_get_uri, NULL,
cli_cmd_flag_none, NULL},
{"dpp_bootstrap_info", wpa_cli_cmd_dpp_bootstrap_info, NULL,
cli_cmd_flag_none, NULL},
{"dpp_bootstrap_set", wpa_cli_cmd_dpp_bootstrap_set, NULL,
cli_cmd_flag_none, NULL},
{"dpp_auth_init", wpa_cli_cmd_dpp_auth_init, NULL, cli_cmd_flag_none, NULL},
{"dpp_listen", wpa_cli_cmd_dpp_listen, NULL, cli_cmd_flag_none, NULL},
{"dpp_stop_listen", wpa_cli_cmd_dpp_stop_listen, NULL, cli_cmd_flag_none,
NULL},
{"dpp_configurator_add", wpa_cli_cmd_dpp_configurator_add, NULL,
cli_cmd_flag_sensitive, NULL},
{"dpp_configurator_remove", wpa_cli_cmd_dpp_configurator_remove, NULL,
cli_cmd_flag_none, NULL},
{"dpp_configurator_get_key", wpa_cli_cmd_dpp_configurator_get_key, NULL,
cli_cmd_flag_none, NULL},
{"dpp_configurator_sign", wpa_cli_cmd_dpp_configurator_sign, NULL,
cli_cmd_flag_none, NULL},
{"dpp_pkex_add", wpa_cli_cmd_dpp_pkex_add, NULL, cli_cmd_flag_sensitive,
NULL},
{"dpp_pkex_remove", wpa_cli_cmd_dpp_pkex_remove, NULL, cli_cmd_flag_none,
NULL},
#ifdef CONFIG_DPP2
{"dpp_controller_start", wpa_cli_cmd_dpp_controller_start, NULL,
cli_cmd_flag_none, NULL},
{"dpp_controller_stop", wpa_cli_cmd_dpp_controller_stop, NULL,
cli_cmd_flag_none, NULL},
{"dpp_chirp", wpa_cli_cmd_dpp_chirp, NULL, cli_cmd_flag_none, NULL},
{"dpp_stop_chirp", wpa_cli_cmd_dpp_stop_chirp, NULL, cli_cmd_flag_none,
NULL},
#endif /* CONFIG_DPP2 */
#endif /* CONFIG_DPP */
{"all_bss", wpa_cli_cmd_all_bss, NULL, cli_cmd_flag_none, NULL},
#ifdef CONFIG_PASN
{"pasn_auth_start", wpa_cli_cmd_pasn_auth_start, NULL, cli_cmd_flag_none,
NULL},
{"pasn_auth_stop", wpa_cli_cmd_pasn_auth_stop, NULL, cli_cmd_flag_none,
NULL},
{"ptksa_cache_list", wpa_cli_cmd_ptksa_cache_list, NULL, cli_cmd_flag_none,
NULL},
{"pasn_deauth", wpa_cli_cmd_pasn_deauth, NULL, cli_cmd_flag_none, NULL},
#endif /* CONFIG_PASN */
{"mscs", wpa_cli_cmd_mscs, NULL, cli_cmd_flag_none, NULL},
{"scs", wpa_cli_cmd_scs, NULL, cli_cmd_flag_none, NULL},
{"dscp_resp", wpa_cli_cmd_dscp_resp, NULL, cli_cmd_flag_none, NULL},
{"dscp_query", wpa_cli_cmd_dscp_query, NULL, cli_cmd_flag_none, NULL},
#endif /* !CONFIG_ZEPHYR || (CONFIG_ZEPHYR && CONFIG_WPA_CLI)*/
{NULL, NULL, NULL, cli_cmd_flag_none, NULL}};

#endif /* CONFIG_WPA_CLI */

int wpa_request(struct wpa_ctrl *ctrl, int argc, char *argv[])
{
Expand Down
Loading