Home
last modified time | relevance | path

Searched refs:os_strncmp (Results 1 – 25 of 46) sorted by relevance

12

/external/wpa_supplicant_8/wpa_supplicant/
Dctrl_iface.c190 if (os_strncmp(pos, "bssid ", 6) == 0) { in set_disallow_aps()
211 } else if (os_strncmp(pos, "ssid ", 5) == 0) { in set_disallow_aps()
631 } else if (os_strncmp(cmd, "p2p_dev_addr=", 13) == 0) { in wpa_supplicant_ctrl_iface_wps_pbc()
1675 if (os_strncmp(cmd, "clear", 5) == 0) { in wpa_supplicant_ctrl_iface_blacklist()
2523 if (os_strncmp(cmd, "sp_fqdn=", 8) == 0) { in wpa_supplicant_ctrl_iface_remove_cred()
3333 if (os_strncmp(cmd, "RANGE=", 6) == 0) { in wpa_supplicant_ctrl_iface_bss()
3334 if (os_strncmp(cmd + 6, "ALL", 3) == 0) { in wpa_supplicant_ctrl_iface_bss()
3380 } else if (os_strncmp(cmd, "FIRST", 5) == 0) in wpa_supplicant_ctrl_iface_bss()
3382 else if (os_strncmp(cmd, "LAST", 4) == 0) in wpa_supplicant_ctrl_iface_bss()
3384 else if (os_strncmp(cmd, "ID-", 3) == 0) { in wpa_supplicant_ctrl_iface_bss()
[all …]
Dctrl_iface_unix.c162 } else if (os_strncmp(buf, "LEVEL ", 6) == 0) { in wpa_supplicant_ctrl_iface_receive()
227 if (os_strncmp(pbuf, "DIR=", 4) == 0) { in wpa_supplicant_ctrl_iface_path()
310 if (os_strncmp(buf, "DIR=", 4) == 0) { in wpa_supplicant_ctrl_iface_init()
514 if (os_strncmp(buf, "DIR=", 4) == 0) { in wpa_supplicant_ctrl_iface_deinit()
Dctrl_iface_udp.c195 if (os_strncmp(buf, "COOKIE=", 7) != 0) { in wpa_supplicant_ctrl_iface_receive()
229 } else if (os_strncmp(pos, "LEVEL ", 6) == 0) { in wpa_supplicant_ctrl_iface_receive()
484 if (os_strncmp(buf, "COOKIE=", 7) != 0) { in wpa_supplicant_global_ctrl_iface_receive()
Dbgscan.c56 if (os_strncmp(name, bgscan_modules[i]->name, nlen) == 0) { in bgscan_init()
Dautoscan.c70 if (os_strncmp(name, autoscan_modules[i]->name, nlen) == 0) { in autoscan_init()
Dbgscan_learn.c118 os_strncmp(buf, "wpa_supplicant-bgscan-learn\n", 28) != 0) { in bgscan_learn_load()
126 if (os_strncmp(buf, "BSS ", 4) == 0) { in bgscan_learn_load()
141 if (os_strncmp(buf, "NEIGHBOR ", 9) == 0) { in bgscan_learn_load()
/external/wpa_supplicant_8/wpa_supplicant/dbus/
Ddbus_new_helpers.c31 if (os_strncmp(dsc->dbus_interface, interface, in fill_dict_with_properties()
142 return !os_strncmp(registered_sig, sig, MAX_SIG_LEN); in is_signature_correct()
253 if (!os_strncmp(property_dsc->dbus_property, property, in properties_get_or_set()
255 !os_strncmp(property_dsc->dbus_interface, interface, in properties_get_or_set()
269 if (os_strncmp(WPA_DBUS_PROPERTIES_GET, method, in properties_get_or_set()
288 if (!os_strncmp(WPA_DBUS_PROPERTIES_GET, method, in properties_handler()
290 !os_strncmp(WPA_DBUS_PROPERTIES_SET, method, in properties_handler()
292 !os_strncmp(WPA_DBUS_PROPERTIES_GETALL, method, in properties_handler()
304 if (!os_strncmp(WPA_DBUS_PROPERTIES_GETALL, method, in properties_handler()
331 if (!os_strncmp(method_dsc->dbus_method, method, in msg_method_handler()
[all …]
/external/wpa_supplicant_8/hostapd/
Dctrl_iface.c873 } else if (os_strncmp(buf, "RELOG", 5) == 0) { in hostapd_ctrl_iface_receive()
908 } else if (os_strncmp(buf, "STA ", 4) == 0) { in hostapd_ctrl_iface_receive()
911 } else if (os_strncmp(buf, "STA-NEXT ", 9) == 0) { in hostapd_ctrl_iface_receive()
920 } else if (os_strncmp(buf, "LEVEL ", 6) == 0) { in hostapd_ctrl_iface_receive()
924 } else if (os_strncmp(buf, "NEW_STA ", 8) == 0) { in hostapd_ctrl_iface_receive()
927 } else if (os_strncmp(buf, "DEAUTHENTICATE ", 15) == 0) { in hostapd_ctrl_iface_receive()
930 } else if (os_strncmp(buf, "DISASSOCIATE ", 13) == 0) { in hostapd_ctrl_iface_receive()
935 } else if (os_strncmp(buf, "SA_QUERY ", 9) == 0) { in hostapd_ctrl_iface_receive()
941 } else if (os_strncmp(buf, "WPS_PIN ", 8) == 0) { in hostapd_ctrl_iface_receive()
944 } else if (os_strncmp(buf, "WPS_CHECK_PIN ", 14) == 0) { in hostapd_ctrl_iface_receive()
[all …]
Dconfig_file.c203 if (os_strncmp(fname, "sqlite:", 7) == 0) { in hostapd_config_read_eap_user()
354 if (os_strncmp(pos, "[ver=0]", 7) == 0) { in hostapd_config_read_eap_user()
359 if (os_strncmp(pos, "[ver=1]", 7) == 0) { in hostapd_config_read_eap_user()
364 if (os_strncmp(pos, "[2]", 3) == 0) { in hostapd_config_read_eap_user()
391 } else if (os_strncmp(pos, "hash:", 5) == 0) { in hostapd_config_read_eap_user()
444 if (os_strncmp(pos, "[2]", 3) == 0) { in hostapd_config_read_eap_user()
832 if (os_strncmp(pos, "data", 4) == 0 && in hostapd_config_tx_queue()
836 } else if (os_strncmp(pos, "after_beacon_", 13) == 0 || in hostapd_config_tx_queue()
837 os_strncmp(pos, "beacon_", 7) == 0) { in hostapd_config_tx_queue()
2415 } else if (os_strncmp(buf, "tx_queue_", 9) == 0) { in hostapd_config_fill()
[all …]
/external/wpa_supplicant_8/src/eap_peer/
Deap_wsc.c91 if (os_strncmp(pos + 9, "OPEN", 4) == 0) in eap_wsc_new_ap_settings()
93 else if (os_strncmp(pos + 9, "WPAPSK", 6) == 0) in eap_wsc_new_ap_settings()
95 else if (os_strncmp(pos + 9, "WPA2PSK", 7) == 0) in eap_wsc_new_ap_settings()
107 if (os_strncmp(pos + 9, "NONE", 4) == 0) in eap_wsc_new_ap_settings()
109 else if (os_strncmp(pos + 9, "WEP", 3) == 0) in eap_wsc_new_ap_settings()
111 else if (os_strncmp(pos + 9, "TKIP", 4) == 0) in eap_wsc_new_ap_settings()
113 else if (os_strncmp(pos + 9, "CCMP", 4) == 0) in eap_wsc_new_ap_settings()
201 os_strncmp((const char *) cfg.pin, "nfc-pw", 6) == 0) { in eap_wsc_init()
Deap_mschapv2.c408 if (pos && os_strncmp(pos, "E=", 2) == 0) { in eap_mschapv2_failure_txt()
418 if (pos && os_strncmp(pos, "R=", 2) == 0) { in eap_mschapv2_failure_txt()
428 if (pos && os_strncmp(pos, "C=", 2) == 0) { in eap_mschapv2_failure_txt()
456 if (pos && os_strncmp(pos, "V=", 2) == 0) { in eap_mschapv2_failure_txt()
466 if (pos && os_strncmp(pos, "M=", 2) == 0) { in eap_mschapv2_failure_txt()
Deap_fast_pac.c264 if (os_strncmp(pac_file, "blob://", 7) == 0) { in eap_fast_init_pac_data()
536 if (os_strncmp(pac_file, "blob://", 7) == 0) { in eap_fast_write_pac()
761 if (os_strncmp(pac_file, "blob://", 7) == 0) { in eap_fast_load_pac_bin()
/external/wpa_supplicant_8/src/utils/
Dos_none.c175 return os_strncmp(s1, s2, n); in os_strncasecmp()
197 int os_strncmp(const char *s1, const char *s2, size_t n) in os_strncmp() function
Dos.h361 int os_strncmp(const char *s1, const char *s2, size_t n);
465 #ifndef os_strncmp
466 #define os_strncmp(s1, s2, n) strncmp((s1), (s2), (n)) macro
Dos_internal.c352 return os_strncmp(s1, s2, n); in os_strncasecmp()
395 int os_strncmp(const char *s1, const char *s2, size_t n) in os_strncmp() function
459 if (os_strncmp(haystack, needle, len) == 0) in os_strstr()
Dext_password_test.c58 if (os_strncmp(pos, name, nlen) == 0 && pos[nlen] == '=') { in ext_password_test_get()
/external/wpa_supplicant_8/src/common/
Dieee802_11_common.c428 if (os_strncmp(pos, "be_", 3) == 0) { in hostapd_config_wmm_ac()
431 } else if (os_strncmp(pos, "bk_", 3) == 0) { in hostapd_config_wmm_ac()
434 } else if (os_strncmp(pos, "vi_", 3) == 0) { in hostapd_config_wmm_ac()
437 } else if (os_strncmp(pos, "vo_", 3) == 0) { in hostapd_config_wmm_ac()
/external/wpa_supplicant_8/src/wps/
Dwps_er_ssdp.c49 if (os_strncmp(buf, "HTTP/1.1 200 OK", 15) != 0) in wps_er_ssdp_rx()
53 if (os_strncmp(buf, "NOTIFY ", 7) != 0) in wps_er_ssdp_rx()
Dhttp_client.c254 if (os_strncmp(url, "http://", 7) != 0) in http_client_url()
335 if (os_strncmp(url, "http://", 7) == 0) in http_link_update()
338 if (os_strncmp(base, "http://", 7) != 0) in http_link_update()
/external/wpa_supplicant_8/src/crypto/
Dtls_openssl.c1052 if (os_strncmp(pos, "EMAIL:", 6) == 0) { in tls_match_altsubject()
1055 } else if (os_strncmp(pos, "DNS:", 4) == 0) { in tls_match_altsubject()
1058 } else if (os_strncmp(pos, "URI:", 4) == 0) { in tls_match_altsubject()
1068 if (os_strncmp(end + 1, "EMAIL:", 6) == 0 || in tls_match_altsubject()
1069 os_strncmp(end + 1, "DNS:", 4) == 0 || in tls_match_altsubject()
1070 os_strncmp(end + 1, "URI:", 4) == 0) in tls_match_altsubject()
1369 if (ca_cert && os_strncmp(ca_cert, "probe://", 8) == 0) { in tls_connection_ca_cert()
1377 if (ca_cert && os_strncmp(ca_cert, "hash://", 7) == 0) { in tls_connection_ca_cert()
1380 if (os_strncmp(pos, "server/sha256/", 14) != 0) { in tls_connection_ca_cert()
1439 if (ca_cert && os_strncmp("keystore://", ca_cert, 11) == 0) { in tls_connection_ca_cert()
[all …]
/external/wpa_supplicant_8/src/ap/
Dwps_hostapd.c258 return os_strncmp(str, start, os_strlen(start)) == 0; in str_starts()
588 if (os_strncmp(buf, "bss=", 4) == 0) in hapd_wps_cred_cb()
1562 if (os_strncmp(auth, "OPEN", 4) == 0) in hostapd_wps_config_ap()
1564 else if (os_strncmp(auth, "WPAPSK", 6) == 0) in hostapd_wps_config_ap()
1566 else if (os_strncmp(auth, "WPA2PSK", 7) == 0) in hostapd_wps_config_ap()
1572 if (os_strncmp(encr, "NONE", 4) == 0) in hostapd_wps_config_ap()
1574 else if (os_strncmp(encr, "WEP", 3) == 0) in hostapd_wps_config_ap()
1576 else if (os_strncmp(encr, "TKIP", 4) == 0) in hostapd_wps_config_ap()
1578 else if (os_strncmp(encr, "CCMP", 4) == 0) in hostapd_wps_config_ap()
/external/wpa_supplicant_8/src/drivers/
Ddriver_wext.c243 if (os_strncmp(custom, "MLME-MICHAELMICFAILURE.indication", 33) == 0) { in wpa_driver_wext_event_wireless_custom()
248 } else if (os_strncmp(custom, "ASSOCINFO(ReqIEs=", 17) == 0) { in wpa_driver_wext_event_wireless_custom()
272 if (os_strncmp(spos, " RespIEs=", 9) == 0) { in wpa_driver_wext_event_wireless_custom()
294 } else if (os_strncmp(custom, "STKSTART.request=", 17) == 0) { in wpa_driver_wext_event_wireless_custom()
303 } else if (os_strncmp(custom, "STOP", 4) == 0) { in wpa_driver_wext_event_wireless_custom()
305 } else if (os_strncmp(custom, "START", 5) == 0) { in wpa_driver_wext_event_wireless_custom()
307 } else if (os_strncmp(custom, "HANG", 4) == 0) { in wpa_driver_wext_event_wireless_custom()
933 if (os_strncmp(drv->ifname, "wlan", 4) == 0) { in wpa_driver_wext_finish_drv_init()
1302 if (clen > 7 && os_strncmp(custom, "wpa_ie=", 7) == 0) { in wext_get_scan_custom()
1317 } else if (clen > 7 && os_strncmp(custom, "rsn_ie=", 7) == 0) { in wext_get_scan_custom()
[all …]
Ddriver_ndis.c2079 if (os_strncmp(desc, drv->ifname, os_strlen(drv->ifname)) == 0) in wpa_driver_ndis_get_names()
2096 os_strncmp(name, "\\DEVICE\\", 8) == 0 ? name + 8 : name, in wpa_driver_ndis_get_names()
2254 os_strncmp(desc[i], drv->ifname, os_strlen(drv->ifname)) == in wpa_driver_ndis_get_names()
2265 os_strncmp(name[found_desc], "\\Device\\NPF_", 12) in wpa_driver_ndis_get_names()
2827 if (os_strncmp(ifname, "\\Device\\NPF_", 12) == 0) in wpa_driver_ndis_init()
2829 else if (os_strncmp(ifname, "\\DEVICE\\", 8) == 0) in wpa_driver_ndis_init()
3046 if (os_strncmp(name, "\\DEVICE\\", 8) == 0) in wpa_driver_ndis_get_interfaces()
3183 if (os_strncmp(name[i], "\\Device\\NPF_", 12) == 0) in wpa_driver_ndis_get_interfaces()
/external/wpa_supplicant_8/src/eap_server/
Deap_sim_db.c422 if (os_strncmp(start, "FAILURE", 7) == 0) { in eap_sim_db_sim_resp_auth()
500 if (os_strncmp(start, "FAILURE", 7) == 0) { in eap_sim_db_aka_resp_auth()
628 if (os_strncmp(data->fname, "unix:", 5) != 0) in eap_sim_db_open_socket()
720 if (os_strncmp(data->fname, "unix:", 5) == 0) { in eap_sim_db_init()
/external/wpa_supplicant_8/src/l2_packet/
Dl2_packet_privsep.c114 os_strncmp(from.sun_path, l2->priv_addr.sun_path, in l2_packet_receive()

12