Lines Matching refs:cmd
194 struct hostapd_data *hapd, char *cmd, char *buf, size_t buflen) in hostapd_ctrl_iface_wps_check_pin() argument
202 (u8 *) cmd, os_strlen(cmd)); in hostapd_ctrl_iface_wps_check_pin()
203 for (pos = cmd, len = 0; *pos != '\0'; pos++) { in hostapd_ctrl_iface_wps_check_pin()
267 char *cmd, char *reply, in hostapd_ctrl_iface_wps_nfc_config_token() argument
274 if (os_strcmp(cmd, "WPS") == 0) in hostapd_ctrl_iface_wps_nfc_config_token()
276 else if (os_strcmp(cmd, "NDEF") == 0) in hostapd_ctrl_iface_wps_nfc_config_token()
319 char *cmd, char *reply, in hostapd_ctrl_iface_wps_nfc_token() argument
322 if (os_strcmp(cmd, "WPS") == 0) in hostapd_ctrl_iface_wps_nfc_token()
326 if (os_strcmp(cmd, "NDEF") == 0) in hostapd_ctrl_iface_wps_nfc_token()
330 if (os_strcmp(cmd, "enable") == 0) in hostapd_ctrl_iface_wps_nfc_token()
333 if (os_strcmp(cmd, "disable") == 0) { in hostapd_ctrl_iface_wps_nfc_token()
343 char *cmd, char *reply, in hostapd_ctrl_iface_nfc_get_handover_sel() argument
351 pos = os_strchr(cmd, ' '); in hostapd_ctrl_iface_nfc_get_handover_sel()
356 if (os_strcmp(cmd, "WPS") == 0) in hostapd_ctrl_iface_nfc_get_handover_sel()
358 else if (os_strcmp(cmd, "NDEF") == 0) in hostapd_ctrl_iface_nfc_get_handover_sel()
382 char *cmd) in hostapd_ctrl_iface_nfc_report_handover() argument
389 role = cmd; in hostapd_ctrl_iface_nfc_report_handover()
605 const char *cmd) in hostapd_ctrl_iface_hs20_wnm_notif() argument
610 if (hwaddr_aton(cmd, addr)) in hostapd_ctrl_iface_hs20_wnm_notif()
612 url = cmd + 17; in hostapd_ctrl_iface_hs20_wnm_notif()
628 const char *cmd) in hostapd_ctrl_iface_hs20_deauth_req() argument
637 if (hwaddr_aton(cmd, addr)) in hostapd_ctrl_iface_hs20_deauth_req()
640 pos = os_strchr(cmd, ' '); in hostapd_ctrl_iface_hs20_deauth_req()
682 const char *cmd) in hostapd_ctrl_iface_set_qos_map_set() argument
685 const char *pos = cmd; in hostapd_ctrl_iface_set_qos_map_set()
726 const char *cmd) in hostapd_ctrl_iface_send_qos_map_conf() argument
740 if (hwaddr_aton(cmd, addr)) in hostapd_ctrl_iface_send_qos_map_conf()
782 const char *cmd) in hostapd_ctrl_iface_coloc_intf_req() argument
789 if (hwaddr_aton(cmd, addr)) { in hostapd_ctrl_iface_coloc_intf_req()
802 pos = cmd + 17; in hostapd_ctrl_iface_coloc_intf_req()
1204 static int hostapd_ctrl_iface_set(struct hostapd_data *hapd, char *cmd) in hostapd_ctrl_iface_set() argument
1209 value = os_strchr(cmd, ' '); in hostapd_ctrl_iface_set()
1214 wpa_printf(MSG_DEBUG, "CTRL_IFACE SET '%s'='%s'", cmd, value); in hostapd_ctrl_iface_set()
1217 } else if (os_strcasecmp(cmd, "wps_version_number") == 0) { in hostapd_ctrl_iface_set()
1232 } else if (os_strcasecmp(cmd, "wps_testing_stub_cred") == 0) { in hostapd_ctrl_iface_set()
1236 } else if (os_strcasecmp(cmd, "wps_corrupt_pkhash") == 0) { in hostapd_ctrl_iface_set()
1242 } else if (os_strcasecmp(cmd, "ext_mgmt_frame_handling") == 0) { in hostapd_ctrl_iface_set()
1244 } else if (os_strcasecmp(cmd, "ext_eapol_frame_io") == 0) { in hostapd_ctrl_iface_set()
1246 } else if (os_strcasecmp(cmd, "force_backlog_bytes") == 0) { in hostapd_ctrl_iface_set()
1249 } else if (os_strcasecmp(cmd, "dpp_config_obj_override") == 0) { in hostapd_ctrl_iface_set()
1252 } else if (os_strcasecmp(cmd, "dpp_discovery_override") == 0) { in hostapd_ctrl_iface_set()
1255 } else if (os_strcasecmp(cmd, "dpp_groups_override") == 0) { in hostapd_ctrl_iface_set()
1258 } else if (os_strcasecmp(cmd, in hostapd_ctrl_iface_set()
1261 } else if (os_strcasecmp(cmd, "dpp_test") == 0) { in hostapd_ctrl_iface_set()
1263 } else if (os_strcasecmp(cmd, "dpp_version_override") == 0) { in hostapd_ctrl_iface_set()
1268 } else if (os_strcasecmp(cmd, "mbo_assoc_disallow") == 0) { in hostapd_ctrl_iface_set()
1287 } else if (os_strcasecmp(cmd, "dpp_configurator_params") == 0) { in hostapd_ctrl_iface_set()
1293 } else if (os_strcasecmp(cmd, "dpp_init_max_tries") == 0) { in hostapd_ctrl_iface_set()
1295 } else if (os_strcasecmp(cmd, "dpp_init_retry_time") == 0) { in hostapd_ctrl_iface_set()
1297 } else if (os_strcasecmp(cmd, "dpp_resp_wait_time") == 0) { in hostapd_ctrl_iface_set()
1299 } else if (os_strcasecmp(cmd, "dpp_resp_max_tries") == 0) { in hostapd_ctrl_iface_set()
1301 } else if (os_strcasecmp(cmd, "dpp_resp_retry_time") == 0) { in hostapd_ctrl_iface_set()
1304 } else if (os_strcasecmp(cmd, "setband") == 0) { in hostapd_ctrl_iface_set()
1307 ret = hostapd_set_iface(hapd->iconf, hapd->conf, cmd, value); in hostapd_ctrl_iface_set()
1311 if (os_strcasecmp(cmd, "deny_mac_file") == 0) { in hostapd_ctrl_iface_set()
1313 } else if (os_strcasecmp(cmd, "accept_mac_file") == 0) { in hostapd_ctrl_iface_set()
1315 } else if (os_strcasecmp(cmd, "ssid") == 0) { in hostapd_ctrl_iface_set()
1318 } else if (os_strncmp(cmd, "wme_ac_", 7) == 0 || in hostapd_ctrl_iface_set()
1319 os_strncmp(cmd, "wmm_ac_", 7) == 0) { in hostapd_ctrl_iface_set()
1325 } else if (os_strcmp(cmd, "wpa_passphrase") == 0 || in hostapd_ctrl_iface_set()
1326 os_strcmp(cmd, "sae_password") == 0 || in hostapd_ctrl_iface_set()
1327 os_strcmp(cmd, "sae_pwe") == 0) { in hostapd_ctrl_iface_set()
1330 } else if (os_strcasecmp(cmd, "transition_disable") == 0) { in hostapd_ctrl_iface_set()
1336 if (os_strcmp(cmd, "ft_rsnxe_used") == 0) in hostapd_ctrl_iface_set()
1339 else if (os_strcmp(cmd, "oci_freq_override_eapol_m3") == 0) in hostapd_ctrl_iface_set()
1343 else if (os_strcmp(cmd, "oci_freq_override_eapol_g1") == 0) in hostapd_ctrl_iface_set()
1347 else if (os_strcmp(cmd, "oci_freq_override_ft_assoc") == 0) in hostapd_ctrl_iface_set()
1351 else if (os_strcmp(cmd, "oci_freq_override_fils_assoc") == 0) in hostapd_ctrl_iface_set()
1362 static int hostapd_ctrl_iface_get(struct hostapd_data *hapd, char *cmd, in hostapd_ctrl_iface_get() argument
1367 wpa_printf(MSG_DEBUG, "CTRL_IFACE GET '%s'", cmd); in hostapd_ctrl_iface_get()
1369 if (os_strcmp(cmd, "version") == 0) { in hostapd_ctrl_iface_get()
1374 } else if (os_strcmp(cmd, "tls_library") == 0) { in hostapd_ctrl_iface_get()
1557 static int hostapd_ctrl_iface_radar(struct hostapd_data *hapd, char *cmd) in hostapd_ctrl_iface_radar() argument
1563 wpa_printf(MSG_DEBUG, "RADAR TEST: %s", cmd); in hostapd_ctrl_iface_radar()
1567 param = os_strchr(cmd, ' '); in hostapd_ctrl_iface_radar()
1572 if (os_strcmp(cmd, "DETECTED") == 0) in hostapd_ctrl_iface_radar()
1574 else if (os_strcmp(cmd, "CAC-FINISHED") == 0) in hostapd_ctrl_iface_radar()
1576 else if (os_strcmp(cmd, "CAC-ABORTED") == 0) in hostapd_ctrl_iface_radar()
1578 else if (os_strcmp(cmd, "NOP-FINISHED") == 0) in hostapd_ctrl_iface_radar()
1582 cmd); in hostapd_ctrl_iface_radar()
1616 static int hostapd_ctrl_iface_mgmt_tx(struct hostapd_data *hapd, char *cmd) in hostapd_ctrl_iface_mgmt_tx() argument
1622 wpa_printf(MSG_DEBUG, "External MGMT TX: %s", cmd); in hostapd_ctrl_iface_mgmt_tx()
1624 len = os_strlen(cmd); in hostapd_ctrl_iface_mgmt_tx()
1633 if (hexstr2bin(cmd, buf, len) < 0) { in hostapd_ctrl_iface_mgmt_tx()
1645 char *cmd) in hostapd_ctrl_iface_mgmt_tx_status_process() argument
1658 wpa_printf(MSG_DEBUG, "External MGMT TX status process: %s", cmd); in hostapd_ctrl_iface_mgmt_tx_status_process()
1660 pos = cmd; in hostapd_ctrl_iface_mgmt_tx_status_process()
1706 char *cmd) in hostapd_ctrl_iface_mgmt_rx_process() argument
1719 wpa_printf(MSG_DEBUG, "External MGMT RX process: %s", cmd); in hostapd_ctrl_iface_mgmt_rx_process()
1721 pos = cmd; in hostapd_ctrl_iface_mgmt_rx_process()
1775 static int hostapd_ctrl_iface_eapol_rx(struct hostapd_data *hapd, char *cmd) in hostapd_ctrl_iface_eapol_rx() argument
1782 wpa_printf(MSG_DEBUG, "External EAPOL RX: %s", cmd); in hostapd_ctrl_iface_eapol_rx()
1784 pos = cmd; in hostapd_ctrl_iface_eapol_rx()
1813 static int hostapd_ctrl_iface_eapol_tx(struct hostapd_data *hapd, char *cmd) in hostapd_ctrl_iface_eapol_tx() argument
1822 wpa_printf(MSG_DEBUG, "External EAPOL TX: %s", cmd); in hostapd_ctrl_iface_eapol_tx()
1824 pos = cmd; in hostapd_ctrl_iface_eapol_tx()
1924 char *cmd) in hostapd_ctrl_iface_data_test_config() argument
1926 int enabled = atoi(cmd); in hostapd_ctrl_iface_data_test_config()
1944 pos = os_strstr(cmd, " ifname="); in hostapd_ctrl_iface_data_test_config()
1966 static int hostapd_ctrl_iface_data_test_tx(struct hostapd_data *hapd, char *cmd) in hostapd_ctrl_iface_data_test_tx() argument
1985 pos = cmd; in hostapd_ctrl_iface_data_test_tx()
2041 char *cmd) in hostapd_ctrl_iface_data_test_frame() argument
2051 if (os_strncmp(cmd, "ifname=", 7) == 0) { in hostapd_ctrl_iface_data_test_frame()
2052 cmd += 7; in hostapd_ctrl_iface_data_test_frame()
2053 ifname = cmd; in hostapd_ctrl_iface_data_test_frame()
2054 cmd = os_strchr(cmd, ' '); in hostapd_ctrl_iface_data_test_frame()
2055 if (cmd == NULL) in hostapd_ctrl_iface_data_test_frame()
2057 *cmd++ = '\0'; in hostapd_ctrl_iface_data_test_frame()
2060 len = os_strlen(cmd); in hostapd_ctrl_iface_data_test_frame()
2069 if (hexstr2bin(cmd, buf, len) < 0) in hostapd_ctrl_iface_data_test_frame()
2091 static int hostapd_ctrl_reset_pn(struct hostapd_data *hapd, const char *cmd) in hostapd_ctrl_reset_pn() argument
2099 if (hwaddr_aton(cmd, addr)) in hostapd_ctrl_reset_pn()
2102 if (is_broadcast_ether_addr(addr) && os_strstr(cmd, " BIGTK")) { in hostapd_ctrl_reset_pn()
2128 if (is_broadcast_ether_addr(addr) && os_strstr(cmd, "IGTK")) { in hostapd_ctrl_reset_pn()
2206 static int hostapd_ctrl_set_key(struct hostapd_data *hapd, const char *cmd) in hostapd_ctrl_set_key() argument
2209 const char *pos = cmd; in hostapd_ctrl_set_key()
2283 static int hostapd_ctrl_resend_m1(struct hostapd_data *hapd, const char *cmd) in hostapd_ctrl_resend_m1() argument
2287 int plain = os_strstr(cmd, "plaintext") != NULL; in hostapd_ctrl_resend_m1()
2289 if (hwaddr_aton(cmd, addr)) in hostapd_ctrl_resend_m1()
2308 os_strstr(cmd, "change-anonce") != NULL, in hostapd_ctrl_resend_m1()
2313 static int hostapd_ctrl_resend_m3(struct hostapd_data *hapd, const char *cmd) in hostapd_ctrl_resend_m3() argument
2317 int plain = os_strstr(cmd, "plaintext") != NULL; in hostapd_ctrl_resend_m3()
2319 if (hwaddr_aton(cmd, addr)) in hostapd_ctrl_resend_m3()
2343 const char *cmd) in hostapd_ctrl_resend_group_m1() argument
2347 int plain = os_strstr(cmd, "plaintext") != NULL; in hostapd_ctrl_resend_group_m1()
2349 if (hwaddr_aton(cmd, addr)) in hostapd_ctrl_resend_group_m1()
2374 static int hostapd_ctrl_rekey_ptk(struct hostapd_data *hapd, const char *cmd) in hostapd_ctrl_rekey_ptk() argument
2379 if (hwaddr_aton(cmd, addr)) in hostapd_ctrl_rekey_ptk()
2403 static int hostapd_ctrl_get_pmk(struct hostapd_data *hapd, const char *cmd, in hostapd_ctrl_get_pmk() argument
2411 if (hwaddr_aton(cmd, addr)) in hostapd_ctrl_get_pmk()
2432 const char *cmd) in hostapd_ctrl_register_frame() argument
2440 type = strtol(cmd, &pos, 16); in hostapd_ctrl_register_frame()
2947 const char *cmd) in hostapd_ctrl_iface_notify_cw_change() argument
2958 cw = atoi(cmd); in hostapd_ctrl_iface_notify_cw_change()
3018 static int hostapd_ctrl_iface_vendor(struct hostapd_data *hapd, char *cmd, in hostapd_ctrl_iface_vendor() argument
3033 vendor_id = strtoul(cmd, &pos, 16); in hostapd_ctrl_iface_vendor()
3061 pos = os_strstr(cmd, "nested="); in hostapd_ctrl_iface_vendor()
3087 const char *cmd) in hostapd_ctrl_iface_eapol_reauth() argument
3092 if (hwaddr_aton(cmd, addr)) in hostapd_ctrl_iface_eapol_reauth()
3104 static int hostapd_ctrl_iface_eapol_set(struct hostapd_data *hapd, char *cmd) in hostapd_ctrl_iface_eapol_set() argument
3108 char *pos = cmd, *param; in hostapd_ctrl_iface_eapol_set()
3127 static int hostapd_ctrl_iface_log_level(struct hostapd_data *hapd, char *cmd, in hostapd_ctrl_iface_log_level() argument
3134 if (*cmd == '\0') { in hostapd_ctrl_iface_log_level()
3147 while (*cmd == ' ') in hostapd_ctrl_iface_log_level()
3148 cmd++; in hostapd_ctrl_iface_log_level()
3150 stamp = os_strchr(cmd, ' '); in hostapd_ctrl_iface_log_level()
3158 if (os_strlen(cmd)) { in hostapd_ctrl_iface_log_level()
3159 int level = str_to_debug_level(cmd); in hostapd_ctrl_iface_log_level()
3211 const char *cmd) in hostapd_ctrl_iface_req_lci() argument
3215 if (hwaddr_aton(cmd, addr)) { in hostapd_ctrl_iface_req_lci()
3224 static int hostapd_ctrl_iface_req_range(struct hostapd_data *hapd, char *cmd) in hostapd_ctrl_iface_req_range() argument
3232 token = str_token(cmd, " ", &context); in hostapd_ctrl_iface_req_range()
3239 token = str_token(cmd, " ", &context); in hostapd_ctrl_iface_req_range()
3247 token = str_token(cmd, " ", &context); in hostapd_ctrl_iface_req_range()
3256 while ((token = str_token(cmd, " ", &context))) { in hostapd_ctrl_iface_req_range()
3284 const char *cmd, char *reply, in hostapd_ctrl_iface_req_beacon() argument
3293 if (hwaddr_aton(cmd, addr)) in hostapd_ctrl_iface_req_beacon()
3295 pos = os_strchr(cmd, ' '); in hostapd_ctrl_iface_req_beacon()
3324 const char *cmd, char *reply, in hostapd_ctrl_iface_req_link_measurement() argument
3330 if (hwaddr_aton(cmd, addr)) { in hostapd_ctrl_iface_req_link_measurement()
3582 static int hostapd_ctrl_iface_driver_cmd(struct hostapd_data *hapd, char *cmd, in hostapd_ctrl_iface_driver_cmd() argument
3587 ret = hostapd_drv_driver_cmd(hapd, cmd, buf, buflen); in hostapd_ctrl_iface_driver_cmd()
3677 static int hostapd_ctrl_iface_link_remove(struct hostapd_data *hapd, char *cmd, in hostapd_ctrl_iface_link_remove() argument
3681 u32 count = atoi(cmd); in hostapd_ctrl_iface_link_remove()
3703 static int hostapd_ctrl_nan_publish(struct hostapd_data *hapd, char *cmd, in hostapd_ctrl_nan_publish() argument
3721 while ((token = str_token(cmd, " ", &context))) { in hostapd_ctrl_nan_publish()
3777 char *cmd) in hostapd_ctrl_nan_cancel_publish() argument
3782 while ((token = str_token(cmd, " ", &context))) { in hostapd_ctrl_nan_cancel_publish()
3803 char *cmd) in hostapd_ctrl_nan_update_publish() argument
3810 while ((token = str_token(cmd, " ", &context))) { in hostapd_ctrl_nan_update_publish()
3840 static int hostapd_ctrl_nan_subscribe(struct hostapd_data *hapd, char *cmd, in hostapd_ctrl_nan_subscribe() argument
3853 while ((token = str_token(cmd, " ", &context))) { in hostapd_ctrl_nan_subscribe()
3901 char *cmd) in hostapd_ctrl_nan_cancel_subscribe() argument
3906 while ((token = str_token(cmd, " ", &context))) { in hostapd_ctrl_nan_cancel_subscribe()
3926 static int hostapd_ctrl_nan_transmit(struct hostapd_data *hapd, char *cmd) in hostapd_ctrl_nan_transmit() argument
3937 while ((token = str_token(cmd, " ", &context))) { in hostapd_ctrl_nan_transmit()
5122 const char *cmd) in hostapd_global_ctrl_iface_fst_attach() argument
5129 if (!fst_parse_attach_command(cmd, ifname, sizeof(ifname), &cfg)) { in hostapd_global_ctrl_iface_fst_attach()
5150 const char *cmd) in hostapd_global_ctrl_iface_fst_detach() argument
5155 if (!fst_parse_detach_command(cmd, ifname, sizeof(ifname))) { in hostapd_global_ctrl_iface_fst_detach()
5305 char *cmd) in hostapd_global_ctrl_iface_dup_network() argument
5307 char *p_start = cmd, *p_end; in hostapd_global_ctrl_iface_dup_network()
5315 cmd); in hostapd_global_ctrl_iface_dup_network()
5331 cmd); in hostapd_global_ctrl_iface_dup_network()