Home
last modified time | relevance | path

Searched refs:iface (Results 1 – 25 of 665) sorted by relevance

12345678910>>...27

/external/wpa_supplicant_8/src/ap/
Dhw_features.c75 int hostapd_get_hw_features(struct hostapd_iface *iface) in hostapd_get_hw_features() argument
77 struct hostapd_data *hapd = iface->bss[0]; in hostapd_get_hw_features()
93 iface->hw_flags = flags; in hostapd_get_hw_features()
95 hostapd_free_hw_features(iface->hw_features, iface->num_hw_features); in hostapd_get_hw_features()
96 iface->hw_features = modes; in hostapd_get_hw_features()
97 iface->num_hw_features = num_modes; in hostapd_get_hw_features()
102 (iface->drv_flags & WPA_DRIVER_FLAGS_RADAR); in hostapd_get_hw_features()
120 !(iface->drv_flags & in hostapd_get_hw_features()
145 int hostapd_prepare_rates(struct hostapd_iface *iface, in hostapd_prepare_rates() argument
154 if (iface->conf->basic_rates) in hostapd_prepare_rates()
[all …]
Ddfs.c22 static int dfs_get_used_n_chans(struct hostapd_iface *iface, int *seg1) in dfs_get_used_n_chans() argument
28 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()
165 static int is_in_chanlist(struct hostapd_iface *iface, in is_in_chanlist() argument
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()
182 static int dfs_find_channel(struct hostapd_iface *iface, in dfs_find_channel() argument
190 mode = iface->current_mode; in dfs_find_channel()
191 n_chans = dfs_get_used_n_chans(iface, &n_chans1); in dfs_find_channel()
[all …]
Dap_list.c31 static int ap_list_beacon_olbc(struct hostapd_iface *iface, struct ap_info *ap) in ap_list_beacon_olbc() argument
35 if (iface->current_mode == NULL || in ap_list_beacon_olbc()
36 iface->current_mode->mode != HOSTAPD_MODE_IEEE80211G || in ap_list_beacon_olbc()
37 iface->conf->channel != ap->channel) in ap_list_beacon_olbc()
53 static struct ap_info * ap_get_ap(struct hostapd_iface *iface, const u8 *ap) in ap_get_ap() argument
57 s = iface->ap_hash[STA_HASH(ap)]; in ap_get_ap()
64 static void ap_ap_list_add(struct hostapd_iface *iface, struct ap_info *ap) in ap_ap_list_add() argument
66 if (iface->ap_list) { in ap_ap_list_add()
67 ap->prev = iface->ap_list->prev; in ap_ap_list_add()
68 iface->ap_list->prev = ap; in ap_ap_list_add()
[all …]
Dacs.c244 static int acs_request_scan(struct hostapd_iface *iface);
263 static void acs_cleanup(struct hostapd_iface *iface) in acs_cleanup() argument
268 for (i = 0; i < iface->current_mode->num_channels; i++) { in acs_cleanup()
269 chan = &iface->current_mode->channels[i]; in acs_cleanup()
279 iface->chans_surveyed = 0; in acs_cleanup()
280 iface->acs_num_completed_scans = 0; in acs_cleanup()
284 static void acs_fail(struct hostapd_iface *iface) in acs_fail() argument
287 acs_cleanup(iface); in acs_fail()
288 hostapd_disable_iface(iface); in acs_fail()
326 acs_survey_chan_interference_factor(struct hostapd_iface *iface, in acs_survey_chan_interference_factor() argument
[all …]
Dieee802_11_ht.c29 if (!hapd->iconf->ieee80211n || !hapd->iface->current_mode || in hostapd_eid_ht_capabilities()
39 cap->a_mpdu_params = hapd->iface->current_mode->a_mpdu_params; in hostapd_eid_ht_capabilities()
40 os_memcpy(cap->supported_mcs_set, hapd->iface->current_mode->mcs_set, in hostapd_eid_ht_capabilities()
97 oper->operation_mode = host_to_le16(hapd->iface->ht_op_mode); in hostapd_eid_ht_operation()
122 int hostapd_ht_operation_update(struct hostapd_iface *iface) in hostapd_ht_operation_update() argument
127 if (!iface->conf->ieee80211n || iface->conf->ht_op_mode_fixed) in hostapd_ht_operation_update()
131 __func__, iface->ht_op_mode); in hostapd_ht_operation_update()
133 if (!(iface->ht_op_mode & HT_OPER_OP_MODE_NON_GF_HT_STAS_PRESENT) in hostapd_ht_operation_update()
134 && iface->num_sta_ht_no_gf) { in hostapd_ht_operation_update()
135 iface->ht_op_mode |= HT_OPER_OP_MODE_NON_GF_HT_STAS_PRESENT; in hostapd_ht_operation_update()
[all …]
Dhostapd.c47 static int hostapd_setup_encryption(char *iface, struct hostapd_data *hapd);
49 static int setup_interface2(struct hostapd_iface *iface);
54 int (*cb)(struct hostapd_iface *iface, in hostapd_for_each_interface() argument
61 ret = cb(interfaces->iface[i], ctx); in hostapd_for_each_interface()
93 hostapd_set_drv_ieee8021x(hapd, hapd->conf->iface, 1); in hostapd_reload_bss()
95 hostapd_set_drv_ieee8021x(hapd, hapd->conf->iface, 0); in hostapd_reload_bss()
113 hostapd_setup_encryption(hapd->conf->iface, hapd); in hostapd_reload_bss()
126 wpa_printf(MSG_DEBUG, "Reconfigured interface %s", hapd->conf->iface); in hostapd_reload_bss()
130 static void hostapd_clear_old(struct hostapd_iface *iface) in hostapd_clear_old() argument
138 for (j = 0; j < iface->num_bss; j++) { in hostapd_clear_old()
[all …]
Dhw_features.h17 int hostapd_get_hw_features(struct hostapd_iface *iface);
18 int hostapd_acs_completed(struct hostapd_iface *iface, int err);
19 int hostapd_select_hw_mode(struct hostapd_iface *iface);
23 int hostapd_check_ht_capab(struct hostapd_iface *iface);
24 int hostapd_prepare_rates(struct hostapd_iface *iface,
26 void hostapd_stop_setup_timers(struct hostapd_iface *iface);
34 static inline int hostapd_get_hw_features(struct hostapd_iface *iface) in hostapd_get_hw_features() argument
39 static inline int hostapd_acs_completed(struct hostapd_iface *iface, int err) in hostapd_acs_completed() argument
44 static inline int hostapd_select_hw_mode(struct hostapd_iface *iface) in hostapd_select_hw_mode() argument
59 static inline int hostapd_check_ht_capab(struct hostapd_iface *iface) in hostapd_check_ht_capab() argument
[all …]
/external/wpa_supplicant_8/wpa_supplicant/
Dwpa_priv.c43 static void wpa_priv_cmd_register(struct wpa_priv_interface *iface, in wpa_priv_cmd_register() argument
46 if (iface->drv_priv) { in wpa_priv_cmd_register()
48 if (iface->driver->deinit) in wpa_priv_cmd_register()
49 iface->driver->deinit(iface->drv_priv); in wpa_priv_cmd_register()
50 iface->drv_priv = NULL; in wpa_priv_cmd_register()
51 iface->wpas_registered = 0; in wpa_priv_cmd_register()
54 if (iface->l2) { in wpa_priv_cmd_register()
57 l2_packet_deinit(iface->l2); in wpa_priv_cmd_register()
58 iface->l2 = NULL; in wpa_priv_cmd_register()
61 if (iface->driver->init == NULL) in wpa_priv_cmd_register()
[all …]
/external/dhcpcd/
Ddhcpcd.c182 struct interface *iface; in cleanup() local
188 iface = ifaces; in cleanup()
189 ifaces = iface->next; in cleanup()
190 free_interface(iface); in cleanup()
237 drop_dhcp(struct interface *iface, const char *reason) in drop_dhcp() argument
239 free(iface->state->old); in drop_dhcp()
240 iface->state->old = iface->state->new; in drop_dhcp()
241 iface->state->new = NULL; in drop_dhcp()
242 iface->state->reason = reason; in drop_dhcp()
243 configure(iface); in drop_dhcp()
[all …]
Darp.c48 send_arp(const struct interface *iface, int op, in_addr_t sip, in_addr_t tip) in send_arp() argument
56 ar.ar_hrd = htons(iface->family); in send_arp()
58 ar.ar_hln = iface->hwlen; in send_arp()
63 memcpy(p, iface->hwaddr, iface->hwlen); in send_arp()
64 p += iface->hwlen; in send_arp()
68 retval = iface->hwlen; in send_arp()
74 retval = send_raw_packet(iface, ETHERTYPE_ARP, arp_buffer, len); in send_arp()
79 handle_arp_failure(struct interface *iface) in handle_arp_failure() argument
84 if ((iface->state->offer != NULL && in handle_arp_failure()
85 iface->state->offer->cookie != htonl(MAGIC_COOKIE)) || in handle_arp_failure()
[all …]
Dipv4ll.c88 struct interface *iface = arg; in start_ipv4ll() local
91 delete_timeout(NULL, iface); in start_ipv4ll()
92 iface->state->probes = 0; in start_ipv4ll()
93 iface->state->claims = 0; in start_ipv4ll()
94 if (iface->addr.s_addr) { in start_ipv4ll()
95 iface->state->conflicts = 0; in start_ipv4ll()
96 if (IN_LINKLOCAL(htonl(iface->addr.s_addr))) { in start_ipv4ll()
97 send_arp_announce(iface); in start_ipv4ll()
102 if (iface->state->offer == NULL) in start_ipv4ll()
105 addr = iface->state->offer->yiaddr; in start_ipv4ll()
[all …]
Dbpf.c52 open_socket(struct interface *iface, int protocol) in open_socket() argument
89 strlcpy(ifr.ifr_name, iface->name, sizeof(ifr.ifr_name)); in open_socket()
96 if (iface->buffer_size != (size_t)buf_len) { in open_socket()
97 free(iface->buffer); in open_socket()
98 iface->buffer_size = buf_len; in open_socket()
99 iface->buffer = xmalloc(buf_len); in open_socket()
100 iface->buffer_len = iface->buffer_pos = 0; in open_socket()
113 fdp = &iface->arp_fd; in open_socket()
117 fdp = &iface->raw_fd; in open_socket()
131 free(iface->buffer); in open_socket()
[all …]
Dconfigure.c166 make_env(const struct interface *iface, const char *reason, char ***argv) in make_env() argument
170 const struct if_options *ifo = iface->state->options; in make_env()
189 e = strlen("interface") + strlen(iface->name) + 2; in make_env()
191 snprintf(env[0], e, "interface=%s", iface->name); in make_env()
202 snprintf(env[3], e, "ifmetric=%d", iface->metric); in make_env()
204 snprintf(env[4], e, "ifwireless=%d", iface->wireless); in make_env()
206 snprintf(env[5], e, "ifflags=%u", iface->flags); in make_env()
208 snprintf(env[6], e, "ifmtu=%d", get_mtu(iface->name)); in make_env()
224 if ((dhcp && iface->state->new) || (ra && iface->ras)) { in make_env()
231 if (*iface->state->profile) { in make_env()
[all …]
Dnet.c204 struct interface *iface = NULL; in init_interface() local
211 iface = xzalloc(sizeof(*iface)); in init_interface()
212 strlcpy(iface->name, ifname, sizeof(iface->name)); in init_interface()
213 iface->flags = ifr.ifr_flags; in init_interface()
216 iface->metric = 200 + if_nametoindex(iface->name); in init_interface()
217 if (getifssid(ifname, iface->ssid) != -1) { in init_interface()
218 iface->wireless = 1; in init_interface()
219 iface->metric += 100; in init_interface()
232 snprintf(iface->leasefile, sizeof(iface->leasefile), in init_interface()
235 iface->raw_fd = -1; in init_interface()
[all …]
Dnet.h86 const struct interface *iface; member
103 #define get_mtu(iface) do_mtu(iface, 0) argument
104 #define set_mtu(iface, mtu) do_mtu(iface, mtu) argument
118 #define add_address(iface, addr, net, brd) \ argument
119 if_address(iface, addr, net, brd, 1)
120 #define del_address(iface, addr, net) \ argument
121 if_address(iface, addr, net, NULL, -1)
122 #define has_address(iface, addr, net) \ argument
123 do_address(iface, addr, net, NULL, 0)
124 #define get_address(iface, addr, net, dst) \ argument
[all …]
/external/selinux/libsepol/src/
Diface_record.c56 const sepol_iface_t * iface, in hidden_def()
60 if (sepol_iface_key_create(handle, iface->name, key_ptr) < 0) { in hidden_def()
62 "interface %s", iface->name); in hidden_def()
74 int sepol_iface_compare(const sepol_iface_t * iface, in sepol_iface_compare() argument
78 return strcmp(iface->name, key->name); in sepol_iface_compare()
81 int sepol_iface_compare2(const sepol_iface_t * iface, in sepol_iface_compare2() argument
85 return strcmp(iface->name, iface2->name); in sepol_iface_compare2()
89 int sepol_iface_create(sepol_handle_t * handle, sepol_iface_t ** iface) in sepol_iface_create() argument
104 *iface = tmp_iface; in sepol_iface_create()
112 const char *sepol_iface_get_name(const sepol_iface_t * iface) in hidden_def()
[all …]
Dinterfaces.c14 ocontext_t ** iface, const sepol_iface_t * record) in iface_from_record() argument
47 *iface = tmp_iface; in iface_from_record()
68 ocontext_t * iface, sepol_iface_t ** record) in iface_to_record() argument
71 char *name = iface->u.name; in iface_to_record()
72 context_struct_t *ifcon = &iface->context[0]; in iface_to_record()
73 context_struct_t *msgcon = &iface->context[1]; in iface_to_record()
172 ocontext_t *head, *prev, *c, *iface = NULL; in sepol_iface_modify() local
177 if (iface_from_record(handle, policydb, &iface, data) < 0) in sepol_iface_modify()
186 iface->next = c->next; in sepol_iface_modify()
188 policydb->ocontexts[OCON_NETIF] = iface; in sepol_iface_modify()
[all …]
/external/wpa_supplicant_8/wpa_supplicant/dbus/
Ddbus_new_introspect.c30 struct interfaces *iface; in add_interface() local
32 dl_list_for_each(iface, list, struct interfaces, list) { in add_interface()
33 if (os_strcmp(iface->dbus_interface, dbus_interface) == 0) in add_interface()
34 return iface; /* already in the list */ in add_interface()
37 iface = os_zalloc(sizeof(struct interfaces)); in add_interface()
38 if (!iface) in add_interface()
40 iface->dbus_interface = os_strdup(dbus_interface); in add_interface()
41 iface->xml = wpabuf_alloc(6000); in add_interface()
42 if (iface->dbus_interface == NULL || iface->xml == NULL) { in add_interface()
43 os_free(iface->dbus_interface); in add_interface()
[all …]
/external/selinux/libsemanage/src/
Diface_record.c27 int semanage_iface_compare(const semanage_iface_t * iface, in semanage_iface_compare() argument
31 return sepol_iface_compare(iface, key); in semanage_iface_compare()
36 int semanage_iface_compare2(const semanage_iface_t * iface, in hidden_def()
40 return sepol_iface_compare2(iface, iface2); in hidden_def()
45 static int semanage_iface_compare2_qsort(const semanage_iface_t ** iface, in hidden_def()
49 return sepol_iface_compare2(*iface, *iface2); in hidden_def()
60 const semanage_iface_t * iface, in semanage_iface_key_extract() argument
64 return sepol_iface_key_extract(handle->sepolh, iface, key_ptr); in semanage_iface_key_extract()
78 const char *semanage_iface_get_name(const semanage_iface_t * iface) in hidden_def()
81 return sepol_iface_get_name(iface); in hidden_def()
[all …]
/external/libvpx/libvpx/vpx/src/
Dvpx_decoder.c22 vpx_codec_iface_t *iface, in vpx_codec_dec_init_ver() argument
30 else if (!ctx || !iface) in vpx_codec_dec_init_ver()
32 else if (iface->abi_version != VPX_CODEC_INTERNAL_ABI_VERSION) in vpx_codec_dec_init_ver()
34 else if ((flags & VPX_CODEC_USE_POSTPROC) && !(iface->caps & VPX_CODEC_CAP_POSTPROC)) in vpx_codec_dec_init_ver()
37 !(iface->caps & VPX_CODEC_CAP_ERROR_CONCEALMENT)) in vpx_codec_dec_init_ver()
40 !(iface->caps & VPX_CODEC_CAP_INPUT_FRAGMENTS)) in vpx_codec_dec_init_ver()
42 else if (!(iface->caps & VPX_CODEC_CAP_DECODER)) in vpx_codec_dec_init_ver()
46 ctx->iface = iface; in vpx_codec_dec_init_ver()
47 ctx->name = iface->name; in vpx_codec_dec_init_ver()
52 res = ctx->iface->init(ctx, NULL); in vpx_codec_dec_init_ver()
[all …]
Dvpx_encoder.c24 vpx_codec_iface_t *iface, in vpx_codec_enc_init_ver() argument
32 else if (!ctx || !iface || !cfg) in vpx_codec_enc_init_ver()
34 else if (iface->abi_version != VPX_CODEC_INTERNAL_ABI_VERSION) in vpx_codec_enc_init_ver()
36 else if (!(iface->caps & VPX_CODEC_CAP_ENCODER)) in vpx_codec_enc_init_ver()
39 && !(iface->caps & VPX_CODEC_CAP_PSNR)) in vpx_codec_enc_init_ver()
42 && !(iface->caps & VPX_CODEC_CAP_OUTPUT_PARTITION)) in vpx_codec_enc_init_ver()
45 ctx->iface = iface; in vpx_codec_enc_init_ver()
46 ctx->name = iface->name; in vpx_codec_enc_init_ver()
50 res = ctx->iface->init(ctx, NULL); in vpx_codec_enc_init_ver()
58 ctx->priv->iface = ctx->iface; in vpx_codec_enc_init_ver()
[all …]
/external/wpa_supplicant_8/hostapd/
Dmain.c94 hapd->conf->iface, MAC2STR(addr), in hostapd_logger_cb()
99 hapd->conf->iface, module_str ? " " : "", in hostapd_logger_cb()
148 static int hostapd_driver_init(struct hostapd_iface *iface) in hostapd_driver_init() argument
152 struct hostapd_data *hapd = iface->bss[0]; in hostapd_driver_init()
186 params.ifname = hapd->conf->iface; in hostapd_driver_init()
190 params.num_bridge = hapd->iface->num_bss; in hostapd_driver_init()
191 params.bridge = os_calloc(hapd->iface->num_bss, sizeof(char *)); in hostapd_driver_init()
194 for (i = 0; i < hapd->iface->num_bss; i++) { in hostapd_driver_init()
195 struct hostapd_data *bss = hapd->iface->bss[i]; in hostapd_driver_init()
215 iface->drv_flags = capa.flags; in hostapd_driver_init()
[all …]
/external/selinux/libsemanage/include/semanage/
Diface_record.h18 extern int semanage_iface_compare(const semanage_iface_t * iface,
21 extern int semanage_iface_compare2(const semanage_iface_t * iface,
29 const semanage_iface_t * iface,
35 extern const char *semanage_iface_get_name(const semanage_iface_t * iface);
38 semanage_iface_t * iface, const char *name);
42 iface);
45 semanage_iface_t * iface,
49 iface);
52 semanage_iface_t * iface,
60 const semanage_iface_t * iface,
[all …]
/external/selinux/libsepol/include/sepol/
Diface_record.h16 extern int sepol_iface_compare(const sepol_iface_t * iface,
19 extern int sepol_iface_compare2(const sepol_iface_t * iface,
30 const sepol_iface_t * iface,
36 extern const char *sepol_iface_get_name(const sepol_iface_t * iface);
39 sepol_iface_t * iface, const char *name);
42 extern sepol_context_t *sepol_iface_get_ifcon(const sepol_iface_t * iface);
45 sepol_iface_t * iface, sepol_context_t * con);
47 extern sepol_context_t *sepol_iface_get_msgcon(const sepol_iface_t * iface);
50 sepol_iface_t * iface, sepol_context_t * con);
57 const sepol_iface_t * iface,
[all …]
/external/wpa_supplicant_8/src/wps/
Dwps_upnp_web.c182 static void format_wps_device_xml(struct upnp_wps_device_interface *iface, in format_wps_device_xml() argument
195 s = iface->wps->friendly_name; in format_wps_device_xml()
199 s = iface->wps->dev.manufacturer; in format_wps_device_xml()
203 if (iface->wps->manufacturer_url) in format_wps_device_xml()
205 iface->wps->manufacturer_url); in format_wps_device_xml()
207 if (iface->wps->model_description) in format_wps_device_xml()
209 iface->wps->model_description); in format_wps_device_xml()
211 s = iface->wps->dev.model_name; in format_wps_device_xml()
215 if (iface->wps->dev.model_number) in format_wps_device_xml()
217 iface->wps->dev.model_number); in format_wps_device_xml()
[all …]

12345678910>>...27