Home
last modified time | relevance | path

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

12345678910>>...32

/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()
145 int hostapd_ht_operation_update(struct hostapd_iface *iface) in hostapd_ht_operation_update() argument
150 if (!iface->conf->ieee80211n || iface->conf->ht_op_mode_fixed) in hostapd_ht_operation_update()
154 __func__, iface->ht_op_mode); in hostapd_ht_operation_update()
156 if (!(iface->ht_op_mode & HT_OPER_OP_MODE_NON_GF_HT_STAS_PRESENT) in hostapd_ht_operation_update()
157 && iface->num_sta_ht_no_gf) { in hostapd_ht_operation_update()
158 iface->ht_op_mode |= HT_OPER_OP_MODE_NON_GF_HT_STAS_PRESENT; in hostapd_ht_operation_update()
[all …]
Dhostapd.c49 static int hostapd_setup_encryption(char *iface, struct hostapd_data *hapd);
51 static int setup_interface2(struct hostapd_iface *iface);
56 int (*cb)(struct hostapd_iface *iface, in hostapd_for_each_interface() argument
63 ret = cb(interfaces->iface[i], ctx); in hostapd_for_each_interface()
95 hostapd_set_drv_ieee8021x(hapd, hapd->conf->iface, 1); in hostapd_reload_bss()
97 hostapd_set_drv_ieee8021x(hapd, hapd->conf->iface, 0); in hostapd_reload_bss()
115 hostapd_setup_encryption(hapd->conf->iface, hapd); in hostapd_reload_bss()
128 wpa_printf(MSG_DEBUG, "Reconfigured interface %s", hapd->conf->iface); in hostapd_reload_bss()
132 static void hostapd_clear_old(struct hostapd_iface *iface) in hostapd_clear_old() argument
140 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 …]
Dbeacon.c73 *eid++ = hapd->iface->channel_utilization; in hostapd_eid_bss_load()
85 if (hapd->iface->current_mode == NULL || in ieee802_11_erp_info()
86 hapd->iface->current_mode->mode != HOSTAPD_MODE_IEEE80211G) in ieee802_11_erp_info()
89 if (hapd->iface->olbc) in ieee802_11_erp_info()
91 if (hapd->iface->num_sta_non_erp > 0) { in ieee802_11_erp_info()
95 if (hapd->iface->num_sta_no_short_preamble > 0 || in ieee802_11_erp_info()
114 if (hapd->iface->current_mode == NULL || in hostapd_eid_erp_info()
115 hapd->iface->current_mode->mode != HOSTAPD_MODE_IEEE80211G) in hostapd_eid_erp_info()
142 if (hapd->iface->current_mode == NULL || in hostapd_eid_pwr_constraint()
143 hapd->iface->current_mode->mode != HOSTAPD_MODE_IEEE80211A) in hostapd_eid_pwr_constraint()
[all …]
Dutils.c48 static int prune_associations(struct hostapd_iface *iface, void *ctx) in prune_associations() argument
55 for (j = 0; j < iface->num_bss; j++) { in prune_associations()
56 ohapd = iface->bss[j]; in prune_associations()
61 if (ohapd->iface->fst && in prune_associations()
62 data->hapd->iface->fst && in prune_associations()
63 fst_are_ifaces_aggregated(ohapd->iface->fst, in prune_associations()
64 data->hapd->iface->fst)) in prune_associations()
72 ohapd->conf->iface, MAC2STR(osta->addr)); in prune_associations()
92 if (hapd->iface->interfaces && in hostapd_prune_associations()
93 hapd->iface->interfaces->for_each_interface) in hostapd_prune_associations()
[all …]
/external/wpa_supplicant_8/wpa_supplicant/
Dwpa_priv.c50 static void wpa_priv_cmd_register(struct wpa_priv_interface *iface, in wpa_priv_cmd_register() argument
53 if (iface->drv_priv) { in wpa_priv_cmd_register()
55 if (iface->driver->deinit) in wpa_priv_cmd_register()
56 iface->driver->deinit(iface->drv_priv); in wpa_priv_cmd_register()
57 iface->drv_priv = NULL; in wpa_priv_cmd_register()
58 if (iface->drv_global_priv) { in wpa_priv_cmd_register()
59 iface->driver->global_deinit(iface->drv_global_priv); in wpa_priv_cmd_register()
60 iface->drv_global_priv = NULL; in wpa_priv_cmd_register()
62 iface->wpas_registered = 0; in wpa_priv_cmd_register()
65 if (iface->l2) { in wpa_priv_cmd_register()
[all …]
Dmain.c184 struct wpa_interface *ifaces, *iface; in main() local
195 iface = ifaces = os_zalloc(sizeof(struct wpa_interface)); in main()
209 iface->bridge_ifname = optarg; in main()
215 iface->confname = optarg; in main()
218 iface->ctrl_interface = optarg; in main()
221 iface->driver = optarg; in main()
252 iface->ifname = optarg; in main()
255 iface->confanother = optarg; in main()
276 iface->driver_param = optarg; in main()
313 iface = os_realloc_array(params.match_ifaces, in main()
[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(15000); 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/wpa_supplicant_8/src/fst/
Dfst.c21 static void fst_ctrl_iface_notify_peer_state_change(struct fst_iface *iface, in fst_ctrl_iface_notify_peer_state_change() argument
28 os_strlcpy(extra.peer_state.ifname, fst_iface_get_name(iface), in fst_ctrl_iface_notify_peer_state_change()
33 iface, NULL, &extra); in fst_ctrl_iface_notify_peer_state_change()
43 struct fst_iface *iface = NULL; in fst_attach() local
67 iface = fst_iface_create(group, ifname, own_addr, iface_obj, cfg); in fst_attach()
68 if (!iface) { in fst_attach()
76 fst_group_attach_iface(group, iface); in fst_attach()
79 foreach_fst_ctrl_call(on_iface_added, iface); in fst_attach()
81 fst_printf_iface(iface, MSG_DEBUG, in fst_attach()
85 return iface; in fst_attach()
[all …]
/external/autotest/client/site_tests/network_WiFiTxRx/
Dnetwork-flipflop.sh51 iface="$1";
53 if [[ -z "$iface" ]]; then
54 while read _iface _ignore && test -z "$iface"; do
55 iface=$_iface;
59 test -n "$iface";
82 $iface*)
112 done < <(iwconfig $iface)
121 progress Bringing up $iface;
122 ifconfig $iface up 1>&2;
160 done < <(iwlist $iface scan);
[all …]
/external/libvpx/libvpx/vpx/src/
Dvpx_encoder.c28 vpx_codec_iface_t *iface, in vpx_codec_enc_init_ver() argument
36 else if (!ctx || !iface || !cfg) in vpx_codec_enc_init_ver()
38 else if (iface->abi_version != VPX_CODEC_INTERNAL_ABI_VERSION) in vpx_codec_enc_init_ver()
40 else if (!(iface->caps & VPX_CODEC_CAP_ENCODER)) in vpx_codec_enc_init_ver()
43 && !(iface->caps & VPX_CODEC_CAP_PSNR)) in vpx_codec_enc_init_ver()
46 && !(iface->caps & VPX_CODEC_CAP_OUTPUT_PARTITION)) in vpx_codec_enc_init_ver()
49 ctx->iface = iface; in vpx_codec_enc_init_ver()
50 ctx->name = iface->name; in vpx_codec_enc_init_ver()
54 res = ctx->iface->init(ctx, NULL); in vpx_codec_enc_init_ver()
66 vpx_codec_iface_t *iface, in vpx_codec_enc_init_multi_ver() argument
[all …]
Dvpx_decoder.c26 vpx_codec_iface_t *iface, in vpx_codec_dec_init_ver() argument
34 else if (!ctx || !iface) in vpx_codec_dec_init_ver()
36 else if (iface->abi_version != VPX_CODEC_INTERNAL_ABI_VERSION) in vpx_codec_dec_init_ver()
38 else if ((flags & VPX_CODEC_USE_POSTPROC) && !(iface->caps & VPX_CODEC_CAP_POSTPROC)) in vpx_codec_dec_init_ver()
41 !(iface->caps & VPX_CODEC_CAP_ERROR_CONCEALMENT)) in vpx_codec_dec_init_ver()
44 !(iface->caps & VPX_CODEC_CAP_INPUT_FRAGMENTS)) in vpx_codec_dec_init_ver()
46 else if (!(iface->caps & VPX_CODEC_CAP_DECODER)) in vpx_codec_dec_init_ver()
50 ctx->iface = iface; in vpx_codec_dec_init_ver()
51 ctx->name = iface->name; in vpx_codec_dec_init_ver()
56 res = ctx->iface->init(ctx, NULL); in vpx_codec_dec_init_ver()
[all …]
/external/wpa_supplicant_8/hostapd/
Dmain.c95 hapd->conf->iface, MAC2STR(addr), in hostapd_logger_cb()
100 hapd->conf->iface, module_str ? " " : "", in hostapd_logger_cb()
149 static int hostapd_driver_init(struct hostapd_iface *iface) in hostapd_driver_init() argument
153 struct hostapd_data *hapd = iface->bss[0]; in hostapd_driver_init()
175 wpa_drivers[i]->global_init(iface->interfaces); in hostapd_driver_init()
188 params.ifname = hapd->conf->iface; in hostapd_driver_init()
192 params.num_bridge = hapd->iface->num_bss; in hostapd_driver_init()
193 params.bridge = os_calloc(hapd->iface->num_bss, sizeof(char *)); in hostapd_driver_init()
196 for (i = 0; i < hapd->iface->num_bss; i++) { in hostapd_driver_init()
197 struct hostapd_data *bss = hapd->iface->bss[i]; in hostapd_driver_init()
[all …]
/external/curl/lib/
Dif2ip.c102 struct ifaddrs *iface, *head; in Curl_if_is_interface_name() local
105 for(iface=head; iface != NULL; iface=iface->ifa_next) { in Curl_if_is_interface_name()
106 if(curl_strequal(iface->ifa_name, interf)) { in Curl_if_is_interface_name()
120 struct ifaddrs *iface, *head; in Curl_if2ip() local
133 for(iface = head; iface != NULL; iface=iface->ifa_next) { in Curl_if2ip()
134 if(iface->ifa_addr != NULL) { in Curl_if2ip()
135 if(iface->ifa_addr->sa_family == af) { in Curl_if2ip()
136 if(curl_strequal(iface->ifa_name, interf)) { in Curl_if2ip()
144 unsigned int ifscope = Curl_ipv6_scope(iface->ifa_addr); in Curl_if2ip()
155 addr = &((struct sockaddr_in6 *)iface->ifa_addr)->sin6_addr; in Curl_if2ip()
[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/deqp/scripts/opengl/
Dgen_all.py39 iface = getHybridInterface()
40 genCallLogWrapper(iface)
41 genEnums(iface)
45 genExtInit(registry, iface)
47 genFunctionPointers(iface)
48 genNullRenderContext(iface)
49 genStrUtil(iface)
50 genWrapper(iface)
51 genQueryUtil(iface)
/external/dnsmasq/src/
Dnetwork.c69 if (strncmp(name, alias->iface, IF_NAMESIZE) == 0) in iface_check()
73 if (!(newindex = if_nametoindex(bridge->iface))) in iface_check()
81 strncpy(name, bridge->iface, IF_NAMESIZE); in iface_check()
125 struct irec *iface; in iface_allowed() local
133 for (iface = *irecp; iface; iface = iface->next) in iface_allowed()
134 if (sockaddr_isequal(&iface->addr, addr)) in iface_allowed()
196 if ((iface = whine_malloc(sizeof(struct irec)))) in iface_allowed()
198 iface->addr = *addr; in iface_allowed()
199 iface->netmask = netmask; in iface_allowed()
200 iface->dhcp_ok = dhcp_ok; in iface_allowed()
[all …]

12345678910>>...32