/wlan-dirver/utils/sigma-dut/ |
H A D | wlantest.c | 24 u8 *pos = buf; in attr_get() local 26 while (pos + 8 <= buf + buflen) { in attr_get() 29 a = WPA_GET_BE32(pos); in attr_get() 30 pos += 4; in attr_get() 31 alen = WPA_GET_BE32(pos); in attr_get() 32 pos += 4; in attr_get() 33 if (pos + alen > buf + buflen) in attr_get() 37 return pos; in attr_get() 39 pos += alen; in attr_get() 46 static u8 * attr_hdr_add(u8 *pos, u8 *end, enum wlantest_ctrl_attr attr, in attr_hdr_add() argument [all …]
|
H A D | traffic.c | 208 char *pos; in cmd_traffic_stop_ping() local 210 pos = strstr(buf, " packets transmitted"); in cmd_traffic_stop_ping() 211 if (pos) { in cmd_traffic_stop_ping() 212 pos--; in cmd_traffic_stop_ping() 213 while (pos > buf && isdigit(pos[-1])) in cmd_traffic_stop_ping() 214 pos--; in cmd_traffic_stop_ping() 215 sent = atoi(pos); in cmd_traffic_stop_ping() 219 pos = strstr(buf, " packets received"); in cmd_traffic_stop_ping() 220 if (pos == NULL) in cmd_traffic_stop_ping() 221 pos = strstr(buf, " received"); in cmd_traffic_stop_ping() [all …]
|
H A D | traffic_agent.c | 725 char buf[100 + MAX_SIGMA_STREAMS * 60], *pos; in send_report_thread() local 735 pos = buf; in send_report_thread() 737 pos += snprintf(pos, buf + sizeof(buf) - pos, "streamID,"); in send_report_thread() 739 ret = snprintf(pos, buf + sizeof(buf) - pos, "%s%d", in send_report_thread() 741 if (ret < 0 || ret >= buf + sizeof(buf) - pos) in send_report_thread() 743 pos += ret; in send_report_thread() 748 pos += snprintf(pos, buf + sizeof(buf) - pos, ",txActFrames,"); in send_report_thread() 755 ret = snprintf(pos, buf + sizeof(buf) - pos, "%s%d", in send_report_thread() 757 if (ret < 0 || ret >= buf + sizeof(buf) - pos) in send_report_thread() 759 pos += ret; in send_report_thread() [all …]
|
H A D | wpa_helpers.c | 243 char *pos; in get_wpa_cli_events() local 291 pos = strchr(buf, '>'); in get_wpa_cli_events() 292 if (pos) { in get_wpa_cli_events() 294 if (strncmp(pos + 1, events[i], in get_wpa_cli_events() 339 char *pos, *end; in get_wpa_signal_poll() local 361 pos = buf; in get_wpa_signal_poll() 362 while (pos + flen < buf + len) { in get_wpa_signal_poll() 363 if (pos > buf) { in get_wpa_signal_poll() 364 if (*pos != '\n') { in get_wpa_signal_poll() 365 pos++; in get_wpa_signal_poll() [all …]
|
H A D | utils.c | 87 char *pos; in sigma_dut_get_device_driver_name() local 106 pos = strrchr(path, '/'); in sigma_dut_get_device_driver_name() 107 if (!pos) in sigma_dut_get_device_driver_name() 108 pos = path; in sigma_dut_get_device_driver_name() 110 pos++; in sigma_dut_get_device_driver_name() 111 snprintf(name, size, "%s", pos); in sigma_dut_get_device_driver_name() 209 const char *pos = hex; in parse_hexstr() local 214 if (*pos == '\0') in parse_hexstr() 216 val = hex_byte(pos); in parse_hexstr() 220 pos += 2; in parse_hexstr() [all …]
|
H A D | dpp.c | 94 char *pos, mac[50], buf[200], resp[1000], hex[2000]; in dpp_get_local_bootstrap() local 140 pos = mac; in dpp_get_local_bootstrap() 141 while (*pos) { in dpp_get_local_bootstrap() 142 if (*pos == ':') in dpp_get_local_bootstrap() 143 memmove(pos, pos + 1, strlen(pos)); in dpp_get_local_bootstrap() 145 pos++; in dpp_get_local_bootstrap() 167 for (pos = resp; *pos; pos++) { in dpp_get_local_bootstrap() 168 if (*pos == ' ') in dpp_get_local_bootstrap() 169 *pos = ','; in dpp_get_local_bootstrap() 246 char buf[2000], buf2[2500], *pos, *pos2; in dpp_hostapd_conf_update() local [all …]
|
H A D | sigma_dut.c | 370 char *cmd, *pos, *pos2; in process_cmd() local 384 pos = strchr(buf, ','); in process_cmd() 385 if (pos == NULL) in process_cmd() 386 pos = buf + len; in process_cmd() 387 if (pos - buf > 50) in process_cmd() 388 pos = buf + 50; in process_cmd() 391 memcpy(pos2, buf, pos - buf); in process_cmd() 392 pos2 += pos - buf; in process_cmd() 410 pos = strchr(cmd, ','); in process_cmd() 411 if (pos) { in process_cmd() [all …]
|
H A D | p2p.c | 227 char *pos, *gtype, *p2p_group_ifname = NULL; in wpa_event_recv() local 283 pos = strchr(buf, '>'); in wpa_event_recv() 284 if (pos) { in wpa_event_recv() 286 if (strncmp(pos + 1, events[i], in wpa_event_recv() 303 pos = strchr(p2p_group_ifname, ' '); in wpa_event_recv() 304 if (!pos) in wpa_event_recv() 306 *pos++ = '\0'; in wpa_event_recv() 307 gtype = pos; in wpa_event_recv() 308 pos = strchr(gtype, ' '); in wpa_event_recv() 309 if (!pos) in wpa_event_recv() [all …]
|
H A D | sta.c | 945 const char *pos = str; in is_ip_addr() local 948 while (*pos) { in is_ip_addr() 949 if (*pos != '.' && (*pos < '0' || *pos > '9')) in is_ip_addr() 951 pos++; in is_ip_addr() 1056 char *pos, *pos2; in get_ip_config() local 1061 pos = tmp + 10; in get_ip_config() 1062 while (*pos == ' ' || *pos == '\t') in get_ip_config() 1063 pos++; in get_ip_config() 1064 pos2 = pos; in get_ip_config() 1073 strlcpy(dns, pos, sizeof(dns)); in get_ip_config() [all …]
|
H A D | sniffer.c | 124 char buf[2000], *pos; in cmd_sniffer_control_field_check() local 163 pos = strchr(buf, '\n'); in cmd_sniffer_control_field_check() 164 if (pos) in cmd_sniffer_control_field_check() 165 *pos = '\0'; in cmd_sniffer_control_field_check() 198 char buf[500], *pos; in cmd_sniffer_control_filter_capture() local 234 pos = strchr(buf, '\n'); in cmd_sniffer_control_filter_capture() 235 if (pos) in cmd_sniffer_control_filter_capture() 236 *pos = '\0'; in cmd_sniffer_control_filter_capture() 253 char buf[500], *pos; in cmd_sniffer_get_field_value() local 282 pos = strchr(buf, '\n'); in cmd_sniffer_get_field_value() [all …]
|
H A D | basic.c | 55 char *pos; in get_ver() local 65 pos = strstr(buf, " v"); in get_ver() 66 if (pos == NULL) in get_ver() 69 memmove(buf, pos + 1, strlen(pos)); in get_ver() 103 char *pos; in cmd_device_get_info() local 117 pos = strrchr(path, '/'); in cmd_device_get_info() 118 if (pos == NULL) in cmd_device_get_info() 119 pos = path; in cmd_device_get_info() 121 pos++; in cmd_device_get_info() 123 "Linux/%s", pos); in cmd_device_get_info()
|
H A D | dhcp.c | 55 u8 *pos = options; in get_dhcp_option() local 56 u8 *end = pos + len; in get_dhcp_option() 58 while (pos < end && pos + 1 < end && pos + 2 + pos[1] <= end) { in get_dhcp_option() 59 if (*pos == type) in get_dhcp_option() 60 return pos; in get_dhcp_option() 61 pos += 2 + pos[1]; in get_dhcp_option()
|
H A D | miracast.c | 271 char *pos; in get_p2p_connection_event() local 314 pos = strchr(ifname, ' '); in get_p2p_connection_event() 315 if (!pos) { in get_p2p_connection_event() 319 *pos++ = '\0'; in get_p2p_connection_event() 324 mode_string = pos; in get_p2p_connection_event() 325 pos = strchr(mode_string, ' '); in get_p2p_connection_event() 326 if (!pos) { in get_p2p_connection_event() 331 *pos++ = '\0'; in get_p2p_connection_event() 505 char *pos, *end; in miracast_generate_string_cmd() local 511 pos = strcmd; in miracast_generate_string_cmd() [all …]
|
H A D | dev.c | 187 char *pos = strstr(buf, " hash="); in sta_server_cert_trust() local 189 if (pos) { in sta_server_cert_trust() 285 char buf[4000], buf2[100], *pos, *end; in wpa3_dev_exec_action() local 296 pos = buf; in wpa3_dev_exec_action() 297 while (pos) { in wpa3_dev_exec_action() 298 if (strncmp(pos, "sae_rejected_groups=", 20) == 0) in wpa3_dev_exec_action() 300 pos = strchr(pos, '\n'); in wpa3_dev_exec_action() 301 if (pos) in wpa3_dev_exec_action() 302 pos++; in wpa3_dev_exec_action() 304 if (pos) { in wpa3_dev_exec_action() [all …]
|
/wlan-dirver/qca-wifi-host-cmn/crypto/src/ |
H A D | wlan_crypto_gcmp_sw.c |
|
H A D | wlan_crypto_ccmp_sw.c |
|
H A D | wlan_crypto_aes_omac1.c |
|
H A D | wlan_crypto_tkip_sw.c |
|
/wlan-dirver/qcacld-3.0/core/hdd/src/ |
H A D | wlan_hdd_memdump.c | 88 * @pos: offset in the from buffer. 97 size_t count, loff_t *pos) in __hdd_driver_memdump_read() argument 106 hdd_debug("Read req for size:%zu pos:%llu", count, *pos); in __hdd_driver_memdump_read() 112 if (*pos < 0) { in __hdd_driver_memdump_read() 119 (hdd_ctx->driver_dump_size && *pos >= hdd_ctx->driver_dump_size)) { in __hdd_driver_memdump_read() 125 if (*pos == 0 || !hdd_ctx->driver_dump_mem) { in __hdd_driver_memdump_read() 151 if (count > hdd_ctx->driver_dump_size - *pos) in __hdd_driver_memdump_read() 152 no_of_bytes_read = hdd_ctx->driver_dump_size - *pos; in __hdd_driver_memdump_read() 156 if (copy_to_user(buf, hdd_ctx->driver_dump_mem + *pos, in __hdd_driver_memdump_read() 190 hdd_driver_memdump_read(struct file * file,char __user * buf,size_t count,loff_t * pos) hdd_driver_memdump_read() argument [all...] |
H A D | wlan_hdd_debugfs_config.c | 48 * @pos: offset (where data should be copied into) 56 loff_t *pos, in wlan_hdd_config_update() argument 61 ret_cnt = simple_read_from_buffer(buf, count, pos, ini_config->result, in wlan_hdd_config_update() 63 hdd_debug("ini config read req: count: %zu, pos: %lld", count, *pos); in wlan_hdd_config_update() 91 * @pos: position pointer 97 loff_t *pos) in __wlan_hdd_read_config_debugfs() argument 106 err_size = wlan_hdd_config_update(buf, count, pos, ini_config); in __wlan_hdd_read_config_debugfs() 116 * @pos: position pointer 122 loff_t *pos) in wlan_hdd_read_config_debugfs() argument [all...] |
H A D | wlan_hdd_debugfs_mibstat.c | 117 * @pos: offset (where data should be copied into) 125 size_t count, loff_t *pos) in hdd_debugfs_mib_stats_update() argument 137 ret_cnt = simple_read_from_buffer(buf, count, pos, in hdd_debugfs_mib_stats_update() 141 hdd_debug("mib stats read req: count: %zu, pos: %lld", count, *pos); in hdd_debugfs_mib_stats_update() 206 * @pos: (unused) offset into the virtual file system 212 size_t count, loff_t *pos) in __wlan_hdd_read_mib_stats_debugfs() argument 226 if (*pos == 0) { in __wlan_hdd_read_mib_stats_debugfs() 233 ret = hdd_debugfs_mib_stats_update(buf, count, pos); in __wlan_hdd_read_mib_stats_debugfs() 254 * @pos 260 wlan_hdd_read_mib_stats_debugfs(struct file * file,char __user * buf,size_t count,loff_t * pos) wlan_hdd_read_mib_stats_debugfs() argument [all...] |
/wlan-dirver/qca-wifi-host-cmn/hif/src/ |
H A D | ath_procfs.c | 54 * Get op_type, mem_type and offset fields from pos of procfs 55 * It will reuse pos, which is long long type 89 size_t count, loff_t *pos) in ath_procfs_diag_read_legacy() argument 106 read_buffer, count, (int)*pos, buf); in ath_procfs_diag_read_legacy() 133 memtype = ((uint32_t)(*pos) & 0xff000000) >> 24; in ath_procfs_diag_read_legacy() 134 offset = (uint32_t)(*pos) & 0xffffff; in ath_procfs_diag_read_legacy() 143 if ((count == 4) && ((((uint32_t) (*pos)) & 3) == 0)) { in ath_procfs_diag_read_legacy() 145 rv = hif_diag_read_access(hif_hdl, (uint32_t)(*pos), in ath_procfs_diag_read_legacy() 148 rv = hif_diag_read_mem(hif_hdl, (uint32_t)(*pos), in ath_procfs_diag_read_legacy() 169 size_t count, loff_t *pos) in ath_procfs_diag_write_legacy() argument 468 get_fields_from_pos(loff_t pos,uint32_t * op_type,uint32_t * memtype,uint32_t * offset) get_fields_from_pos() argument 482 ath_procfs_diag_read(struct file * file,char __user * buf,size_t count,loff_t * pos) ath_procfs_diag_read() argument 524 ath_procfs_diag_write(struct file * file,const char __user * buf,size_t count,loff_t * pos) ath_procfs_diag_write() argument [all...] |
/wlan-dirver/qca-wifi-host-cmn/wmi/src/ |
H A D | wmi_hang_event.c | 39 int nread, pos, total_len; in wmi_log_history() local 70 pos = wmi_ring_size - 1; in wmi_log_history() 72 pos = *wmi_log->p_buf_tail_idx - 1; in wmi_log_history() 86 wmi_evt = &(((struct wmi_event_debug *)wmi_log->buf)[pos]); in wmi_log_history() 99 wmi_cmd = &(((struct wmi_command_debug *)wmi_log->buf)[pos]); in wmi_log_history() 106 if (pos == 0) in wmi_log_history() 107 pos = wmi_ring_size - 1; in wmi_log_history() 109 pos--; in wmi_log_history()
|
/wlan-dirver/qca-wifi-host-cmn/dp/wifi3.0/ |
H A D | dp_htt_logger.c |
|
/wlan-dirver/qca-wifi-host-cmn/qdf/inc/ |
H A D | qdf_hashtable.h | 164 qdf_hl_for_each_entry_rcu(pos,head,member) global() argument 175 qdf_hl_for_each_entry_safe(pos,n,head,member) global() argument
|