Home
last modified time | relevance | path

Searched refs:conf (Results 1 – 25 of 695) sorted by relevance

12345678910>>...28

/external/wpa_supplicant_8/src/ap/
Dap_config.c117 struct hostapd_config *conf; in hostapd_config_defaults() local
140 conf = os_zalloc(sizeof(*conf)); in hostapd_config_defaults()
142 if (conf == NULL || bss == NULL) { in hostapd_config_defaults()
145 os_free(conf); in hostapd_config_defaults()
149 conf->bss = os_calloc(1, sizeof(struct hostapd_bss_config *)); in hostapd_config_defaults()
150 if (conf->bss == NULL) { in hostapd_config_defaults()
151 os_free(conf); in hostapd_config_defaults()
155 conf->bss[0] = bss; in hostapd_config_defaults()
159 os_free(conf->bss); in hostapd_config_defaults()
160 os_free(conf); in hostapd_config_defaults()
[all …]
Dauthsrv.c100 struct hostapd_bss_config *conf = hapd->conf; in hostapd_setup_radius_srv() local
102 srv.client_file = conf->radius_server_clients; in hostapd_setup_radius_srv()
103 srv.auth_port = conf->radius_server_auth_port; in hostapd_setup_radius_srv()
104 srv.acct_port = conf->radius_server_acct_port; in hostapd_setup_radius_srv()
109 srv.pac_opaque_encr_key = conf->pac_opaque_encr_key; in hostapd_setup_radius_srv()
110 srv.eap_fast_a_id = conf->eap_fast_a_id; in hostapd_setup_radius_srv()
111 srv.eap_fast_a_id_len = conf->eap_fast_a_id_len; in hostapd_setup_radius_srv()
112 srv.eap_fast_a_id_info = conf->eap_fast_a_id_info; in hostapd_setup_radius_srv()
113 srv.eap_fast_prov = conf->eap_fast_prov; in hostapd_setup_radius_srv()
114 srv.pac_key_lifetime = conf->pac_key_lifetime; in hostapd_setup_radius_srv()
[all …]
Dieee802_11_shared.c35 if (hapd->conf->assoc_sa_query_max_timeout > tu) in hostapd_eid_assoc_comeback_time()
36 timeout = hapd->conf->assoc_sa_query_max_timeout - tu; in hostapd_eid_assoc_comeback_time()
39 if (timeout < hapd->conf->assoc_sa_query_max_timeout) in hostapd_eid_assoc_comeback_time()
179 if (hapd->conf->proxy_arp) in hostapd_ext_capab_byte()
183 if (hapd->conf->wnm_sleep_mode) in hostapd_ext_capab_byte()
185 if (hapd->conf->bss_transition) in hostapd_ext_capab_byte()
192 if (hapd->conf->time_advertisement == 2) in hostapd_ext_capab_byte()
194 if (hapd->conf->interworking) in hostapd_ext_capab_byte()
198 if (hapd->conf->qos_map_set_len) in hostapd_ext_capab_byte()
200 if (hapd->conf->tdls & TDLS_PROHIBIT) in hostapd_ext_capab_byte()
[all …]
Dhostapd.c83 radius_client_reconfig(hapd->radius, hapd->conf->radius); in hostapd_reload_bss()
86 ssid = &hapd->conf->ssid; in hostapd_reload_bss()
93 hostapd_config_clear_wpa_psk(&hapd->conf->ssid.wpa_psk); in hostapd_reload_bss()
95 if (hostapd_setup_wpa_psk(hapd->conf)) { in hostapd_reload_bss()
100 if (hapd->conf->ieee802_1x || hapd->conf->wpa) in hostapd_reload_bss()
101 hostapd_set_drv_ieee8021x(hapd, hapd->conf->iface, 1); in hostapd_reload_bss()
103 hostapd_set_drv_ieee8021x(hapd, hapd->conf->iface, 0); in hostapd_reload_bss()
105 if ((hapd->conf->wpa || hapd->conf->osen) && hapd->wpa_auth == NULL) { in hostapd_reload_bss()
109 } else if (hapd->conf->wpa) { in hostapd_reload_bss()
121 hostapd_setup_encryption(hapd->conf->iface, hapd); in hostapd_reload_bss()
[all …]
Dhw_features.c154 if (iface->conf->basic_rates) in hostapd_prepare_rates()
155 basic_rates = iface->conf->basic_rates; in hostapd_prepare_rates()
196 if (iface->conf->supported_rates && in hostapd_prepare_rates()
197 !hostapd_rate_found(iface->conf->supported_rates, in hostapd_prepare_rates()
213 (!iface->conf->ieee80211n || !iface->conf->require_ht)) { in hostapd_prepare_rates()
229 if (!iface->conf->secondary_channel) in ieee80211n_allowed_ht40_channel_pair()
232 pri_chan = iface->conf->channel; in ieee80211n_allowed_ht40_channel_pair()
233 sec_chan = pri_chan + iface->conf->secondary_channel * 4; in ieee80211n_allowed_ht40_channel_pair()
242 if (iface->conf->secondary_channel > 0) { in ieee80211n_switch_pri_sec()
243 iface->conf->channel += 4; in ieee80211n_switch_pri_sec()
[all …]
Dwpa_auth_glue.c31 static void hostapd_wpa_auth_conf(struct hostapd_bss_config *conf, in hostapd_wpa_auth_conf() argument
36 wconf->wpa = conf->wpa; in hostapd_wpa_auth_conf()
37 wconf->wpa_key_mgmt = conf->wpa_key_mgmt; in hostapd_wpa_auth_conf()
38 wconf->wpa_pairwise = conf->wpa_pairwise; in hostapd_wpa_auth_conf()
39 wconf->wpa_group = conf->wpa_group; in hostapd_wpa_auth_conf()
40 wconf->wpa_group_rekey = conf->wpa_group_rekey; in hostapd_wpa_auth_conf()
41 wconf->wpa_strict_rekey = conf->wpa_strict_rekey; in hostapd_wpa_auth_conf()
42 wconf->wpa_gmk_rekey = conf->wpa_gmk_rekey; in hostapd_wpa_auth_conf()
43 wconf->wpa_ptk_rekey = conf->wpa_ptk_rekey; in hostapd_wpa_auth_conf()
44 wconf->wpa_group_update_count = conf->wpa_group_update_count; in hostapd_wpa_auth_conf()
[all …]
Dbeacon.c43 if (hapd->conf->radio_measurements[i]) in hostapd_eid_rm_enabled_capab()
52 os_memcpy(eid, hapd->conf->radio_measurements, RRM_CAPABILITIES_IE_LEN); in hostapd_eid_rm_enabled_capab()
64 if (hapd->conf->bss_load_test_set) { in hostapd_eid_bss_load()
67 os_memcpy(eid, hapd->conf->bss_load_test, 5); in hostapd_eid_bss_load()
72 if (hapd->conf->bss_load_update_period) { in hostapd_eid_bss_load()
388 if (hapd->conf->vendor_elements) in hostapd_gen_probe_resp()
389 buflen += wpabuf_len(hapd->conf->vendor_elements); in hostapd_gen_probe_resp()
390 if (hapd->conf->vendor_vht) { in hostapd_gen_probe_resp()
426 *pos++ = hapd->conf->ssid.ssid_len; in hostapd_gen_probe_resp()
427 os_memcpy(pos, hapd->conf->ssid.ssid, hapd->conf->ssid.ssid_len); in hostapd_gen_probe_resp()
[all …]
Ddfs.c28 if (iface->conf->ieee80211n && iface->conf->secondary_channel) in dfs_get_used_n_chans()
31 if (iface->conf->ieee80211ac) { in dfs_get_used_n_chans()
32 switch (iface->conf->vht_oper_chwidth) { in dfs_get_used_n_chans()
168 if (!iface->conf->acs_ch_list.num) in is_in_chanlist()
171 return freq_range_list_includes(&iface->conf->acs_ch_list, chan->chan); in is_in_chanlist()
198 if (iface->conf->ieee80211n && in dfs_find_channel()
199 iface->conf->secondary_channel && in dfs_find_channel()
228 if (!iface->conf->ieee80211ac) in dfs_adjust_vht_center_freq()
236 switch (iface->conf->vht_oper_chwidth) { in dfs_adjust_vht_center_freq()
268 int channel_no = iface->conf->channel; in dfs_get_start_chan_idx()
[all …]
Dwpa_auth_ie.c27 static int wpa_write_wpa_ie(struct wpa_auth_config *conf, u8 *buf, size_t len) in wpa_write_wpa_ie() argument
40 suite = wpa_cipher_to_suite(WPA_PROTO_WPA, conf->wpa_group); in wpa_write_wpa_ie()
43 conf->wpa_group); in wpa_write_wpa_ie()
52 num_suites = wpa_cipher_put_suites(pos, conf->wpa_pairwise); in wpa_write_wpa_ie()
55 conf->wpa_pairwise); in wpa_write_wpa_ie()
65 if (conf->wpa_key_mgmt & WPA_KEY_MGMT_IEEE8021X) { in wpa_write_wpa_ie()
70 if (conf->wpa_key_mgmt & WPA_KEY_MGMT_PSK) { in wpa_write_wpa_ie()
78 conf->wpa_key_mgmt); in wpa_write_wpa_ie()
91 int wpa_write_rsn_ie(struct wpa_auth_config *conf, u8 *buf, size_t len, in wpa_write_rsn_ie() argument
105 suite = wpa_cipher_to_suite(WPA_PROTO_RSN, conf->wpa_group); in wpa_write_rsn_ie()
[all …]
Dgas_serv.c57 hapd->conf->gas_comeback_delay / 1024 + in gas_dialog_create()
155 if (hapd->conf->hs20_oper_friendly_name) in anqp_add_hs_capab_list()
157 if (hapd->conf->hs20_wan_metrics) in anqp_add_hs_capab_list()
159 if (hapd->conf->hs20_connection_capability) in anqp_add_hs_capab_list()
161 if (hapd->conf->nai_realm_data) in anqp_add_hs_capab_list()
163 if (hapd->conf->hs20_operating_class) in anqp_add_hs_capab_list()
165 if (hapd->conf->hs20_osu_providers_count) in anqp_add_hs_capab_list()
167 if (hapd->conf->hs20_icons_count) in anqp_add_hs_capab_list()
179 dl_list_for_each(elem, &hapd->conf->anqp_elem, struct anqp_element, in get_anqp_elem()
232 if (hapd->conf->venue_name || get_anqp_elem(hapd, ANQP_VENUE_NAME)) in anqp_add_capab_list()
[all …]
Dwps_hostapd.c65 (hapd->conf->wps_independent || in wps_for_each()
66 data->calling_hapd->conf->wps_independent)) in wps_for_each()
101 struct hostapd_ssid *ssid = &hapd->conf->ssid; in hostapd_wps_new_psk_cb()
191 if (hapd->conf->wps_pin_requests) { in hostapd_wps_pin_needed_cb()
194 f = fopen(hapd->conf->wps_pin_requests, "a"); in hostapd_wps_pin_needed_cb()
316 struct hostapd_bss_config *bss = hapd->conf; in hapd_wps_reconfig_in_memory()
422 if ((hapd->conf->wps_cred_processing == 1 || in hapd_wps_cred_cb()
423 hapd->conf->wps_cred_processing == 2) && cred->cred_attr) { in hapd_wps_cred_cb()
425 } else if (hapd->conf->wps_cred_processing == 1 || in hapd_wps_cred_cb()
426 hapd->conf->wps_cred_processing == 2) { in hapd_wps_cred_cb()
[all …]
Dieee802_1x.c65 xhdr->version = hapd->conf->eapol_version; in ieee802_1x_send()
168 if (hapd->conf->eapol_key_index_workaround) { in ieee802_1x_tx_key_one()
199 hdr->version = hapd->conf->eapol_version; in ieee802_1x_tx_key_one()
236 hapd->conf->default_wep_key_len); in ieee802_1x_tx_key()
239 if (hapd->conf->individual_wep_key_len > 0) { in ieee802_1x_tx_key()
241 ikey = os_malloc(hapd->conf->individual_wep_key_len); in ieee802_1x_tx_key()
243 random_get_bytes(ikey, hapd->conf->individual_wep_key_len)) in ieee802_1x_tx_key()
252 ikey, hapd->conf->individual_wep_key_len); in ieee802_1x_tx_key()
255 hapd->conf->individual_wep_key_len); in ieee802_1x_tx_key()
259 if (hostapd_drv_set_key(hapd->conf->iface, hapd, WPA_ALG_WEP, in ieee802_1x_tx_key()
[all …]
/external/wpa_supplicant_8/wpa_supplicant/
Dmesh.c72 struct mesh_conf *conf; in mesh_config_create() local
75 conf = os_zalloc(sizeof(struct mesh_conf)); in mesh_config_create()
76 if (!conf) in mesh_config_create()
79 os_memcpy(conf->meshid, ssid->ssid, ssid->ssid_len); in mesh_config_create()
80 conf->meshid_len = ssid->ssid_len; in mesh_config_create()
83 conf->security |= MESH_CONF_SEC_AUTH | in mesh_config_create()
86 conf->security |= MESH_CONF_SEC_NONE; in mesh_config_create()
87 conf->ieee80211w = ssid->ieee80211w; in mesh_config_create()
88 if (conf->ieee80211w == MGMT_FRAME_PROTECTION_DEFAULT) { in mesh_config_create()
90 conf->ieee80211w = wpa_s->conf->pmf; in mesh_config_create()
[all …]
Dap.c49 struct hostapd_config *conf, in wpas_conf_ap_vht() argument
54 u8 channel = conf->channel; in wpas_conf_ap_vht()
56 if (!conf->secondary_channel) in wpas_conf_ap_vht()
59 switch (conf->vht_oper_chwidth) { in wpas_conf_ap_vht()
73 conf->vht_oper_chwidth = VHT_CHANWIDTH_160MHZ; in wpas_conf_ap_vht()
76 conf->vht_oper_chwidth = VHT_CHANWIDTH_80MHZ; in wpas_conf_ap_vht()
85 conf->vht_oper_centr_freq_seg0_idx = center_chan; in wpas_conf_ap_vht()
89 conf->vht_oper_centr_freq_seg0_idx = in wpas_conf_ap_vht()
90 channel + conf->secondary_channel * 2; in wpas_conf_ap_vht()
92 conf->vht_oper_centr_freq_seg0_idx = in wpas_conf_ap_vht()
[all …]
/external/boringssl/src/crypto/conf/
Dconf.c100 CONF *conf; in NCONF_new() local
106 conf = OPENSSL_malloc(sizeof(CONF)); in NCONF_new()
107 if (conf == NULL) { in NCONF_new()
111 conf->data = lh_CONF_VALUE_new(conf_value_hash, conf_value_cmp); in NCONF_new()
112 if (conf->data == NULL) { in NCONF_new()
113 OPENSSL_free(conf); in NCONF_new()
117 return conf; in NCONF_new()
151 void NCONF_free(CONF *conf) { in NCONF_free() argument
152 if (conf == NULL || conf->data == NULL) { in NCONF_free()
156 lh_CONF_VALUE_doall(conf->data, value_free); in NCONF_free()
[all …]
/external/mesa3d/src/egl/main/
Deglconfig.c57 _eglInitConfig(_EGLConfig *conf, _EGLDisplay *dpy, EGLint id) in _eglInitConfig() argument
59 memset(conf, 0, sizeof(*conf)); in _eglInitConfig()
61 conf->Display = dpy; in _eglInitConfig()
64 conf->ConfigID = id; in _eglInitConfig()
65 conf->ConfigCaveat = EGL_NONE; in _eglInitConfig()
66 conf->TransparentType = EGL_NONE; in _eglInitConfig()
67 conf->NativeVisualType = EGL_NONE; in _eglInitConfig()
68 conf->ColorBufferType = EGL_RGB_BUFFER; in _eglInitConfig()
79 _eglLinkConfig(_EGLConfig *conf) in _eglLinkConfig() argument
81 _EGLDisplay *dpy = conf->Display; in _eglLinkConfig()
[all …]
/external/selinux/libsemanage/src/
Dconf-parse.y338 static int semanage_conf_init(semanage_conf_t * conf)
340 conf->store_type = SEMANAGE_CON_DIRECT;
341 conf->store_path = strdup(basename(selinux_policy_root()));
342 conf->ignoredirs = NULL;
343 conf->store_root_path = strdup("/var/lib/selinux");
344 conf->compiler_directory_path = strdup("/usr/libexec/selinux/hll");
345 conf->policyvers = sepol_policy_kern_vers_max();
346 conf->target_platform = SEPOL_TARGET_SELINUX;
347 conf->expand_check = 1;
348 conf->handle_unknown = -1;
[all …]
DMakefile25 DEFAULT_SEMANAGE_CONF_LOCATION=$(DESTDIR)/etc/selinux/semanage.conf
54 GENERATED=$(SWIGCOUT) $(SWIGRUBYCOUT) semanageswig_python_exception.i $(wildcard conf-*.[ch])
57 OBJS= $(patsubst %.c,%.o,$(SRCS)) conf-scan.o conf-parse.o
58 LOBJS= $(patsubst %.c,%.lo,$(SRCS)) conf-scan.lo conf-parse.lo
103 conf-scan.c: conf-scan.l conf-parse.h
106 conf-parse.c: conf-parse.y
109 conf-parse.h: conf-parse.c
117 conf-parse.o: conf-parse.c
120 conf-parse.lo: conf-parse.c
123 conf-scan.o: conf-scan.c
[all …]
/external/autotest/client/common_lib/
Dglobal_config_unittest.py76 conf = global_config.global_config variable in global_config_test
85 self.conf.set_config_files(self.global_temp.name, self.shadow_temp.name,
94 self.conf.set_config_files(global_config.DEFAULT_CONFIG_FILE,
101 val = self.conf.get_config_value("SECTION_A", "value_1", float)
108 val = self.conf.get_config_value("SECTION_B", "value_1", int)
111 val = self.conf.get_config_value("SECTION_B", "value_3", int)
113 val = self.conf.get_config_value("SECTION_B", "value_4", int)
119 val = self.conf.get_config_value("SECTION_A", "value_2")
138 self.conf.reset_config_values()
141 val = self.conf.get_config_value("SECTION_C", "value_1")
[all …]
/external/wpa_supplicant_8/src/radius/
Dradius_client.c163 struct hostapd_radius_servers *conf; member
364 struct hostapd_radius_servers *conf = radius->conf; in radius_client_retransmit() local
375 if (radius->acct_sock < 0 && conf->num_acct_servers > 1) { in radius_client_retransmit()
383 conf->acct_server->requests++; in radius_client_retransmit()
385 conf->acct_server->timeouts++; in radius_client_retransmit()
386 conf->acct_server->retransmissions++; in radius_client_retransmit()
391 if (radius->auth_sock < 0 && conf->num_auth_servers > 1) { in radius_client_retransmit()
399 conf->auth_server->requests++; in radius_client_retransmit()
401 conf->auth_server->timeouts++; in radius_client_retransmit()
402 conf->auth_server->retransmissions++; in radius_client_retransmit()
[all …]
/external/selinux/mcstrans/share/util/
Dtry-all15 …rm -rf /etc/selinux/mls/setrans.conf.bak /etc/selinux/mls/secolor.conf.bak /etc/selinux/mls/setran…
18 if [ -e $d/setrans.conf ]; then
19 mv /etc/selinux/mls/setrans.conf /etc/selinux/mls/setrans.conf.bak
23 if [ -e /etc/selinux/mls/secolor.conf ]; then
24 mv /etc/selinux/mls/secolor.conf /etc/selinux/mls/secolor.conf.bak
31 if [ -e $d/setrans.conf ]; then
32 cp -L $d/setrans.conf /etc/selinux/mls/setrans.conf
34 if [ -e $d/secolor.conf ]; then
35 cp -L $d/secolor.conf /etc/selinux/mls
49 if [ -e /etc/selinux/mls/setrans.conf.bak ]; then
[all …]
/external/clang/bindings/python/clang/
Dcindex.py153 conf.lib.clang_disposeString(self)
158 return conf.lib.clang_getCString(res)
170 conf.lib.clang_getInstantiationLocation(self, byref(f), byref(l),
185 return conf.lib.clang_getLocation(tu, file, line, column)
195 return conf.lib.clang_getLocationForOffset(tu, file, offset)
218 return conf.lib.clang_equalLocations(self, other)
245 return conf.lib.clang_getRange(start, end)
253 return conf.lib.clang_getRangeStart(self)
261 return conf.lib.clang_getRangeEnd(self)
264 return conf.lib.clang_equalRanges(self, other)
[all …]
/external/iptables/extensions/
Dlibxt_connlabel.t2 # Backup the connlabel.conf, then add some label maps for test
3 @[ -f /etc/xtables/connlabel.conf ] && mv /etc/xtables/connlabel.conf /tmp/connlabel.conf.bak
5 @echo "40 bit40" > /etc/xtables/connlabel.conf
6 @echo "41 bit41" >> /etc/xtables/connlabel.conf
7 @echo "128 bit128" >> /etc/xtables/connlabel.conf
13 @echo > /etc/xtables/connlabel.conf
15 @rm -f /etc/xtables/connlabel.conf
17 # Restore the original connlabel.conf
18 @[ -f /tmp/connlabel.conf.bak ] && mv /tmp/connlabel.conf.bak /etc/xtables/connlabel.conf
/external/dhcpcd-6.8.2/dhcpcd-hooks/
D20-resolv.conf54 if [ -f /etc/resolv.conf.head ]; then
55 cat /etc/resolv.conf.head >> "$cf"
60 if [ -f /etc/resolv.conf.tail ]; then
61 cat /etc/resolv.conf.tail >> "$cf"
65 if change_file /etc/resolv.conf "$cf"; then
66 chmod 644 /etc/resolv.conf
73 local x= conf="$signature$NL" i=${ra_count:-0} ra= warn=true
105 conf="${conf}domain $1$NL"
117 conf="${conf}search $new_domain_search$NL"
124 conf="${conf}nameserver $x$NL"
[all …]
/external/wpa_supplicant_8/hostapd/
Dconfig_file.c217 struct hostapd_bss_config *conf) in hostapd_config_read_eap_user() argument
226 os_free(conf->eap_user_sqlite); in hostapd_config_read_eap_user()
227 conf->eap_user_sqlite = os_strdup(fname + 7); in hostapd_config_read_eap_user()
520 hostapd_config_free_eap_users(conf->eap_user); in hostapd_config_read_eap_user()
521 conf->eap_user = new_user; in hostapd_config_read_eap_user()
808 static int hostapd_parse_chanlist(struct hostapd_config *conf, char *val) in hostapd_parse_chanlist() argument
819 if (freq_range_list_parse(&conf->acs_ch_list, val)) in hostapd_parse_chanlist()
865 static int hostapd_config_bss(struct hostapd_config *conf, const char *ifname) in hostapd_config_bss() argument
872 all = os_realloc_array(conf->bss, conf->num_bss + 1, in hostapd_config_bss()
879 conf->bss = all; in hostapd_config_bss()
[all …]

12345678910>>...28