Home
last modified time | relevance | path

Searched refs:ARRAY_SIZE (Results 1 – 25 of 49) sorted by relevance

12

/hostap-latest/src/fst/
Dfst_ctrl_aux.c56 ARRAY_SIZE(session_event_names)); in fst_session_event_type_name()
62 return fst_get_str_name(reason, reason_names, ARRAY_SIZE(reason_names)); in fst_reason_name()
69 ARRAY_SIZE(session_state_names)); in fst_session_state_name()
/hostap-latest/src/utils/
Dutils_module_tests.c897 for (i = 0; i < ARRAY_SIZE(json_test_cases); i++) { in json_tests()
1071 for (i = 0; i < ARRAY_SIZE(const_time_fill_msb_tests); i++) { in const_time_tests()
1083 for (i = 0; i < ARRAY_SIZE(const_time_is_zero_tests); i++) { in const_time_tests()
1095 for (i = 0; i < ARRAY_SIZE(const_time_eq_tests); i++) { in const_time_tests()
1113 for (i = 0; i < ARRAY_SIZE(const_time_eq_bin_tests); i++) { in const_time_tests()
1126 for (i = 0; i < ARRAY_SIZE(const_time_select_tests); i++) { in const_time_tests()
1139 for (i = 0; i < ARRAY_SIZE(const_time_select_int_tests); i++) { in const_time_tests()
1152 for (i = 0; i < ARRAY_SIZE(const_time_select_u8_tests); i++) { in const_time_tests()
1165 for (i = 0; i < ARRAY_SIZE(const_time_select_s8_tests); i++) { in const_time_tests()
1178 for (i = 0; i < ARRAY_SIZE(const_time_select_bin_tests); i++) { in const_time_tests()
[all …]
Dos_unix.c355 setgroups(ARRAY_SIZE(groups), groups); in os_program_init()
561 for (idx = 0; idx < ARRAY_SIZE(wpa_trace_test_fail[is_alloc]); idx++) { in testing_test_fail()
565 if (idx >= ARRAY_SIZE(wpa_trace_test_fail[is_alloc])) in testing_test_fail()
576 for (j = 0; j < ARRAY_SIZE(ignore_list) && i < res; j++) { in testing_test_fail()
668 idx < ARRAY_SIZE(wpa_trace_test_fail[is_alloc])) { in testing_set_fail_pattern()
699 for (idx = 0; idx < ARRAY_SIZE(wpa_trace_test_fail[is_alloc]); idx++) { in testing_get_fail_pattern()
Dcommon.h610 #if !defined(ARRAY_SIZE)
611 #define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0])) macro
/hostap-latest/wpa_supplicant/
Dop_classes.c85 num_chan = ARRAY_SIZE(center_channels_6ghz); in verify_80mhz()
88 num_chan = ARRAY_SIZE(center_channels_5ghz); in verify_80mhz()
154 num_chan = ARRAY_SIZE(center_channels_6ghz); in verify_160mhz()
157 num_chan = ARRAY_SIZE(center_channels_5ghz); in verify_160mhz()
222 num_chan = ARRAY_SIZE(center_channels_6ghz); in verify_320mhz()
395 for (i = 0; i < ARRAY_SIZE(channels); i++) { in wpas_op_class_supported()
Drrm.c578 num_chan = is_6ghz ? ARRAY_SIZE(channels_80mhz_6ghz) : in wpas_op_class_freqs()
579 ARRAY_SIZE(channels_80mhz_5ghz); in wpas_op_class_freqs()
583 num_chan = is_6ghz ? ARRAY_SIZE(channels_160mhz_6ghz) : in wpas_op_class_freqs()
584 ARRAY_SIZE(channels_160mhz_5ghz); in wpas_op_class_freqs()
587 num_chan = ARRAY_SIZE(channels_320mhz_6ghz); in wpas_op_class_freqs()
Dwpa_cli_cmds.c154 int i, num_fields = ARRAY_SIZE(network_fields); in wpa_cli_complete_network()
435 int i, num_fields = ARRAY_SIZE(fields); in wpa_cli_complete_set()
766 int i, num_fields = ARRAY_SIZE(fields); in wpa_cli_complete_get()
1485 int i, num_fields = ARRAY_SIZE(network_fields); in wpa_cli_complete_dup_network()
1543 int i, num_fields = ARRAY_SIZE(cred_fields); in wpa_cli_complete_cred()
1696 int i, num_fields = ARRAY_SIZE(fields); in wpa_cli_complete_get_capability()
1697 int num_iftypes = ARRAY_SIZE(iftypes); in wpa_cli_complete_get_capability()
2201 int i, num_fields = ARRAY_SIZE(fields); in wpa_cli_complete_p2p_set()
Dwpa_cli.c578 int i, num_fields = ARRAY_SIZE(fields); in wpa_cli_complete_set()
679 int i, num_fields = ARRAY_SIZE(fields); in wpa_cli_complete_get()
1568 int i, num_fields = ARRAY_SIZE(network_fields); in wpa_cli_complete_network()
1619 int i, num_fields = ARRAY_SIZE(network_fields); in wpa_cli_complete_dup_network()
1683 int i, num_fields = ARRAY_SIZE(cred_fields); in wpa_cli_complete_cred()
1843 int i, num_fields = ARRAY_SIZE(fields); in wpa_cli_complete_get_capability()
1844 int num_iftypes = ARRAY_SIZE(iftypes); in wpa_cli_complete_get_capability()
2561 int i, num_fields = ARRAY_SIZE(fields); in wpa_cli_complete_p2p_set()
4161 count = ARRAY_SIZE(wpa_cli_commands); in wpa_list_cmd_list()
/hostap-latest/src/crypto/
Dcrypto_module_tests.c288 for (i = 0; i < ARRAY_SIZE(omac1_test_vectors); i++) { in test_omac1()
387 for (i = 0; i < ARRAY_SIZE(vectors); i++) { in test_cbc()
477 for (i = 0; i < ARRAY_SIZE(vectors); i++) { in test_ecb()
947 for (i = 0; i < ARRAY_SIZE(tests); i++) { in test_md5()
1261 #define NUM_PASSPHRASE_TESTS ARRAY_SIZE(passphrase_tests)
1346 #define NUM_RFC6070_TESTS ARRAY_SIZE(rfc6070_tests)
1845 for (i = 0; i < ARRAY_SIZE(tests); i++) { in test_sha256()
1871 for (i = 0; i < ARRAY_SIZE(hmac_tests); i++) { in test_sha256()
1985 for (i = 0; i < ARRAY_SIZE(hmac_tests); i++) { in test_sha384()
2462 for (i = 0; i < ARRAY_SIZE(hpke_tests); i++) { in test_hpke()
Daes-siv.c131 if (num_elem > ARRAY_SIZE(_addr) - 1 || in aes_siv_encrypt()
176 if (iv_c_len < AES_BLOCK_SIZE || num_elem > ARRAY_SIZE(_addr) - 1 || in aes_siv_decrypt()
Ddh_groups.c1172 #define NUM_DH_GROUPS ARRAY_SIZE(dh_groups)
/hostap-latest/src/l2_packet/
Dl2_packet_linux.c65 .len = ARRAY_SIZE(dhcp_sock_filter_insns),
83 .len = ARRAY_SIZE(ndisc_sock_filter_insns),
103 .len = ARRAY_SIZE(pkt_type_filter_insns),
360 .len = ARRAY_SIZE(ethertype_sock_filter_insns), in l2_packet_init_bridge()
/hostap-latest/src/eap_common/
Deap_teap_common.c268 return tls_cipher_suite_match(sha1_cs, ARRAY_SIZE(sha1_cs), cs); in tls_cipher_suite_mac_sha1()
293 return tls_cipher_suite_match(sha256_cs, ARRAY_SIZE(sha256_cs), cs); in tls_cipher_suite_mac_sha256()
313 return tls_cipher_suite_match(sha384_cs, ARRAY_SIZE(sha384_cs), cs); in tls_cipher_suite_mac_sha384()
743 return tls_cipher_suite_match(ok_cs, ARRAY_SIZE(ok_cs), cs); in eap_teap_allowed_anon_prov_cipher_suite()
Dikev2_common.c24 #define NUM_INTEG_ALGS ARRAY_SIZE(ikev2_integ_algs)
32 #define NUM_PRF_ALGS ARRAY_SIZE(ikev2_prf_algs)
40 #define NUM_ENCR_ALGS ARRAY_SIZE(ikev2_encr_algs)
/hostap-latest/tests/
Dtest-milenage.c249 #define NUM_GSM_TESTS ARRAY_SIZE(gsm_test_sets)
693 #define NUM_TESTS ARRAY_SIZE(test_sets)
Dtest-md4.c64 for (i = 0; i < ARRAY_SIZE(tests); i++) { in main()
Dtest-rc4.c201 #define NUM_TESTS ARRAY_SIZE(tests)
/hostap-latest/src/common/
Dhw_features_common.c163 for (k = 0; k < ARRAY_SIZE(allowed); k++) { in allowed_ht40_channel_pair()
1002 count = ARRAY_SIZE(punct_bitmap_80); in is_punct_bitmap_valid()
1008 count = ARRAY_SIZE(punct_bitmap_160); in is_punct_bitmap_valid()
1014 count = ARRAY_SIZE(punct_bitmap_320); in is_punct_bitmap_valid()
Dieee802_11_common.c2512 size_t global_op_class_size = ARRAY_SIZE(global_op_class);
2839 size = ARRAY_SIZE(us_op_class); in country_to_global_op_class()
2842 size = ARRAY_SIZE(eu_op_class); in country_to_global_op_class()
2845 size = ARRAY_SIZE(jp_op_class); in country_to_global_op_class()
2848 size = ARRAY_SIZE(cn_op_class); in country_to_global_op_class()
/hostap-latest/src/wps/
Dwps_module_tests.c272 for (i = 0; i < ARRAY_SIZE(wps_attr_parse_test_cases); i++) { in wps_attr_parse_tests()
/hostap-latest/wlantest/
Dwlantest_cli.c611 count = ARRAY_SIZE(sta_counters); in complete_get_sta_counter()
711 count = ARRAY_SIZE(bss_counters); in complete_get_bss_counter()
831 count = ARRAY_SIZE(tdls_counters); in complete_get_tdls_counter()
967 count = ARRAY_SIZE(inject_frames); in complete_inject()
1318 count = ARRAY_SIZE(sta_infos); in complete_info_sta()
1423 count = ARRAY_SIZE(bss_infos); in complete_info_bss()
1749 res = os_calloc(ARRAY_SIZE(wlantest_cli_commands), sizeof(char *)); in wlantest_cli_cmd_list()
/hostap-latest/tests/hwsim/tnc/
Dhostap2_imc.c114 ARRAY_SIZE(message_types)); in TNC_IMC_ProvideBindFunction()
Dhostap2_imv.c198 ARRAY_SIZE(message_types)); in TNC_IMV_ProvideBindFunction()
/hostap-latest/src/tls/
Dtlsv1_common.c73 #define NUM_TLS_CIPHER_SUITES ARRAY_SIZE(tls_cipher_suites)
99 #define NUM_TLS_CIPHER_DATA ARRAY_SIZE(tls_ciphers)
/hostap-latest/src/ap/
Ddfs.c134 allowed_no = ARRAY_SIZE(allowed_40); in dfs_is_chan_allowed()
138 allowed_no = ARRAY_SIZE(allowed_80); in dfs_is_chan_allowed()
142 allowed_no = ARRAY_SIZE(allowed_160); in dfs_is_chan_allowed()

12