Home
last modified time | relevance | path

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

12345678910>>...16

/freebsd/contrib/wpa/src/ap/
H A 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()
98 iface->hw_flags = flags; in hostapd_get_hw_features()
99 iface->dfs_domain = dfs_domain; in hostapd_get_hw_features()
101 if (iface->current_mode) { in hostapd_get_hw_features()
109 mode = iface->current_mode->mode; in hostapd_get_hw_features()
110 is_6ghz = iface->current_mode->is_6ghz; in hostapd_get_hw_features()
111 iface->current_mode = NULL; in hostapd_get_hw_features()
113 hostapd_free_hw_features(iface->hw_features, iface->num_hw_features); in hostapd_get_hw_features()
114 iface->hw_features = modes; in hostapd_get_hw_features()
[all …]
H A Ddfs.c30 dfs_downgrade_bandwidth(struct hostapd_iface *iface, int *secondary_channel,
36 static bool dfs_use_radar_background(struct hostapd_iface *iface) in dfs_use_radar_background() argument
38 return (iface->drv_flags2 & WPA_DRIVER_FLAGS2_RADAR_BACKGROUND) && in dfs_use_radar_background()
39 iface->conf->enable_background_radar; in dfs_use_radar_background()
43 static int dfs_get_used_n_chans(struct hostapd_iface *iface, int *seg1) in dfs_get_used_n_chans() argument
49 if (iface->conf->ieee80211n && iface->conf->secondary_channel) in dfs_get_used_n_chans()
52 if (iface->conf->ieee80211ac || iface->conf->ieee80211ax) { in dfs_get_used_n_chans()
53 switch (hostapd_get_oper_chwidth(iface->conf)) { in dfs_get_used_n_chans()
224 static int is_in_chanlist(struct hostapd_iface *iface, in is_in_chanlist() argument
227 if (!iface->conf->acs_ch_list.num) in is_in_chanlist()
[all …]
H A Dacs.c309 static int acs_request_scan(struct hostapd_iface *iface);
348 void acs_cleanup(struct hostapd_iface *iface) in acs_cleanup() argument
352 for (i = 0; i < iface->num_hw_features; i++) in acs_cleanup()
353 acs_cleanup_mode(&iface->hw_features[i]); in acs_cleanup()
355 iface->chans_surveyed = 0; in acs_cleanup()
356 iface->acs_num_completed_scans = 0; in acs_cleanup()
357 iface->acs_num_retries = 0; in acs_cleanup()
358 eloop_cancel_timeout(acs_scan_retry, iface, NULL); in acs_cleanup()
362 static void acs_fail(struct hostapd_iface *iface) in acs_fail() argument
365 acs_cleanup(iface); in acs_fail()
[all …]
H A 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 …]
H A Dhostapd.c64 static int hostapd_setup_encryption(char *iface, struct hostapd_data *hapd);
67 static int setup_interface2(struct hostapd_iface *iface);
78 int (*cb)(struct hostapd_iface *iface, in hostapd_for_each_interface() argument
85 if (!interfaces->iface[i]) in hostapd_for_each_interface()
87 ret = cb(interfaces->iface[i], ctx); in hostapd_for_each_interface()
99 return hapd->iface->bss[0]; in hostapd_mbssid_get_tx_bss()
110 for (i = 1; i < hapd->iface->num_bss; i++) in hostapd_mbssid_get_bss_index()
111 if (hapd->iface->bss[i] == hapd) in hostapd_mbssid_get_bss_index()
126 hostapd_setup_encryption(hapd->conf->iface, hapd); in hostapd_reconfig_encryption()
161 hostapd_set_drv_ieee8021x(hapd, hapd->conf->iface, 1); in hostapd_reload_bss()
[all …]
H A 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()
98 oper->operation_mode = host_to_le16(hapd->iface->ht_op_mode); in hostapd_eid_ht_operation()
123 int hostapd_ht_operation_update(struct hostapd_iface *iface) in hostapd_ht_operation_update() argument
128 if (!iface->conf->ieee80211n || iface->conf->ht_op_mode_fixed) in hostapd_ht_operation_update()
132 __func__, iface->ht_op_mode); in hostapd_ht_operation_update()
134 if (!(iface->ht_op_mode & HT_OPER_OP_MODE_NON_GF_HT_STAS_PRESENT) in hostapd_ht_operation_update()
135 && iface->num_sta_ht_no_gf) { in hostapd_ht_operation_update()
136 iface->ht_op_mode |= HT_OPER_OP_MODE_NON_GF_HT_STAS_PRESENT; in hostapd_ht_operation_update()
[all …]
H A Dhw_features.h17 int hostapd_get_hw_features(struct hostapd_iface *iface);
18 int hostapd_csa_update_hwmode(struct hostapd_iface *iface);
19 int hostapd_acs_completed(struct hostapd_iface *iface, int err);
20 int hostapd_select_hw_mode(struct hostapd_iface *iface);
24 int hostapd_check_ht_capab(struct hostapd_iface *iface);
25 int hostapd_check_edmg_capab(struct hostapd_iface *iface);
26 int hostapd_check_he_6ghz_capab(struct hostapd_iface *iface);
27 int hostapd_prepare_rates(struct hostapd_iface *iface,
29 void hostapd_stop_setup_timers(struct hostapd_iface *iface);
30 int hostapd_hw_skip_mode(struct hostapd_iface *iface,
[all …]
H A Deth_p_oui.c33 struct eth_p_oui_iface *iface; member
53 struct eth_p_oui_iface *iface = ctx; in eth_p_rx() local
73 dl_list_for_each(receiver, &iface->receiver, in eth_p_rx()
91 struct eth_p_oui_iface *iface; in eth_p_oui_register() local
104 interfaces = hapd->iface->interfaces; in eth_p_oui_register()
106 dl_list_for_each(iface, &interfaces->eth_p_oui, struct eth_p_oui_iface, in eth_p_oui_register()
108 if (os_strcmp(iface->ifname, ifname) != 0) in eth_p_oui_register()
115 iface = os_zalloc(sizeof(*iface)); in eth_p_oui_register()
116 if (!iface) in eth_p_oui_register()
119 os_strlcpy(iface->ifname, ifname, sizeof(iface->ifname)); in eth_p_oui_register()
[all …]
H A Dairtime_policy.c36 static int get_airtime_policy_update_timeout(struct hostapd_iface *iface, in get_airtime_policy_update_timeout() argument
40 unsigned int update_int = iface->conf->airtime_update_interval; in get_airtime_policy_update_timeout()
135 struct hostapd_iface *iface = eloop_data; in update_airtime_weights() local
142 bool apply_limit = iface->conf->airtime_mode == AIRTIME_MODE_DYNAMIC; in update_airtime_weights()
146 for (i = 0; i < iface->num_bss; i++) { in update_airtime_weights()
147 bss = iface->bss[i]; in update_airtime_weights()
165 for (i = 0; i < iface->num_bss; i++) { in update_airtime_weights()
166 bss = iface->bss[i]; in update_airtime_weights()
192 for (i = 0; i < iface->num_bss; i++) { in update_airtime_weights()
193 bss = iface->bss[i]; in update_airtime_weights()
[all …]
H A Dieee802_11_he.c93 struct hostapd_hw_modes *mode = hapd->iface->current_mode; in hostapd_eid_he_capab()
105 switch (hapd->iface->conf->he_oper_chwidth) { in hostapd_eid_he_capab()
142 if (hapd->iface->conf->he_phy_capab.he_su_beamformer) in hostapd_eid_he_capab()
149 if (hapd->iface->conf->he_phy_capab.he_su_beamformee) in hostapd_eid_he_capab()
156 if (hapd->iface->conf->he_phy_capab.he_mu_beamformer) in hostapd_eid_he_capab()
179 if (!hapd->iface->current_mode) in hostapd_eid_he_operation()
192 if (hapd->iface->conf->he_op.he_default_pe_duration) in hostapd_eid_he_operation()
193 params |= (hapd->iface->conf->he_op.he_default_pe_duration << in hostapd_eid_he_operation()
196 if (hapd->iface->conf->he_op.he_twt_required) in hostapd_eid_he_operation()
199 if (hapd->iface->conf->he_op.he_rts_threshold) in hostapd_eid_he_operation()
[all …]
H A Dbss_load.c47 struct hostapd_iface *iface = hapd->iface; in update_channel_utilization() local
52 err = hostapd_drv_get_survey(hapd, hapd->iface->freq); in update_channel_utilization()
64 iface->chan_util_samples_sum += iface->channel_utilization; in update_channel_utilization()
65 iface->chan_util_num_sample_periods += in update_channel_utilization()
67 if (iface->chan_util_num_sample_periods >= in update_channel_utilization()
69 iface->chan_util_average = in update_channel_utilization()
70 iface->chan_util_samples_sum / in update_channel_utilization()
71 (iface->chan_util_num_sample_periods / in update_channel_utilization()
73 iface->chan_util_samples_sum = 0; in update_channel_utilization()
74 iface->chan_util_num_sample_periods = 0; in update_channel_utilization()
H A Ddfs.h12 int hostapd_handle_dfs(struct hostapd_iface *iface);
14 int hostapd_dfs_complete_cac(struct hostapd_iface *iface, int success, int freq,
17 int hostapd_dfs_pre_cac_expired(struct hostapd_iface *iface, int freq,
20 int hostapd_dfs_radar_detected(struct hostapd_iface *iface, int freq,
24 int hostapd_dfs_nop_finished(struct hostapd_iface *iface, int freq,
27 int hostapd_is_dfs_required(struct hostapd_iface *iface);
28 int hostapd_is_dfs_chan_available(struct hostapd_iface *iface);
29 int hostapd_dfs_start_cac(struct hostapd_iface *iface, int freq,
32 int hostapd_handle_dfs_offload(struct hostapd_iface *iface);
33 int hostapd_is_dfs_overlap(struct hostapd_iface *iface, enum chan_width width,
H A Dbeacon.c59 *eid++ = hapd->iface->channel_utilization; in hostapd_eid_bss_load()
71 if (hapd->iface->current_mode == NULL || in ieee802_11_erp_info()
72 hapd->iface->current_mode->mode != HOSTAPD_MODE_IEEE80211G) in ieee802_11_erp_info()
75 if (hapd->iface->olbc) in ieee802_11_erp_info()
77 if (hapd->iface->num_sta_non_erp > 0) { in ieee802_11_erp_info()
81 if (hapd->iface->num_sta_no_short_preamble > 0 || in ieee802_11_erp_info()
106 if (hapd->iface->current_mode == NULL || in hostapd_eid_erp_info()
107 hapd->iface->current_mode->mode != HOSTAPD_MODE_IEEE80211G) in hostapd_eid_erp_info()
134 if (hapd->iface->current_mode == NULL || in hostapd_eid_pwr_constraint()
135 hapd->iface->current_mode->mode != HOSTAPD_MODE_IEEE80211A) in hostapd_eid_pwr_constraint()
[all …]
H A Dutils.c49 static int prune_associations(struct hostapd_iface *iface, void *ctx) in prune_associations() argument
56 for (j = 0; j < iface->num_bss; j++) { in prune_associations()
57 ohapd = iface->bss[j]; in prune_associations()
66 if (ohapd->iface->fst && in prune_associations()
67 data->hapd->iface->fst && in prune_associations()
68 fst_are_ifaces_aggregated(ohapd->iface->fst, in prune_associations()
69 data->hapd->iface->fst)) in prune_associations()
83 ohapd->conf->iface, MAC2STR(osta->addr)); in prune_associations()
108 if (hapd->iface->interfaces && in hostapd_prune_associations()
109 hapd->iface->interfaces->for_each_interface) in hostapd_prune_associations()
[all …]
/freebsd/contrib/wpa/wpa_supplicant/
H A Dwpa_priv.c56 static void wpa_priv_cmd_register(struct wpa_priv_interface *iface, in wpa_priv_cmd_register() argument
61 if (iface->drv_priv) { in wpa_priv_cmd_register()
63 if (iface->driver->deinit) in wpa_priv_cmd_register()
64 iface->driver->deinit(iface->drv_priv); in wpa_priv_cmd_register()
65 iface->drv_priv = NULL; in wpa_priv_cmd_register()
66 if (iface->drv_global_priv) { in wpa_priv_cmd_register()
67 iface->driver->global_deinit(iface->drv_global_priv); in wpa_priv_cmd_register()
68 iface->drv_global_priv = NULL; in wpa_priv_cmd_register()
70 iface->wpas_registered = 0; in wpa_priv_cmd_register()
74 if (iface->l2[i]) { in wpa_priv_cmd_register()
[all …]
H A 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 …]
/freebsd/usr.sbin/ppp/
H A Diface.c88 struct iface *
98 struct iface *iface; in iface_Create() local
136 iface = NULL; in iface_Create()
139 while (ptr < end && iface == NULL) { in iface_Create()
145 iface = (struct iface *)malloc(sizeof *iface); in iface_Create()
146 if (iface == NULL) { in iface_Create()
151 iface->name = strdup(name); in iface_Create()
152 iface->descr = NULL; in iface_Create()
153 iface->index = ifm->ifm_index; in iface_Create()
154 iface->flags = ifm->ifm_flags; in iface_Create()
[all …]
/freebsd/contrib/wpa/src/fst/
H A Dfst.c22 static void fst_ctrl_iface_notify_peer_state_change(struct fst_iface *iface, in fst_ctrl_iface_notify_peer_state_change() argument
29 os_strlcpy(extra.peer_state.ifname, fst_iface_get_name(iface), in fst_ctrl_iface_notify_peer_state_change()
34 iface, NULL, &extra); in fst_ctrl_iface_notify_peer_state_change()
44 struct fst_iface *iface = NULL; in fst_attach() local
68 iface = fst_iface_create(group, ifname, own_addr, iface_obj, cfg); in fst_attach()
69 if (!iface) { in fst_attach()
77 fst_group_attach_iface(group, iface); in fst_attach()
80 foreach_fst_ctrl_call(on_iface_added, iface); in fst_attach()
82 fst_printf_iface(iface, MSG_DEBUG, in fst_attach()
86 return iface; in fst_attach()
[all …]
/freebsd/contrib/wpa/wpa_supplicant/dbus/
H A 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(16000); 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 …]
H A Ddbus_new.c135 struct wpas_dbus_priv *iface; in wpas_dbus_signal_interface() local
139 iface = wpa_s->global->dbus; in wpas_dbus_signal_interface()
142 if (iface == NULL || !wpa_s->dbus_new_path) in wpas_dbus_signal_interface()
155 iface, wpa_s->dbus_new_path, in wpas_dbus_signal_interface()
159 dbus_connection_send(iface->con, msg, NULL); in wpas_dbus_signal_interface()
198 struct wpas_dbus_priv *iface; in wpas_dbus_signal_scan_done() local
202 iface = wpa_s->global->dbus; in wpas_dbus_signal_scan_done()
205 if (iface == NULL || !wpa_s->dbus_new_path) in wpas_dbus_signal_scan_done()
217 dbus_connection_send(iface->con, msg, NULL); in wpas_dbus_signal_scan_done()
237 struct wpas_dbus_priv *iface; in wpas_dbus_signal_bss() local
[all …]
/freebsd/share/examples/jails/
H A Djng189 eval __mac_num=\${_${iface}_num:--1}
191 eval _${iface}_num=\$__mac_num
284 local iface parent eiface eiface_devid
286 for iface in $*; do
290 case "$iface" in
291 =*) iface=${iface#=} clone_mac=1 ;;
292 !*) iface=${iface#!} no_derive=1 ;;
303 ifconfig $iface up || return
306 ngctl msg $iface: setpromisc 1 || return
307 ngctl msg $iface: setautosrc 0 || return
[all …]
/freebsd/contrib/wpa/hostapd/
H A Dmain.c95 hapd->conf->iface, MAC2STR(addr), in hostapd_logger_cb()
100 hapd->conf->iface, module_str ? " " : "", in hostapd_logger_cb()
153 static int hostapd_driver_init(struct hostapd_iface *iface) in hostapd_driver_init() argument
157 struct hostapd_data *hapd = iface->bss[0]; in hostapd_driver_init()
197 hapd->mld_link_id, hapd->conf->iface); in hostapd_driver_init()
215 wpa_drivers[i]->global_init(iface->interfaces); in hostapd_driver_init()
241 params.ifname = hapd->conf->iface; in hostapd_driver_init()
245 params.num_bridge = hapd->iface->num_bss; in hostapd_driver_init()
246 params.bridge = os_calloc(hapd->iface->num_bss, sizeof(char *)); in hostapd_driver_init()
249 for (i = 0; i < hapd->iface->num_bss; i++) { in hostapd_driver_init()
[all …]
/freebsd/sbin/ifconfig/
H A Difconfig_netlink.c124 struct iface { struct
134 struct iface **ifaces; argument
159 struct iface *iface = snl_allocz(ss, sizeof(*iface)); in prepare_ifmap() local
161 if (!snl_parse_nlmsg(ss, hdr, &snl_rtm_link_parser, &iface->link)) in prepare_ifmap()
163 if (iface->link.ifi_index >= ifmap->size) { in prepare_ifmap()
166 while (new_size <= iface->link.ifi_index + 1) in prepare_ifmap()
169 struct iface **ifaces= snl_allocz(ss, new_size * sizeof(void *)); in prepare_ifmap()
174 ifmap->ifaces[iface->link.ifi_index] = iface; in prepare_ifmap()
176 iface->idx = ifmap->count; in prepare_ifmap()
243 struct iface *iface = ifmap->ifaces[ifindex]; in prepare_ifaddrs() local
[all …]
/freebsd/contrib/wpa/src/wps/
H A 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 …]
/freebsd/sys/netgraph/netflow/
H A Dng_netflow.c286 iface_p iface; in ng_netflow_newhook() local
303 iface = &priv->ifaces[ifnum]; in ng_netflow_newhook()
306 NG_HOOK_SET_PRIVATE(hook, iface); in ng_netflow_newhook()
307 iface->hook = hook; in ng_netflow_newhook()
314 iface->info.ifinfo_dlt = DLT_EN10MB; in ng_netflow_newhook()
318 iface_p iface; in ng_netflow_newhook() local
335 iface = &priv->ifaces[ifnum]; in ng_netflow_newhook()
338 NG_HOOK_SET_PRIVATE(hook, iface); in ng_netflow_newhook()
339 iface->out = hook; in ng_netflow_newhook()
422 struct ng_netflow_iface *iface; in ng_netflow_rcvmsg() local
[all …]

12345678910>>...16