Home
last modified time | relevance | path

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

12345678

/dragonfly/contrib/wpa_supplicant/src/ap/
H A Dhw_features.c98 hostapd_free_hw_features(iface->hw_features, iface->num_hw_features); in hostapd_get_hw_features()
186 iface->num_rates = 0; in hostapd_prepare_rates()
204 rate = &iface->current_rates[iface->num_rates]; in hostapd_prepare_rates()
212 iface->num_rates++; in hostapd_prepare_rates()
216 (!iface->conf->ieee80211n || !iface->conf->require_ht)) { in hostapd_prepare_rates()
312 iface->secondary_ch = iface->conf->secondary_channel; in ieee80211n_check_scan()
355 pri_freq = hostapd_hw_get_freq(iface->bss[0], iface->conf->channel); in ieee80211n_scan_channels_2g4()
400 pri_freq = hostapd_hw_get_freq(iface->bss[0], iface->conf->channel); in ieee80211n_scan_channels_5g()
743 if (!hostapd_is_usable_chan(iface, iface->conf->channel, 1)) in hostapd_is_usable_chans()
751 iface, iface->conf->channel + in hostapd_is_usable_chans()
[all …]
H A Ddfs.c28 if (iface->conf->ieee80211n && iface->conf->secondary_channel) in dfs_get_used_n_chans()
31 if (iface->conf->ieee80211ac || iface->conf->ieee80211ax) { in dfs_get_used_n_chans()
241 if (!iface->conf->ieee80211ac && !iface->conf->ieee80211ax) in dfs_adjust_center_freq()
292 if (iface->conf->ieee80211ac || iface->conf->ieee80211ax) { in dfs_get_start_chan_idx()
737 iface->freq, in hostapd_handle_dfs()
738 iface->conf->channel, iface->conf->secondary_channel, in hostapd_handle_dfs()
745 iface, iface->conf->hw_mode, iface->freq, iface->conf->channel, in hostapd_handle_dfs()
746 iface->conf->ieee80211n, iface->conf->ieee80211ac, in hostapd_handle_dfs()
1059 if (iface->state == HAPD_IFACE_DFS && !iface->cac_started) in hostapd_dfs_nop_finished()
1070 if (!iface->conf->ieee80211h || !iface->current_mode || in hostapd_is_dfs_required()
[all …]
H A Dap_list.c66 if (iface->ap_list) { in ap_ap_list_add()
72 iface->ap_list = ap; in ap_ap_list_add()
124 iface->num_ap--; in ap_free_ap()
133 ap = iface->ap_list; in hostapd_free_aps()
156 iface->num_ap++; in ap_ap_add()
159 if (iface->num_ap > iface->conf->ap_table_max_size && ap != ap->prev) { in ap_ap_add()
222 if (!iface->olbc && in ap_list_process_beacon()
224 iface->olbc = 1; in ap_list_process_beacon()
237 iface->olbc_ht = 1; in ap_list_process_beacon()
271 if (iface->olbc || iface->olbc_ht) { in ap_list_timer()
[all …]
H A Dacs.c288 acs_cleanup(iface); in acs_fail()
597 if (iface->conf->ieee80211ac || iface->conf->ieee80211ax) { in acs_find_ideal_chan()
650 (iface->conf->ieee80211ac || iface->conf->ieee80211ax)) { in acs_find_ideal_chan()
866 if (iface->conf->ieee80211ac || iface->conf->ieee80211ax) in acs_study()
876 acs_cleanup(iface); in acs_study()
883 acs_fail(iface); in acs_study()
902 if (++iface->acs_num_completed_scans < iface->conf->acs_num_scans) { in acs_scan_complete()
912 acs_study(iface); in acs_scan_complete()
916 acs_fail(iface); in acs_scan_complete()
953 acs_cleanup(iface); in acs_request_scan()
[all …]
H A Dhostapd.c1855 if (iface->num_bss < 1 || !iface->bss || !iface->bss[0]) in hostapd_interface_setup_failure_handler()
1921 iface->bss[0]->conf->iface); in hostapd_setup_interface_complete_sync()
2053 iface->bss[0]->conf->iface); in hostapd_setup_interface_complete_sync()
2140 iface->bss[0]->conf->iface); in hostapd_setup_interface_complete()
2149 iface->bss[0]->conf->iface); in hostapd_setup_interface_complete()
2155 iface->bss[0]->conf->iface); in hostapd_setup_interface_complete()
2195 iface->bss[0]->conf->iface); in hostapd_setup_interface()
2434 iface = interfaces->iface[i]; in hostapd_interface_init_bss()
2491 iface->bss[iface->num_bss] = hapd; in hostapd_interface_init_bss()
2689 interfaces->iface = iface; in hostapd_iface_alloc()
[all …]
H A Dieee802_11_ht.c150 if (!iface->conf->ieee80211n || iface->conf->ht_op_mode_fixed) in hostapd_ht_operation_update()
168 (iface->num_sta_no_ht || iface->olbc_ht)) { in hostapd_ht_operation_update()
173 (iface->num_sta_no_ht == 0 && !iface->olbc_ht)) { in hostapd_ht_operation_update()
178 if (iface->num_sta_no_ht) in hostapd_ht_operation_update()
180 else if (iface->conf->secondary_channel && iface->num_sta_ht_20mhz) in hostapd_ht_operation_update()
182 else if (iface->olbc_ht) in hostapd_ht_operation_update()
210 pri_freq = hostapd_hw_get_freq(iface->bss[0], iface->conf->channel); in is_40_allowed()
232 struct hostapd_iface *iface = hapd->iface; in hostapd_2040_coex_action() local
445 iface->conf->obss_interval; in ht40_intolerant_remove()
451 iface, NULL); in ht40_intolerant_remove()
[all …]
H A Deth_p_oui.c33 struct eth_p_oui_iface *iface; member
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()
121 iface, 1); in eth_p_oui_register()
122 if (!iface->l2) { in eth_p_oui_register()
123 os_free(iface); in eth_p_oui_register()
132 receiver->iface = iface; in eth_p_oui_register()
148 iface = ctx->iface; in eth_p_oui_unregister()
156 os_free(iface); in eth_p_oui_unregister()
[all …]
H A Dbeacon.c95 if (hapd->iface->olbc) in ieee802_11_erp_info()
345 !hapd->iface->freq) in hostapd_eid_supported_op_classes()
631 MACSTR, iface->bss[0]->conf->iface, in sta_track_expire()
634 iface->num_sta_seen--; in sta_track_expire()
675 if (iface->num_sta_seen >= iface->conf->track_sta_max_num) { in sta_track_add()
681 MACSTR, iface->bss[0]->conf->iface, MAC2STR(addr)); in sta_track_add()
683 iface->num_sta_seen++; in sta_track_add()
697 iface = interfaces->iface[i]; in sta_track_seen_on()
699 hapd = iface->bss[j]; in sta_track_seen_on()
1400 struct hostapd_iface *iface = hapd->iface; in ieee802_11_set_beacon() local
[all …]
H A 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
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
64 static inline int hostapd_prepare_rates(struct hostapd_iface *iface, in hostapd_prepare_rates() argument
[all …]
H A Dieee802_11_he.c63 switch (hapd->iface->conf->he_oper_chwidth) { in hostapd_eid_he_capab()
136 if (!hapd->iface->current_mode) in hostapd_eid_he_operation()
150 if (hapd->iface->conf->he_op.he_twt_required) in hostapd_eid_he_operation()
153 if (hapd->iface->conf->he_op.he_rts_threshold) in hostapd_eid_he_operation()
157 if (hapd->iface->conf->he_op.he_bss_color) in hostapd_eid_he_operation()
181 pos = (u8 *) &hapd->iface->conf->he_mu_edca; in hostapd_eid_he_mu_edca_parameter_set()
212 if (!hapd->iface->conf->spr.sr_control) in hostapd_eid_spatial_reuse()
215 if (hapd->iface->conf->spr.sr_control & in hostapd_eid_spatial_reuse()
219 if (hapd->iface->conf->spr.sr_control & in hostapd_eid_spatial_reuse()
272 if (!hapd->iface->current_mode) in check_valid_he_mcs()
[all …]
H A Dairtime_policy.c131 struct hostapd_iface *iface = eloop_data; in update_airtime_weights() local
142 for (i = 0; i < iface->num_bss; i++) { in update_airtime_weights()
143 bss = iface->bss[i]; in update_airtime_weights()
161 for (i = 0; i < iface->num_bss; i++) { in update_airtime_weights()
162 bss = iface->bss[i]; in update_airtime_weights()
188 for (i = 0; i < iface->num_bss; i++) { in update_airtime_weights()
189 bss = iface->bss[i]; in update_airtime_weights()
211 for (i = 0; i < iface->num_bss; i++) { in update_airtime_weights()
212 bss = iface->bss[i]; in update_airtime_weights()
251 int airtime_policy_update_init(struct hostapd_iface *iface) in airtime_policy_update_init() argument
[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 Dutils.c55 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()
94 hapd->iface->interfaces->for_each_interface( in hostapd_prune_associations()
[all …]
H A Ddrv_callbacks.c252 if (hapd->iface->fst) in hostapd_notif_assoc()
309 hapd->iface->freq, in hostapd_notif_assoc()
963 if (hapd->iface->conf->ieee80211ac || hapd->iface->conf->ieee80211ax) { in hostapd_acs_channel_selected()
1223 return iface->bss[i]; in get_hapd_bssid()
1244 struct hostapd_iface *iface = hapd->iface; in hostapd_mgmt_rx() local
1280 hapd = iface->bss[0]; in hostapd_mgmt_rx()
1368 struct hostapd_iface *iface = hapd->iface; in hostapd_event_eapol_rx() local
1375 hapd = iface->bss[j]; in hostapd_event_eapol_rx()
1497 hapd->conf->iface); in hostapd_event_iface_unavailable()
1501 hapd->conf->iface); in hostapd_event_iface_unavailable()
[all …]
H A Dsta_info.c193 hapd->iface->num_sta_non_erp--; in ap_free_sta()
201 if (hapd->iface->current_mode && in ap_free_sta()
223 hapd->iface->num_sta_no_ht--; in ap_free_sta()
761 struct hostapd_iface *iface = hapd->iface; in ap_sta_remove_in_other_bss() local
780 bss->conf->iface); in ap_sta_remove_in_other_bss()
1026 const char *iface; in ap_sta_bind_vlan() local
1031 iface = hapd->conf->iface; in ap_sta_bind_vlan()
1041 iface = vlan->ifname; in ap_sta_bind_vlan()
1065 iface); in ap_sta_bind_vlan()
1074 "'%s'", iface); in ap_sta_bind_vlan()
[all …]
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_dfs_start_cac(struct hostapd_iface *iface, int freq,
31 int hostapd_handle_dfs_offload(struct hostapd_iface *iface);
/dragonfly/contrib/wpa_supplicant/wpa_supplicant/
H A Dwpa_priv.c64 iface->driver->deinit(iface->drv_priv); in wpa_priv_cmd_register()
85 iface->driver->global_init(iface->ctx); in wpa_priv_cmd_register()
94 iface->drv_priv = iface->driver->init2(iface, iface->ifname, in wpa_priv_cmd_register()
97 iface->drv_priv = iface->driver->init(iface, iface->ifname); in wpa_priv_cmd_register()
125 iface->driver->deinit(iface->drv_priv); in wpa_priv_cmd_unregister()
405 res = iface->driver->set_key(iface->ifname, iface->drv_priv, in wpa_priv_cmd_set_key()
511 iface->l2_ctx[idx].parent = iface; in wpa_priv_cmd_l2_register()
715 iface->driver->deinit(iface->drv_priv); in wpa_priv_interface_deinit()
751 iface = os_zalloc(sizeof(*iface)); in wpa_priv_interface_init()
1107 for (iface = global->interfaces; iface; iface = iface->next) { in wpa_supplicant_event_global()
[all …]
H A Dmain.c219 iface->confname = optarg; in main()
225 iface->driver = optarg; in main()
256 iface->ifname = optarg; in main()
259 iface->confanother = optarg; in main()
280 iface->driver_param = optarg; in main()
320 if (!iface) in main()
322 params.match_ifaces = iface; in main()
325 os_memset(iface, 0, sizeof(*iface)); in main()
332 if (iface == NULL) in main()
334 ifaces = iface; in main()
[all …]
/dragonfly/usr.sbin/ppp/
H A Diface.c91 struct iface *
101 struct iface *iface; in iface_Create() local
148 iface = (struct iface *)malloc(sizeof *iface); in iface_Create()
179 realloc(iface->addr, (iface->addrs + 1) * sizeof iface->addr[0]); in iface_Create()
413 bcopy(iface->addr + n + 1, iface->addr + n, in iface_Clear()
468 bcopy(iface->addr + n + 1, iface->addr + n, in iface_Add()
483 (iface->addr, (iface->addrs + 1) * sizeof iface->addr[0]); in iface_Add()
502 bcopy(iface->addr, iface->addr + 1, iface->addrs * sizeof *iface->addr); in iface_Add()
532 bcopy(iface->addr + n + 1, iface->addr + n, in iface_Delete()
600 iface_Destroy(struct iface *iface) in iface_Destroy() argument
[all …]
/dragonfly/contrib/wpa_supplicant/wpa_supplicant/dbus/
H A Ddbus_new_introspect.c30 struct interfaces *iface; in add_interface() local
38 if (!iface) in add_interface()
42 if (iface->dbus_interface == NULL || iface->xml == NULL) { in add_interface()
44 wpabuf_free(iface->xml); in add_interface()
45 os_free(iface); in add_interface()
50 return iface; in add_interface()
100 struct interfaces *iface; in extract_interfaces_methods() local
104 if (iface) in extract_interfaces_methods()
119 if (iface) in extract_interfaces_signals()
134 if (iface) in extract_interfaces_properties()
[all …]
H A Ddbus_new.c1172 if (iface == NULL) in wpas_dbus_signal_p2p_group_removed()
1243 if (iface == NULL) in wpas_dbus_signal_p2p_provision_discovery()
1345 if (iface == NULL) in wpas_dbus_signal_p2p_go_neg_req()
1668 if (iface == NULL) in wpas_dbus_signal_p2p_invitation_result()
1719 if (iface == NULL) in wpas_dbus_signal_p2p_peer_joined()
1776 if (iface == NULL) in wpas_dbus_signal_p2p_peer_disconnected()
1839 if (iface == NULL) in wpas_dbus_signal_p2p_sd_request()
1907 if (iface == NULL) in wpas_dbus_signal_p2p_sd_response()
1970 if (iface == NULL) in wpas_dbus_signal_persistent_group()
2056 if (iface == NULL) in wpas_dbus_signal_p2p_wps_failed()
[all …]
/dragonfly/contrib/wpa_supplicant/src/fst/
H A Dfst.c34 iface, NULL, &extra); in fst_ctrl_iface_notify_peer_state_change()
44 struct fst_iface *iface = NULL; in fst_attach() local
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()
90 void fst_detach(struct fst_iface *iface) in fst_detach() argument
96 fst_session_global_on_iface_detached(iface); in fst_detach()
98 fst_group_detach_iface(group, iface); in fst_detach()
[all …]
/dragonfly/sys/netgraph7/netflow/
H A Dng_netflow.c206 iface_p iface; in ng_netflow_newhook() local
227 iface->hook = hook; in ng_netflow_newhook()
238 iface_p iface; in ng_netflow_newhook() local
259 iface->out = hook; in ng_netflow_newhook()
347 iface = &priv->ifaces[set->iface]; in ng_netflow_rcvmsg()
376 iface = &priv->ifaces[set->iface]; in ng_netflow_rcvmsg()
460 if (hook == iface->out) { in ng_netflow_rcvdata()
644 if (iface != NULL) { in ng_netflow_disconnect()
646 iface->hook = NULL; in ng_netflow_disconnect()
647 if (iface->out == hook) in ng_netflow_disconnect()
[all …]
/dragonfly/contrib/wpa_supplicant/src/wps/
H A Dwps_upnp_web.c195 s = iface->wps->friendly_name; in format_wps_device_xml()
211 s = iface->wps->dev.model_name; in format_wps_device_xml()
219 if (iface->wps->model_url) in format_wps_device_xml()
235 if (iface->wps->upc) in format_wps_device_xml()
320 if (iface == NULL) { in web_connection_parse_get()
339 if (iface->wps->model_url) in web_connection_parse_get()
341 if (iface->wps->upc) in web_connection_parse_get()
436 if (!iface || iface->ctx->ap_pin == NULL) in web_process_get_device_info()
452 cfg.wps = iface->wps; in web_process_get_device_info()
503 if (!iface) in web_process_put_message()
[all …]
/dragonfly/contrib/wpa_supplicant/wpa_supplicant/binder/
H A Dsupplicant.cpp46 struct wpa_interface iface; in CreateInterface() local
48 os_memset(&iface, 0, sizeof(iface)); in CreateInterface()
49 iface.driver = os_strdup(android::String8(driver).string()); in CreateInterface()
50 iface.ifname = os_strdup(android::String8(ifname).string()); in CreateInterface()
51 iface.confname = os_strdup(android::String8(confname).string()); in CreateInterface()
52 iface.bridge_ifname = in CreateInterface()
55 wpa_s = wpa_supplicant_add_iface(wpa_global_, &iface, NULL); in CreateInterface()
77 os_free((void *)iface.driver); in CreateInterface()
78 os_free((void *)iface.ifname); in CreateInterface()
79 os_free((void *)iface.confname); in CreateInterface()
[all …]

12345678