Home
last modified time | relevance | path

Searched full:iface (Results 1 – 25 of 617) sorted by relevance

12345678910>>...25

/freebsd-src/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()
104 * hw mode is valid. Clear iface->current_mode temporarily as 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 in hostapd_get_hw_features()
148 hostapd_prepare_rates(struct hostapd_iface * iface,struct hostapd_hw_modes * mode) hostapd_prepare_rates() argument
227 ieee80211n_allowed_ht40_channel_pair(struct hostapd_iface * iface) ieee80211n_allowed_ht40_channel_pair() argument
251 ieee80211n_switch_pri_sec(struct hostapd_iface * iface) ieee80211n_switch_pri_sec() argument
265 ieee80211n_check_40mhz_5g(struct hostapd_iface * iface,struct wpa_scan_results * scan_res) ieee80211n_check_40mhz_5g() argument
299 ieee80211n_check_40mhz_2g4(struct hostapd_iface * iface,struct wpa_scan_results * scan_res) ieee80211n_check_40mhz_2g4() argument
312 ieee80211n_check_scan(struct hostapd_iface * iface) ieee80211n_check_scan() argument
383 ieee80211n_scan_channels_2g4(struct hostapd_iface * iface,struct wpa_driver_scan_params * params) ieee80211n_scan_channels_2g4() argument
428 ieee80211n_scan_channels_5g(struct hostapd_iface * iface,struct wpa_driver_scan_params * params) ieee80211n_scan_channels_5g() argument
472 struct hostapd_iface *iface = eloop_data; ap_ht40_scan_retry() local
508 hostapd_stop_setup_timers(struct hostapd_iface * iface) hostapd_stop_setup_timers() argument
514 ieee80211n_check_40mhz(struct hostapd_iface * iface) ieee80211n_check_40mhz() argument
557 ieee80211n_supported_ht_capab(struct hostapd_iface * iface) ieee80211n_supported_ht_capab() argument
647 ieee80211ac_supported_vht_capab(struct hostapd_iface * iface) ieee80211ac_supported_vht_capab() argument
680 ieee80211ax_supported_he_capab(struct hostapd_iface * iface) ieee80211ax_supported_he_capab() argument
687 hostapd_check_ht_capab(struct hostapd_iface * iface) hostapd_check_ht_capab() argument
726 hostapd_check_edmg_capab(struct hostapd_iface * iface) hostapd_check_edmg_capab() argument
752 hostapd_check_he_6ghz_capab(struct hostapd_iface * iface) hostapd_check_he_6ghz_capab() argument
797 hostapd_is_usable_chan(struct hostapd_iface * iface,int frequency,int primary) hostapd_is_usable_chan() argument
824 hostapd_is_usable_edmg(struct hostapd_iface * iface) hostapd_is_usable_edmg() argument
896 hostapd_is_usable_chans(struct hostapd_iface * iface) hostapd_is_usable_chans() argument
952 hostapd_determine_mode(struct hostapd_iface * iface) hostapd_determine_mode() argument
985 hostapd_check_chans(struct hostapd_iface * iface) hostapd_check_chans() argument
1011 hostapd_notify_bad_chans(struct hostapd_iface * iface) hostapd_notify_bad_chans() argument
1033 hostapd_acs_completed(struct hostapd_iface * iface,int err) hostapd_acs_completed() argument
1081 hostapd_select_hw_mode(struct hostapd_iface * iface) hostapd_select_hw_mode() argument
1200 hostapd_hw_skip_mode(struct hostapd_iface * iface,struct hostapd_hw_modes * mode) hostapd_hw_skip_mode() argument
[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 in ap_ap_list_add()
76 ap_ap_list_del(struct hostapd_iface * iface,struct ap_info * ap) ap_ap_list_del() argument
90 ap_ap_hash_add(struct hostapd_iface * iface,struct ap_info * ap) ap_ap_hash_add() argument
97 ap_ap_hash_del(struct hostapd_iface * iface,struct ap_info * ap) ap_ap_hash_del() argument
119 ap_free_ap(struct hostapd_iface * iface,struct ap_info * ap) ap_free_ap() argument
129 hostapd_free_aps(struct hostapd_iface * iface) hostapd_free_aps() argument
145 ap_ap_add(struct hostapd_iface * iface,const u8 * addr) ap_ap_add() argument
169 ap_list_process_beacon(struct hostapd_iface * iface,const struct ieee80211_mgmt * mgmt,struct ieee802_11_elems * elems,struct hostapd_frame_info * fi) ap_list_process_beacon() argument
249 ap_list_timer(struct hostapd_iface * iface) ap_list_timer() argument
299 ap_list_init(struct hostapd_iface * iface) ap_list_init() argument
305 ap_list_deinit(struct hostapd_iface * iface) ap_list_deinit() argument
[all...]
H A Ddfs.c30 dfs_downgrade_bandwidth(struct hostapd_iface *iface, int *secondary_channel, in dfs_get_used_n_chans()
36 static bool dfs_use_radar_background(struct hostapd_iface *iface) in dfs_get_used_n_chans()
38 return (iface->drv_flags2 & WPA_DRIVER_FLAGS2_RADAR_BACKGROUND) && in dfs_get_used_n_chans()
39 iface->conf->enable_background_radar; in dfs_get_used_n_chans()
43 static int dfs_get_used_n_chans(struct hostapd_iface *iface, int *seg1) in dfs_get_used_n_chans()
49 if (iface->conf->ieee80211n && iface->conf->secondary_channel) in dfs_get_used_n_chans()
52 if (iface->conf->ieee80211ac || iface->conf->ieee80211ax) {
53 switch (hostapd_get_oper_chwidth(iface
22 dfs_get_used_n_chans(struct hostapd_iface * iface,int * seg1) dfs_get_used_n_chans() argument
191 is_in_chanlist(struct hostapd_iface * iface,struct hostapd_channel_data * chan) is_in_chanlist() argument
208 dfs_find_channel(struct hostapd_iface * iface,struct hostapd_channel_data ** ret_chan,int idx,int skip_radar) dfs_find_channel() argument
266 dfs_adjust_center_freq(struct hostapd_iface * iface,struct hostapd_channel_data * chan,int secondary_channel,int sec_chan_idx_80p80,u8 * oper_centr_freq_seg0_idx,u8 * oper_centr_freq_seg1_idx) dfs_adjust_center_freq() argument
315 dfs_get_start_chan_idx(struct hostapd_iface * iface,int * seg1_start) dfs_get_start_chan_idx() argument
402 dfs_check_chans_radar(struct hostapd_iface * iface,int start_chan_idx,int n_chans) dfs_check_chans_radar() argument
422 dfs_check_chans_available(struct hostapd_iface * iface,int start_chan_idx,int n_chans) dfs_check_chans_available() argument
450 dfs_check_chans_unavailable(struct hostapd_iface * iface,int start_chan_idx,int n_chans) dfs_check_chans_unavailable() argument
474 dfs_get_valid_channel(struct hostapd_iface * iface,int * secondary_channel,u8 * oper_centr_freq_seg0_idx,u8 * oper_centr_freq_seg1_idx,int skip_radar) dfs_get_valid_channel() argument
571 set_dfs_state_freq(struct hostapd_iface * iface,int freq,u32 state) set_dfs_state_freq() argument
597 set_dfs_state(struct hostapd_iface * iface,int freq,int ht_enabled,int chan_offset,int chan_width,int cf1,int cf2,u32 state) set_dfs_state() argument
663 dfs_are_channels_overlapped(struct hostapd_iface * iface,int freq,int chan_width,int cf1,int cf2) dfs_are_channels_overlapped() argument
728 dfs_get_cac_time(struct hostapd_iface * iface,int start_chan_idx,int n_chans) dfs_get_cac_time() argument
756 hostapd_handle_dfs(struct hostapd_iface * iface) hostapd_handle_dfs() argument
862 hostapd_is_dfs_chan_available(struct hostapd_iface * iface) hostapd_is_dfs_chan_available() argument
879 hostapd_dfs_complete_cac(struct hostapd_iface * iface,int success,int freq,int ht_enabled,int chan_offset,int chan_width,int cf1,int cf2) hostapd_dfs_complete_cac() argument
921 hostapd_dfs_pre_cac_expired(struct hostapd_iface * iface,int freq,int ht_enabled,int chan_offset,int chan_width,int cf1,int cf2) hostapd_dfs_pre_cac_expired() argument
941 dfs_downgrade_bandwidth(struct hostapd_iface * iface,int * secondary_channel,u8 * oper_centr_freq_seg0_idx,u8 * oper_centr_freq_seg1_idx,int * skip_radar) dfs_downgrade_bandwidth() argument
978 hostapd_dfs_start_channel_switch_cac(struct hostapd_iface * iface) hostapd_dfs_start_channel_switch_cac() argument
1025 hostapd_dfs_start_channel_switch(struct hostapd_iface * iface) hostapd_dfs_start_channel_switch() argument
1171 hostapd_dfs_radar_detected(struct hostapd_iface * iface,int freq,int ht_enabled,int chan_offset,int chan_width,int cf1,int cf2) hostapd_dfs_radar_detected() argument
1206 hostapd_dfs_nop_finished(struct hostapd_iface * iface,int freq,int ht_enabled,int chan_offset,int chan_width,int cf1,int cf2) hostapd_dfs_nop_finished() argument
1230 hostapd_is_dfs_required(struct hostapd_iface * iface) hostapd_is_dfs_required() argument
1258 hostapd_dfs_start_cac(struct hostapd_iface * iface,int freq,int ht_enabled,int chan_offset,int chan_width,int cf1,int cf2) hostapd_dfs_start_cac() argument
1285 hostapd_handle_dfs_offload(struct hostapd_iface * iface) hostapd_handle_dfs_offload() argument
1319 hostapd_is_dfs_overlap(struct hostapd_iface * iface,enum chan_width width,int center_freq) hostapd_is_dfs_overlap() argument
[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()
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_reconfig_encryption()
110 for (i = 1; i < hapd->iface->num_bss; i++) in hostapd_reload_bss()
111 if (hapd->iface->bss[i] == hapd) in hostapd_reload_bss()
126 hostapd_setup_encryption(hapd->conf->iface, hapd); in hostapd_reload_bss()
161 hostapd_set_drv_ieee8021x(hapd, hapd->conf->iface, in hostapd_reload_bss()
72 hostapd_for_each_interface(struct hapd_interfaces * interfaces,int (* cb)(struct hostapd_iface * iface,void * ctx),void * ctx) hostapd_for_each_interface() argument
171 hostapd_clear_old(struct hostapd_iface * iface) hostapd_clear_old() argument
213 hostapd_reload_config(struct hostapd_iface * iface) hostapd_reload_config() argument
489 sta_track_deinit(struct hostapd_iface * iface) sta_track_deinit() argument
505 hostapd_cleanup_iface_partial(struct hostapd_iface * iface) hostapd_cleanup_iface_partial() argument
533 hostapd_cleanup_iface(struct hostapd_iface * iface) hostapd_cleanup_iface() argument
562 hostapd_setup_encryption(char * iface,struct hostapd_data * hapd) hostapd_setup_encryption() argument
650 hostapd_validate_bssid_configuration(struct hostapd_iface * iface) hostapd_validate_bssid_configuration() argument
1410 hostapd_tx_queue_params(struct hostapd_iface * iface) hostapd_tx_queue_params() argument
1509 start_ctrl_iface(struct hostapd_iface * iface) start_ctrl_iface() argument
1532 struct hostapd_iface *iface = eloop_ctx; channel_list_update_timeout() local
1548 hostapd_channel_list_updated(struct hostapd_iface * iface,int initiator) hostapd_channel_list_updated() argument
1559 setup_interface(struct hostapd_iface * iface) setup_interface() argument
1632 configured_fixed_chan_to_freq(struct hostapd_iface * iface) configured_fixed_chan_to_freq() argument
1677 hostapd_set_6ghz_sec_chan(struct hostapd_iface * iface) hostapd_set_6ghz_sec_chan() argument
1697 setup_interface2(struct hostapd_iface * iface) setup_interface2() argument
1900 hostapd_owe_iface_iter(struct hostapd_iface * iface,void * ctx) hostapd_owe_iface_iter() argument
1954 hostapd_owe_iface_iter2(struct hostapd_iface * iface,void * ctx) hostapd_owe_iface_iter2() argument
1986 hostapd_owe_update_trans(struct hostapd_iface * iface) hostapd_owe_update_trans() argument
2004 struct hostapd_iface *iface = eloop_ctx; hostapd_interface_setup_failure_handler() local
2015 hostapd_setup_interface_complete_sync(struct hostapd_iface * iface,int err) hostapd_setup_interface_complete_sync() argument
2257 hostapd_setup_interface_complete(struct hostapd_iface * iface,int err) hostapd_setup_interface_complete() argument
2348 hostapd_setup_interface(struct hostapd_iface * iface) hostapd_setup_interface() argument
2427 hostapd_interface_deinit(struct hostapd_iface * iface) hostapd_interface_deinit() argument
2460 hostapd_interface_free(struct hostapd_iface * iface) hostapd_interface_free() argument
2557 struct hostapd_iface *iface = interfaces->iface[i]; ifname_in_use() local
2584 struct hostapd_iface *new_iface = NULL, *iface = NULL; hostapd_interface_init_bss() local
2686 hostapd_interface_deinit_free(struct hostapd_iface * iface) hostapd_interface_deinit_free() argument
2852 struct hostapd_iface **iface, *hapd_iface; hostapd_iface_alloc() local
3134 hostapd_remove_bss(struct hostapd_iface * iface,unsigned int idx) hostapd_remove_bss() argument
3316 hostapd_set_state(struct hostapd_iface * iface,enum hostapd_iface_state s) hostapd_set_state() argument
3325 hostapd_csa_in_progress(struct hostapd_iface * iface) hostapd_csa_in_progress() argument
3532 struct hostapd_iface *iface = hapd->iface; hostapd_fill_csa_settings() local
3672 hostapd_switch_channel_fallback(struct hostapd_iface * iface,const struct hostapd_freq_params * freq_params) hostapd_switch_channel_fallback() argument
3733 struct hostapd_iface *iface = interfaces->iface[i]; hostapd_get_iface() local
3747 hostapd_periodic_iface(struct hostapd_iface * iface) hostapd_periodic_iface() argument
[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 in hostapd_ht_operation_update()
179 is_40_allowed(struct hostapd_iface * iface,int channel) is_40_allowed() argument
210 struct hostapd_iface *iface = hapd->iface; hostapd_2040_coex_action() local
388 ht40_intolerant_add(struct hostapd_iface * iface,struct sta_info * sta) ht40_intolerant_add() argument
411 ht40_intolerant_remove(struct hostapd_iface * iface,struct sta_info * sta) ht40_intolerant_remove() argument
529 struct hostapd_iface *iface = eloop_data; ap_ht2040_timeout() local
[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 Dacs.c309 static int acs_request_scan(struct hostapd_iface *iface); in acs_survey_interference_factor()
348 void acs_cleanup(struct hostapd_iface *iface) in acs_survey_chan_interference_factor()
352 for (i = 0; i < iface->num_hw_features; i++) in acs_survey_chan_interference_factor()
353 acs_cleanup_mode(&iface->hw_features[i]); in acs_survey_chan_interference_factor()
355 iface->chans_surveyed = 0; in acs_survey_chan_interference_factor()
356 iface->acs_num_completed_scans = 0; in acs_survey_chan_interference_factor()
357 iface->acs_num_retries = 0; in acs_survey_chan_interference_factor()
358 eloop_cancel_timeout(acs_scan_retry, iface, NULL); in acs_survey_chan_interference_factor()
362 static void acs_fail(struct hostapd_iface *iface) in acs_survey_chan_interference_factor()
365 acs_cleanup(iface); in acs_survey_chan_interference_factor()
282 acs_cleanup(struct hostapd_iface * iface) acs_cleanup() argument
294 acs_fail(struct hostapd_iface * iface) acs_fail() argument
334 acs_survey_chan_interference_factor(struct hostapd_iface * iface,struct hostapd_channel_data * chan) acs_survey_chan_interference_factor() argument
486 acs_surveys_are_sufficient(struct hostapd_iface * iface) acs_surveys_are_sufficient() argument
510 is_in_chanlist(struct hostapd_iface * iface,struct hostapd_channel_data * chan) is_in_chanlist() argument
520 is_in_freqlist(struct hostapd_iface * iface,struct hostapd_channel_data * chan) is_in_freqlist() argument
532 acs_survey_mode_interference_factor(struct hostapd_iface * iface,struct hostapd_hw_modes * mode) acs_survey_mode_interference_factor() argument
564 acs_survey_all_chans_interference_factor(struct hostapd_iface * iface) acs_survey_all_chans_interference_factor() argument
598 acs_find_chan(struct hostapd_iface * iface,int freq) acs_find_chan() argument
648 acs_find_ideal_chan_mode(struct hostapd_iface * iface,struct hostapd_hw_modes * mode,int n_chans,u32 bw,struct hostapd_channel_data ** rand_chan,struct hostapd_channel_data ** ideal_chan,long double * ideal_factor) acs_find_ideal_chan_mode() argument
838 acs_find_ideal_chan(struct hostapd_iface * iface) acs_find_ideal_chan() argument
903 acs_adjust_center_freq(struct hostapd_iface * iface) acs_adjust_center_freq() argument
932 acs_study_survey_based(struct hostapd_iface * iface) acs_study_survey_based() argument
951 acs_study_options(struct hostapd_iface * iface) acs_study_options() argument
963 acs_study(struct hostapd_iface * iface) acs_study() argument
1005 acs_scan_complete(struct hostapd_iface * iface) acs_scan_complete() argument
1038 acs_request_scan_add_freqs(struct hostapd_iface * iface,struct hostapd_hw_modes * mode,int * freq) acs_request_scan_add_freqs() argument
1066 acs_request_scan(struct hostapd_iface * iface) acs_request_scan() argument
1120 acs_init(struct hostapd_iface * iface) acs_init() argument
[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,
38 hostapd_get_hw_features(struct hostapd_iface * iface) hostapd_get_hw_features() argument
43 hostapd_acs_completed(struct hostapd_iface * iface,int err) hostapd_acs_completed() argument
48 hostapd_select_hw_mode(struct hostapd_iface * iface) hostapd_select_hw_mode() argument
63 hostapd_check_ht_capab(struct hostapd_iface * iface) hostapd_check_ht_capab() argument
68 hostapd_check_edmg_capab(struct hostapd_iface * iface) hostapd_check_edmg_capab() argument
73 hostapd_prepare_rates(struct hostapd_iface * iface,struct hostapd_hw_modes * mode) hostapd_prepare_rates() argument
79 hostapd_stop_setup_timers(struct hostapd_iface * iface) hostapd_stop_setup_timers() argument
83 hostapd_hw_skip_mode(struct hostapd_iface * iface,struct hostapd_hw_modes * mode) hostapd_hw_skip_mode() argument
89 hostapd_check_he_6ghz_capab(struct hostapd_iface * iface) hostapd_check_he_6ghz_capab() argument
[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 in hostapd_eid_he_operation()
[all...]
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 in hostapd_eid_pwr_constraint()
657 struct hostapd_iface *iface = hapd->iface; ssid_match() local
723 sta_track_expire(struct hostapd_iface * iface,int force) sta_track_expire() argument
750 sta_track_get(struct hostapd_iface * iface,const u8 * addr) sta_track_get() argument
763 sta_track_add(struct hostapd_iface * iface,const u8 * addr,int ssi_signal) sta_track_add() argument
798 sta_track_seen_on(struct hostapd_iface * iface,const u8 * addr,const char * ifname) sta_track_seen_on() argument
824 sta_track_claim_taxonomy_info(struct hostapd_iface * iface,const u8 * addr,struct wpabuf ** probe_ie_taxonomy) sta_track_claim_taxonomy_info() argument
1783 struct hostapd_iface *iface = hapd->iface; __ieee802_11_set_beacon() local
1870 struct hostapd_iface *iface = hapd->iface; ieee802_11_set_beacon() local
1904 ieee802_11_set_beacons(struct hostapd_iface * iface) ieee802_11_set_beacons() argument
1920 ieee802_11_update_beacons(struct hostapd_iface * iface) ieee802_11_update_beacons() argument
[all...]
H A Dairtime_policy.c29 * - Separate periodic per-bss (or per-iface?) callback to update weights.
36 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 in update_airtime_weights()
255 airtime_policy_update_init(struct hostapd_iface * iface) airtime_policy_update_init() argument
270 airtime_policy_update_deinit(struct hostapd_iface * iface) airtime_policy_update_deinit() 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 in update_channel_utilization()
[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_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 Dutils.c49 static int prune_associations(struct hostapd_iface *iface, void *ctx) in prune_associations()
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));
108 if (hapd->iface->interfaces &&
109 hapd->iface
48 prune_associations(struct hostapd_iface * iface,void * ctx) prune_associations() argument
[all...]
H A Dctrl_iface_ap.c786 struct hostapd_iface *iface = hapd->iface; in hostapd_ctrl_iface_status()
787 struct hostapd_hw_modes *mode = iface->current_mode; in hostapd_ctrl_iface_status()
806 hostapd_state_text(iface->state), in hostapd_ctrl_iface_status()
807 iface->phy, in hostapd_ctrl_iface_status()
808 iface->freq, in hostapd_ctrl_iface_status()
809 iface->num_sta_non_erp, in hostapd_ctrl_iface_status()
810 iface->num_sta_no_short_slot_time, in hostapd_ctrl_iface_status()
811 iface->num_sta_no_short_preamble, in hostapd_ctrl_iface_status()
812 iface in hostapd_ctrl_iface_status()
683 struct hostapd_iface *iface = hapd->iface; hostapd_ctrl_iface_status() local
[all...]
H A Ddrv_callbacks.c268 struct hostapd_iface *iface = hapd->iface; in hostapd_notif_assoc()
407 if (hapd->iface->drv_max_acl_mac_addrs == 0 && in hostapd_notif_assoc()
427 (hapd->iface->conf->ht_capab & in hostapd_notif_assoc()
435 ht40_intolerant_add(hapd->iface, sta); in hostapd_notif_assoc()
460 if (hapd->iface->fst) in hostapd_notif_assoc()
526 hapd->iface->freq, in hostapd_notif_assoc()
783 !(iface->drv_flags2 & WPA_DRIVER_FLAGS2_OWE_OFFLOAD_AP) && in hostapd_event_sta_low_ack()
932 struct hapd_interfaces *interfaces = assoc_hapd->iface->interfaces; in hostapd_event_ch_switch()
942 tmp_hapd = interfaces->iface[ in hostapd_event_ch_switch()
1378 get_hapd_bssid(struct hostapd_iface * iface,const u8 * bssid) get_hapd_bssid() argument
1412 struct hostapd_iface *iface = hapd->iface; hostapd_mgmt_rx() local
1536 struct hostapd_iface *iface = hapd->iface; hostapd_event_eapol_rx() local
1571 hostapd_get_mode_channel(struct hostapd_iface * iface,unsigned int freq) hostapd_get_mode_channel() argument
1588 hostapd_update_nf(struct hostapd_iface * iface,struct hostapd_channel_data * chan,struct freq_survey * survey) hostapd_update_nf() argument
1606 hostapd_single_channel_get_survey(struct hostapd_iface * iface,struct survey_results * survey_res) hostapd_single_channel_get_survey() argument
1643 hostapd_event_get_survey(struct hostapd_iface * iface,struct survey_results * survey_results) hostapd_event_get_survey() argument
[all...]
/freebsd-src/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 in wpa_priv_cmd_register()
120 wpa_priv_cmd_unregister(struct wpa_priv_interface * iface,struct sockaddr_un * from) wpa_priv_cmd_unregister() argument
136 wpa_priv_cmd_scan(struct wpa_priv_interface * iface,void * buf,size_t len) wpa_priv_cmd_scan() argument
181 wpa_priv_get_scan_results2(struct wpa_priv_interface * iface,struct sockaddr_un * from,socklen_t fromlen) wpa_priv_get_scan_results2() argument
227 wpa_priv_cmd_get_scan_results(struct wpa_priv_interface * iface,struct sockaddr_un * from,socklen_t fromlen) wpa_priv_cmd_get_scan_results() argument
241 wpa_priv_cmd_authenticate(struct wpa_priv_interface * iface,void * buf,size_t len) wpa_priv_cmd_authenticate() argument
293 wpa_priv_cmd_associate(struct wpa_priv_interface * iface,void * buf,size_t len) wpa_priv_cmd_associate() argument
341 wpa_priv_cmd_get_bssid(struct wpa_priv_interface * iface,struct sockaddr_un * from,socklen_t fromlen) wpa_priv_cmd_get_bssid() argument
362 wpa_priv_cmd_get_ssid(struct wpa_priv_interface * iface,struct sockaddr_un * from,socklen_t fromlen) wpa_priv_cmd_get_ssid() argument
389 wpa_priv_cmd_set_key(struct wpa_priv_interface * iface,void * buf,size_t len) wpa_priv_cmd_set_key() argument
423 wpa_priv_cmd_get_capa(struct wpa_priv_interface * iface,struct sockaddr_un * from,socklen_t fromlen) wpa_priv_cmd_get_capa() argument
452 struct wpa_priv_interface *iface = l2_ctx->parent; wpa_priv_l2_rx() local
480 wpa_priv_cmd_l2_register(struct wpa_priv_interface * iface,struct sockaddr_un * from,socklen_t fromlen,void * buf,size_t len) wpa_priv_cmd_l2_register() argument
541 wpa_priv_cmd_l2_unregister(struct wpa_priv_interface * iface,struct sockaddr_un * from,socklen_t fromlen) wpa_priv_cmd_l2_unregister() argument
565 wpa_priv_cmd_l2_notify_auth_start(struct wpa_priv_interface * iface,struct sockaddr_un * from) wpa_priv_cmd_l2_notify_auth_start() argument
577 wpa_priv_cmd_l2_send(struct wpa_priv_interface * iface,struct sockaddr_un * from,socklen_t fromlen,void * buf,size_t len) wpa_priv_cmd_l2_send() argument
622 wpa_priv_cmd_set_country(struct wpa_priv_interface * iface,char * buf) wpa_priv_cmd_set_country() argument
635 struct wpa_priv_interface *iface = eloop_ctx; wpa_priv_receive() local
716 wpa_priv_interface_deinit(struct wpa_priv_interface * iface) wpa_priv_interface_deinit() argument
748 struct wpa_priv_interface *iface; wpa_priv_interface_init() local
863 wpa_priv_send_event(struct wpa_priv_interface * iface,int event,const void * data,size_t data_len) wpa_priv_send_event() argument
890 wpa_priv_send_auth(struct wpa_priv_interface * iface,union wpa_event_data * data) wpa_priv_send_auth() argument
920 wpa_priv_send_assoc(struct wpa_priv_interface * iface,int event,union wpa_event_data * data) wpa_priv_send_assoc() argument
981 wpa_priv_send_interface_status(struct wpa_priv_interface * iface,union wpa_event_data * data) wpa_priv_send_interface_status() argument
1013 wpa_priv_send_ft_response(struct wpa_priv_interface * iface,union wpa_event_data * data) wpa_priv_send_ft_response() argument
1044 struct wpa_priv_interface *iface = ctx; wpa_supplicant_event() local
1109 struct wpa_priv_interface *iface; wpa_supplicant_event_global() local
1139 struct wpa_priv_interface *iface = ctx; wpa_supplicant_rx_eapol() local
1213 struct wpa_priv_interface *iface; main() local
[all...]
/freebsd-src/usr.sbin/ppp/
H A Diface.c81 #include "iface.h"
88 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 in iface_Create()
376 iface_Name(struct iface * iface,const char * name) iface_Name() argument
412 struct iface *iface; iface_Descr() local
474 iface_Clear(struct iface * iface,struct ncp * ncp,int family,int how) iface_Clear() argument
531 iface_Add(struct iface * iface,struct ncp * ncp,const struct ncprange * ifa,const struct ncpaddr * peer,int how) iface_Add() argument
617 iface_Delete(struct iface * iface,struct ncp * ncp,const struct ncpaddr * del) iface_Delete() argument
710 iface_Free(struct iface * iface) iface_Free() argument
719 iface_Destroy(struct iface * iface) iface_Destroy() argument
765 struct iface *iface = arg->bundle->iface, *current; iface_Show() local
[all...]
/freebsd-src/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()
70 fst_printf_group(group, MSG_ERROR, "cannot create iface for %s", 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()
[all …]
H A Dfst_group.c271 * (iface, MAC tuple) by using peer's MB IE on iface.
273 * @iface: iface on which FST Setup Request was received
274 * @peer_addr: Peer address on iface
277 * "other" iface)
279 * This function parses peer's MB IE on iface. It looks for peer's MAC address
285 fst_group_get_peer_other_connection_1(struct fst_iface *iface, in fst_group_get_peer_other_connection_1()
293 /* Get peer's MB IEs on iface */ in fst_group_get_peer_other_connection_1()
294 mbies = fst_iface_get_peer_mb_ie(iface, peer_add in fst_group_get_peer_other_connection_1()
280 fst_group_get_peer_other_connection_1(struct fst_iface * iface,const u8 * peer_addr,u8 band_id,u8 * other_peer_addr) fst_group_get_peer_other_connection_1() argument
335 fst_group_get_peer_other_connection_2(struct fst_iface * iface,const u8 * peer_addr,u8 band_id,u8 * other_peer_addr) fst_group_get_peer_other_connection_2() argument
391 fst_group_get_peer_other_connection(struct fst_iface * iface,const u8 * peer_addr,u8 band_id,u8 * other_peer_addr) fst_group_get_peer_other_connection() argument
[all...]
H A Dfst_session.c35 #define fst_printf_siface(s, iface, level, format, ...) \ argument
37 fst_iface_get_name(iface), ##__VA_ARGS__)
276 struct fst_iface *iface = in fst_session_send_action()
286 if (!iface) { in fst_session_send_action()
311 res = fst_iface_send_action(iface, in fst_session_send_action()
315 fst_printf_siface(s, iface, MSG_ERROR, in fst_session_send_action()
319 fst_printf_siface(s, iface, MSG_DEBUG, "FST Action '%s' sent", in fst_session_send_action()
356 static void fst_session_handle_setup_request(struct fst_iface *iface,
368 fst_printf_iface(iface, MSG_WARNING, in fst_session_handle_setup_request()
379 fst_printf_iface(iface, MSG_WARNIN in fst_session_handle_setup_request()
278 struct fst_iface *iface = fst_session_send_action() local
358 fst_session_handle_setup_request(struct fst_iface * iface,const struct ieee80211_mgmt * mgmt,size_t frame_len) fst_session_handle_setup_request() argument
501 fst_session_handle_setup_response(struct fst_session * s,struct fst_iface * iface,const struct ieee80211_mgmt * mgmt,size_t frame_len) fst_session_handle_setup_response() argument
605 fst_session_handle_tear_down(struct fst_session * s,struct fst_iface * iface,const struct ieee80211_mgmt * mgmt,size_t frame_len) fst_session_handle_tear_down() argument
640 fst_session_handle_ack_request(struct fst_session * s,struct fst_iface * iface,const struct ieee80211_mgmt * mgmt,size_t frame_len) fst_session_handle_ack_request() argument
704 fst_session_handle_ack_response(struct fst_session * s,struct fst_iface * iface,const struct ieee80211_mgmt * mgmt,size_t frame_len) fst_session_handle_ack_response() argument
787 fst_session_set_iface(struct fst_session * s,struct fst_iface * iface,bool is_old) fst_session_set_iface() argument
1072 fst_session_handle_action(struct fst_session * s,struct fst_iface * iface,const struct ieee80211_mgmt * mgmt,size_t frame_len) fst_session_handle_action() argument
1194 fst_session_on_action_rx(struct fst_iface * iface,const struct ieee80211_mgmt * mgmt,size_t len) fst_session_on_action_rx() argument
1286 fst_session_global_on_iface_detached(struct fst_iface * iface) fst_session_global_on_iface_detached() argument
1587 struct fst_iface *iface; fst_test_req_get_local_mbies() local
[all...]
/freebsd-src/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 in add_interface()
100 struct interfaces *iface; extract_interfaces_methods() local
115 struct interfaces *iface; extract_interfaces_signals() local
130 struct interfaces *iface; extract_interfaces_properties() local
161 struct interfaces *iface, *n; add_interfaces() local
[all...]
/freebsd-src/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()
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
152 hostapd_driver_init(struct hostapd_iface * iface) hostapd_driver_init() argument
260 struct hostapd_iface *iface; hostapd_interface_init() local
305 handle_reload_iface(struct hostapd_iface * iface,void * ctx) handle_reload_iface() argument
619 hostapd_periodic_call(struct hostapd_iface * iface,void * ctx) hostapd_periodic_call() argument
841 struct hostapd_iface *iface; main() local
[all...]
/freebsd-src/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 in prepare_ifmap()
243 struct iface *iface = ifmap->ifaces[ifindex]; prepare_ifaddrs() local
252 match_iface(struct ifconfig_args * args,struct iface * iface) match_iface() argument
317 sort_iface_ifaddrs(struct snl_state * ss,struct iface * iface) sort_iface_ifaddrs() argument
364 status_nl(if_ctx * ctx,struct iface * iface) status_nl() argument
469 struct iface *iface = sorted_ifaces[i]; list_interfaces_nl() local
[all...]
/freebsd-src/sys/netgraph/netflow/
H A Dng_netflow.c284 if (strncmp(name, NG_NETFLOW_HOOK_DATA, /* an iface hook? */ in ng_netflow_newhook()
286 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()
[all …]

12345678910>>...25