/hostap-latest/src/ap/ |
D | hw_features.c | 79 int hostapd_get_hw_features(struct hostapd_iface *iface) in hostapd_get_hw_features() argument 81 struct hostapd_data *hapd = iface->bss[0]; in hostapd_get_hw_features() 102 iface->hw_flags = flags; in hostapd_get_hw_features() 103 iface->dfs_domain = dfs_domain; in hostapd_get_hw_features() 105 if (iface->current_mode) { in hostapd_get_hw_features() 113 mode = iface->current_mode->mode; in hostapd_get_hw_features() 114 is_6ghz = iface->current_mode->is_6ghz; in hostapd_get_hw_features() 115 iface->current_mode = NULL; in hostapd_get_hw_features() 117 hostapd_free_hw_features(iface->hw_features, iface->num_hw_features); in hostapd_get_hw_features() 118 iface->hw_features = modes; in hostapd_get_hw_features() [all …]
|
D | dfs.c | 30 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 …]
|
D | acs.c | 317 static int acs_request_scan(struct hostapd_iface *iface); 356 void acs_cleanup(struct hostapd_iface *iface) in acs_cleanup() argument 360 for (i = 0; i < iface->num_hw_features; i++) in acs_cleanup() 361 acs_cleanup_mode(&iface->hw_features[i]); in acs_cleanup() 363 iface->chans_surveyed = 0; in acs_cleanup() 364 iface->acs_num_completed_scans = 0; in acs_cleanup() 365 iface->acs_num_retries = 0; in acs_cleanup() 366 eloop_cancel_timeout(acs_scan_retry, iface, NULL); in acs_cleanup() 370 static void acs_fail(struct hostapd_iface *iface) in acs_fail() argument 373 acs_cleanup(iface); in acs_fail() [all …]
|
D | ap_list.c | 31 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 …]
|
D | hostapd.c | 67 static int hostapd_setup_encryption(char *iface, struct hostapd_data *hapd); 70 static int setup_interface2(struct hostapd_iface *iface); 81 int (*cb)(struct hostapd_iface *iface, in hostapd_for_each_interface() argument 88 if (!interfaces->iface[i]) in hostapd_for_each_interface() 90 ret = cb(interfaces->iface[i], ctx); in hostapd_for_each_interface() 102 return hapd->iface->bss[0]; in hostapd_mbssid_get_tx_bss() 113 for (i = 1; i < hapd->iface->num_bss; i++) in hostapd_mbssid_get_bss_index() 114 if (hapd->iface->bss[i] == hapd) in hostapd_mbssid_get_bss_index() 129 hostapd_setup_encryption(hapd->conf->iface, hapd); in hostapd_reconfig_encryption() 164 hostapd_set_drv_ieee8021x(hapd, hapd->conf->iface, 1); in hostapd_reload_bss() [all …]
|
D | ieee802_11_ht.c | 29 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 …]
|
D | hw_features.h | 17 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 …]
|
D | eth_p_oui.c | 33 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 …]
|
D | ieee802_11_he.c | 93 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 …]
|
D | airtime_policy.c | 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->num_bss; i++) { in update_airtime_weights() 193 bss = iface->bss[i]; in update_airtime_weights() [all …]
|
D | beacon.c | 59 *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 …]
|
D | bss_load.c | 47 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()
|
D | drv_callbacks.c | 268 struct hostapd_iface *iface = hapd->iface; in hostapd_notif_assoc() local 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() 528 hapd->iface->freq, in hostapd_notif_assoc() 785 !(iface->drv_flags2 & WPA_DRIVER_FLAGS2_OWE_OFFLOAD_AP) && in hostapd_notif_assoc() 934 struct hapd_interfaces *interfaces = assoc_hapd->iface->interfaces; in hostapd_notif_disassoc_mld() 944 tmp_hapd = interfaces->iface[i]->bss[0]; in hostapd_notif_disassoc_mld() 992 for (i = 0; i < hapd->iface->interfaces->count; ++i) { in hostapd_notif_disassoc() [all …]
|
D | dfs.h | 12 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,
|
D | utils.c | 49 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 …]
|
/hostap-latest/wpa_supplicant/ |
D | wpa_priv.c | 56 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 …]
|
D | main.c | 185 struct wpa_interface *ifaces, *iface; in main() local 196 iface = ifaces = os_zalloc(sizeof(struct wpa_interface)); in main() 210 iface->bridge_ifname = optarg; in main() 216 iface->confname = optarg; in main() 219 iface->ctrl_interface = optarg; in main() 222 iface->driver = optarg; in main() 253 iface->ifname = optarg; in main() 256 iface->confanother = optarg; in main() 277 iface->driver_param = optarg; in main() 314 iface = os_realloc_array(params.match_ifaces, in main() [all …]
|
/hostap-latest/src/fst/ |
D | fst.c | 22 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 …]
|
D | fst_session.c | 35 #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() local 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, in fst_session_handle_setup_request() argument 368 fst_printf_iface(iface, MSG_WARNING, in fst_session_handle_setup_request() 379 fst_printf_iface(iface, MSG_WARNING, in fst_session_handle_setup_request() [all …]
|
/hostap-latest/wpa_supplicant/dbus/ |
D | dbus_new_introspect.c | 30 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 …]
|
D | dbus_new.c | 135 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 …]
|
/hostap-latest/hostapd/ |
D | main.c | 95 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 …]
|
/hostap-latest/tests/hwsim/ |
D | test_p2p_device.py | 21 with HWSimRadio(use_p2p_device=True) as (radio, iface): 23 wpas.interface_add(iface) 30 if not r_res['ifname'].startswith('p2p-' + iface): 33 res = wpas.global_request("IFNAME=p2p-dev-" + iface + " STATUS-DRIVER") 49 with HWSimRadio(use_p2p_device=True) as (radio, iface): 51 wpas.interface_add(iface) 58 if not i_res['ifname'].startswith('p2p-' + iface): 63 with HWSimRadio(use_p2p_device=True) as (radio, iface): 65 wpas.interface_add(iface) 73 if r_res['ifname'] != iface: [all …]
|
/hostap-latest/src/wps/ |
D | wps_upnp_web.c | 182 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 …]
|
/hostap-latest/tests/fuzzing/ap-mgmt/ |
D | ap-mgmt.c | 30 struct hostapd_iface iface; member 106 hapd->iface = &ctx->iface; in init_hapd() 107 hapd->iface->conf = hostapd_config_defaults(); in init_hapd() 108 if (!hapd->iface->conf) in init_hapd() 110 hapd->iface->hw_features = gen_modes(); in init_hapd() 111 hapd->iface->num_hw_features = 1; in init_hapd() 112 hapd->iface->current_mode = hapd->iface->hw_features; in init_hapd() 113 hapd->iconf = hapd->iface->conf; in init_hapd() 157 hostapd_free_hw_features(ctx.hapd.iface->hw_features, in LLVMFuzzerTestOneInput() 158 ctx.hapd.iface->num_hw_features); in LLVMFuzzerTestOneInput() [all …]
|