Home
last modified time | relevance | path

Searched refs:hapd (Results 1 – 25 of 98) sorted by relevance

1234

/external/wpa_supplicant_8/src/ap/
Dap_drv_ops.h20 int hostapd_build_ap_extra_ies(struct hostapd_data *hapd,
24 void hostapd_free_ap_extra_ies(struct hostapd_data *hapd, struct wpabuf *beacon,
27 int hostapd_reset_ap_wps_ie(struct hostapd_data *hapd);
28 int hostapd_set_ap_wps_ie(struct hostapd_data *hapd);
29 int hostapd_set_authorized(struct hostapd_data *hapd,
31 int hostapd_set_sta_flags(struct hostapd_data *hapd, struct sta_info *sta);
32 int hostapd_set_drv_ieee8021x(struct hostapd_data *hapd, const char *ifname,
34 int hostapd_vlan_if_add(struct hostapd_data *hapd, const char *ifname);
35 int hostapd_vlan_if_remove(struct hostapd_data *hapd, const char *ifname);
36 int hostapd_set_wds_sta(struct hostapd_data *hapd, char *ifname_wds,
[all …]
Dap_drv_ops.c67 int hostapd_build_ap_extra_ies(struct hostapd_data *hapd, in hostapd_build_ap_extra_ies() argument
78 pos = hostapd_eid_time_adv(hapd, pos); in hostapd_build_ap_extra_ies()
81 pos = hostapd_eid_time_zone(hapd, pos); in hostapd_build_ap_extra_ies()
86 pos = hostapd_eid_ext_capab(hapd, pos); in hostapd_build_ap_extra_ies()
89 pos = hostapd_eid_interworking(hapd, pos); in hostapd_build_ap_extra_ies()
90 pos = hostapd_eid_adv_proto(hapd, pos); in hostapd_build_ap_extra_ies()
91 pos = hostapd_eid_roaming_consortium(hapd, pos); in hostapd_build_ap_extra_ies()
97 if (add_buf(&beacon, hapd->iface->fst_ies) < 0 || in hostapd_build_ap_extra_ies()
98 add_buf(&proberesp, hapd->iface->fst_ies) < 0 || in hostapd_build_ap_extra_ies()
99 add_buf(&assocresp, hapd->iface->fst_ies) < 0) in hostapd_build_ap_extra_ies()
[all …]
Dbeacon.c37 static u8 * hostapd_eid_rm_enabled_capab(struct hostapd_data *hapd, u8 *eid, in hostapd_eid_rm_enabled_capab() argument
43 if (hapd->conf->radio_measurements[i]) in hostapd_eid_rm_enabled_capab()
52 os_memcpy(eid, hapd->conf->radio_measurements, RRM_CAPABILITIES_IE_LEN); in hostapd_eid_rm_enabled_capab()
58 static u8 * hostapd_eid_bss_load(struct hostapd_data *hapd, u8 *eid, size_t len) in hostapd_eid_bss_load() argument
64 if (hapd->conf->bss_load_test_set) { in hostapd_eid_bss_load()
67 os_memcpy(eid, hapd->conf->bss_load_test, 5); in hostapd_eid_bss_load()
72 if (hapd->conf->bss_load_update_period) { in hostapd_eid_bss_load()
75 WPA_PUT_LE16(eid, hapd->num_sta); in hostapd_eid_bss_load()
77 *eid++ = hapd->iface->channel_utilization; in hostapd_eid_bss_load()
85 static u8 ieee802_11_erp_info(struct hostapd_data *hapd) in ieee802_11_erp_info() argument
[all …]
Dsta_info.c42 static void ap_sta_remove_in_other_bss(struct hostapd_data *hapd,
51 static int ap_sta_remove(struct hostapd_data *hapd, struct sta_info *sta);
54 int ap_for_each_sta(struct hostapd_data *hapd, in ap_for_each_sta() argument
55 int (*cb)(struct hostapd_data *hapd, struct sta_info *sta, in ap_for_each_sta() argument
61 for (sta = hapd->sta_list; sta; sta = sta->next) { in ap_for_each_sta()
62 if (cb(hapd, sta, ctx)) in ap_for_each_sta()
70 struct sta_info * ap_get_sta(struct hostapd_data *hapd, const u8 *sta) in ap_get_sta() argument
74 s = hapd->sta_hash[STA_HASH(sta)]; in ap_get_sta()
82 struct sta_info * ap_get_sta_p2p(struct hostapd_data *hapd, const u8 *addr) in ap_get_sta_p2p() argument
86 for (sta = hapd->sta_list; sta; sta = sta->next) { in ap_get_sta_p2p()
[all …]
Dieee802_11_shared.c22 u8 * hostapd_eid_assoc_comeback_time(struct hostapd_data *hapd, in hostapd_eid_assoc_comeback_time() argument
35 if (hapd->conf->assoc_sa_query_max_timeout > tu) in hostapd_eid_assoc_comeback_time()
36 timeout = hapd->conf->assoc_sa_query_max_timeout - tu; in hostapd_eid_assoc_comeback_time()
39 if (timeout < hapd->conf->assoc_sa_query_max_timeout) in hostapd_eid_assoc_comeback_time()
49 void ieee802_11_send_sa_query_req(struct hostapd_data *hapd, in ieee802_11_send_sa_query_req() argument
64 os_memcpy(mgmt.sa, hapd->own_addr, ETH_ALEN); in ieee802_11_send_sa_query_req()
65 os_memcpy(mgmt.bssid, hapd->own_addr, ETH_ALEN); in ieee802_11_send_sa_query_req()
71 if (hostapd_drv_send_mlme(hapd, &mgmt, end - (u8 *) &mgmt, 0) < 0) in ieee802_11_send_sa_query_req()
76 static void ieee802_11_send_sa_query_resp(struct hostapd_data *hapd, in ieee802_11_send_sa_query_resp() argument
88 sta = ap_get_sta(hapd, sa); in ieee802_11_send_sa_query_resp()
[all …]
Dwps_hostapd.c33 static int hostapd_wps_upnp_init(struct hostapd_data *hapd,
35 static void hostapd_wps_upnp_deinit(struct hostapd_data *hapd);
61 struct hostapd_data *hapd = iface->bss[j]; in wps_for_each() local
64 if (hapd != data->calling_hapd && in wps_for_each()
65 (hapd->conf->wps_independent || in wps_for_each()
69 ret = data->func(hapd, data->ctx); in wps_for_each()
78 static int hostapd_wps_for_each(struct hostapd_data *hapd, in hostapd_wps_for_each() argument
82 struct hostapd_iface *iface = hapd->iface; in hostapd_wps_for_each()
86 data.calling_hapd = hapd; in hostapd_wps_for_each()
99 struct hostapd_data *hapd = ctx; in hostapd_wps_new_psk_cb() local
[all …]
Dhostapd.c54 static int hostapd_flush_old_stations(struct hostapd_data *hapd, u16 reason);
55 static int hostapd_setup_encryption(char *iface, struct hostapd_data *hapd);
56 static int hostapd_broadcast_wep_clear(struct hostapd_data *hapd);
78 static void hostapd_reload_bss(struct hostapd_data *hapd) in hostapd_reload_bss() argument
82 if (!hapd->started) in hostapd_reload_bss()
86 radius_client_reconfig(hapd->radius, hapd->conf->radius); in hostapd_reload_bss()
89 ssid = &hapd->conf->ssid; in hostapd_reload_bss()
96 hostapd_config_clear_wpa_psk(&hapd->conf->ssid.wpa_psk); in hostapd_reload_bss()
98 if (hostapd_setup_wpa_psk(hapd->conf)) { in hostapd_reload_bss()
103 if (hapd->conf->ieee802_1x || hapd->conf->wpa) in hostapd_reload_bss()
[all …]
Dwpa_auth_glue.c134 struct hostapd_data *hapd = ctx; in hostapd_wpa_auth_logger() local
150 hostapd_logger(hapd, addr, HOSTAPD_MODULE_WPA, hlevel, "%s", txt); in hostapd_wpa_auth_logger()
158 struct hostapd_data *hapd = ctx; in hostapd_wpa_auth_disconnect() local
162 ap_sta_disconnect(hapd, NULL, addr, reason); in hostapd_wpa_auth_disconnect()
168 struct hostapd_data *hapd = ctx; in hostapd_wpa_auth_mic_failure_report() local
169 return michael_mic_failure(hapd, addr, 0); in hostapd_wpa_auth_mic_failure_report()
175 struct hostapd_data *hapd = ctx; in hostapd_wpa_auth_psk_failure_report() local
176 wpa_msg(hapd->msg_ctx, MSG_INFO, AP_STA_POSSIBLE_PSK_MISMATCH MACSTR, in hostapd_wpa_auth_psk_failure_report()
184 struct hostapd_data *hapd = ctx; in hostapd_wpa_auth_set_eapol() local
185 struct sta_info *sta = ap_get_sta(hapd, addr); in hostapd_wpa_auth_set_eapol()
[all …]
Ddpp_hostapd.c23 static void hostapd_dpp_auth_success(struct hostapd_data *hapd, int initiator);
29 hostapd_dpp_configurator_get_id(struct hostapd_data *hapd, unsigned int id) in hostapd_dpp_configurator_get_id() argument
33 dl_list_for_each(conf, &hapd->dpp_configurator, in hostapd_dpp_configurator_get_id()
42 static unsigned int hapd_dpp_next_id(struct hostapd_data *hapd) in hapd_dpp_next_id() argument
47 dl_list_for_each(bi, &hapd->dpp_bootstrap, struct dpp_bootstrap_info, in hapd_dpp_next_id()
62 int hostapd_dpp_qr_code(struct hostapd_data *hapd, const char *cmd) in hostapd_dpp_qr_code() argument
65 struct dpp_authentication *auth = hapd->dpp_auth; in hostapd_dpp_qr_code()
71 bi->id = hapd_dpp_next_id(hapd); in hostapd_dpp_qr_code()
72 dl_list_add(&hapd->dpp_bootstrap, &bi->list); in hostapd_dpp_qr_code()
78 hostapd_drv_send_action(hapd, auth->curr_freq, 0, in hostapd_dpp_qr_code()
[all …]
Ddrv_callbacks.c44 void hostapd_notify_assoc_fils_finish(struct hostapd_data *hapd, in hostapd_notify_assoc_fils_finish() argument
54 eloop_cancel_timeout(fils_hlp_timeout, hapd, sta); in hostapd_notify_assoc_fils_finish()
70 reply_res = hostapd_sta_assoc(hapd, sta->addr, in hostapd_notify_assoc_fils_finish()
74 ap_sta_set_authorized(hapd, sta, 1); in hostapd_notify_assoc_fils_finish()
78 hostapd_set_sta_flags(hapd, sta); in hostapd_notify_assoc_fils_finish()
81 hostapd_new_assoc_sta(hapd, sta, !new_assoc); in hostapd_notify_assoc_fils_finish()
89 fils_hlp_deinit(hapd); in hostapd_notify_assoc_fils_finish()
97 hostapd_drv_sta_remove(hapd, sta->addr); in hostapd_notify_assoc_fils_finish()
104 int hostapd_notif_assoc(struct hostapd_data *hapd, const u8 *addr, in hostapd_notif_assoc() argument
134 hostapd_logger(hapd, addr, HOSTAPD_MODULE_IEEE80211, in hostapd_notif_assoc()
[all …]
Dieee802_11.h20 int ieee802_11_mgmt(struct hostapd_data *hapd, const u8 *buf, size_t len,
22 void ieee802_11_mgmt_cb(struct hostapd_data *hapd, const u8 *buf, size_t len,
24 void hostapd_2040_coex_action(struct hostapd_data *hapd,
27 int ieee802_11_get_mib(struct hostapd_data *hapd, char *buf, size_t buflen);
28 int ieee802_11_get_mib_sta(struct hostapd_data *hapd, struct sta_info *sta,
31 static inline int ieee802_11_get_mib(struct hostapd_data *hapd, char *buf, in ieee802_11_get_mib() argument
37 static inline int ieee802_11_get_mib_sta(struct hostapd_data *hapd, in ieee802_11_get_mib_sta() argument
44 u16 hostapd_own_capab_info(struct hostapd_data *hapd);
46 u8 * hostapd_eid_ext_capab(struct hostapd_data *hapd, u8 *eid);
47 u8 * hostapd_eid_qos_map_set(struct hostapd_data *hapd, u8 *eid);
[all …]
Dgas_serv.c47 gas_dialog_create(struct hostapd_data *hapd, const u8 *addr, u8 dialog_token) in gas_dialog_create() argument
53 sta = ap_get_sta(hapd, addr); in gas_dialog_create()
61 sta = ap_sta_add(hapd, addr); in gas_dialog_create()
73 ap_sta_session_timeout(hapd, sta, in gas_dialog_create()
74 hapd->conf->gas_comeback_delay / 1024 + in gas_dialog_create()
77 ap_sta_replenish_timeout(hapd, sta, 5); in gas_dialog_create()
99 wpa_msg(hapd->msg_ctx, MSG_ERROR, "ANQP: Could not create dialog for " in gas_dialog_create()
108 gas_serv_dialog_find(struct hostapd_data *hapd, const u8 *addr, in gas_serv_dialog_find() argument
114 sta = ap_get_sta(hapd, addr); in gas_serv_dialog_find()
124 ap_sta_replenish_timeout(hapd, sta, 5); in gas_serv_dialog_find()
[all …]
Dauthsrv.c29 static int hostapd_sim_db_cb_sta(struct hostapd_data *hapd, in hostapd_sim_db_cb_sta() argument
40 struct hostapd_data *hapd = ctx; in hostapd_sim_db_cb() local
41 if (ap_for_each_sta(hapd, hostapd_sim_db_cb_sta, session_ctx) == 0) { in hostapd_sim_db_cb()
43 radius_server_eap_pending_cb(hapd->radius_srv, session_ctx); in hostapd_sim_db_cb()
96 static int hostapd_setup_radius_srv(struct hostapd_data *hapd) in hostapd_setup_radius_srv() argument
99 struct hostapd_bss_config *conf = hapd->conf; in hostapd_setup_radius_srv()
104 srv.conf_ctx = hapd; in hostapd_setup_radius_srv()
105 srv.eap_sim_db_priv = hapd->eap_sim_db_priv; in hostapd_setup_radius_srv()
106 srv.ssl_ctx = hapd->ssl_ctx; in hostapd_setup_radius_srv()
107 srv.msg_ctx = hapd->msg_ctx; in hostapd_setup_radius_srv()
[all …]
Dieee802_11.c57 prepare_auth_resp_fils(struct hostapd_data *hapd,
65 u8 * hostapd_eid_supp_rates(struct hostapd_data *hapd, u8 *eid) in hostapd_eid_supp_rates() argument
70 if (hapd->iface->current_rates == NULL) in hostapd_eid_supp_rates()
74 num = hapd->iface->num_rates; in hostapd_eid_supp_rates()
75 if (hapd->iconf->ieee80211n && hapd->iconf->require_ht) in hostapd_eid_supp_rates()
77 if (hapd->iconf->ieee80211ac && hapd->iconf->require_vht) in hostapd_eid_supp_rates()
86 for (i = 0, count = 0; i < hapd->iface->num_rates && count < num; in hostapd_eid_supp_rates()
89 *pos = hapd->iface->current_rates[i].rate / 5; in hostapd_eid_supp_rates()
90 if (hapd->iface->current_rates[i].flags & HOSTAPD_RATE_BASIC) in hostapd_eid_supp_rates()
95 if (hapd->iconf->ieee80211n && hapd->iconf->require_ht && count < 8) { in hostapd_eid_supp_rates()
[all …]
Dwps_hostapd.h14 int hostapd_init_wps(struct hostapd_data *hapd,
16 int hostapd_init_wps_complete(struct hostapd_data *hapd);
17 void hostapd_deinit_wps(struct hostapd_data *hapd);
18 void hostapd_update_wps(struct hostapd_data *hapd);
19 void hostapd_wps_eap_completed(struct hostapd_data *hapd);
20 int hostapd_wps_add_pin(struct hostapd_data *hapd, const u8 *addr,
22 int hostapd_wps_button_pushed(struct hostapd_data *hapd,
24 int hostapd_wps_cancel(struct hostapd_data *hapd);
25 int hostapd_wps_get_mib_sta(struct hostapd_data *hapd, const u8 *addr,
27 void hostapd_wps_ap_pin_disable(struct hostapd_data *hapd);
[all …]
Dtkip_countermeasures.c26 struct hostapd_data *hapd = eloop_ctx; in ieee80211_tkip_countermeasures_stop() local
27 hapd->tkip_countermeasures = 0; in ieee80211_tkip_countermeasures_stop()
28 hostapd_drv_set_countermeasures(hapd, 0); in ieee80211_tkip_countermeasures_stop()
29 hostapd_logger(hapd, NULL, HOSTAPD_MODULE_IEEE80211, in ieee80211_tkip_countermeasures_stop()
34 static void ieee80211_tkip_countermeasures_start(struct hostapd_data *hapd) in ieee80211_tkip_countermeasures_start() argument
38 hostapd_logger(hapd, NULL, HOSTAPD_MODULE_IEEE80211, in ieee80211_tkip_countermeasures_start()
41 wpa_auth_countermeasures_start(hapd->wpa_auth); in ieee80211_tkip_countermeasures_start()
42 hapd->tkip_countermeasures = 1; in ieee80211_tkip_countermeasures_start()
43 hostapd_drv_set_countermeasures(hapd, 1); in ieee80211_tkip_countermeasures_start()
44 wpa_gtk_rekey(hapd->wpa_auth); in ieee80211_tkip_countermeasures_start()
[all …]
Dvlan_init.c22 static int vlan_if_add(struct hostapd_data *hapd, struct hostapd_vlan *vlan, in vlan_if_add() argument
28 if (!hapd->conf->ssid.wep.key[i]) in vlan_if_add()
37 ret = hostapd_vlan_if_add(hapd, vlan->ifname); in vlan_if_add()
48 if (hapd->wpa_auth) in vlan_if_add()
49 ret = wpa_auth_ensure_group(hapd->wpa_auth, vlan->vlan_id); in vlan_if_add()
56 if (wpa_auth_release_group(hapd->wpa_auth, vlan->vlan_id)) in vlan_if_add()
60 if (hostapd_vlan_if_remove(hapd, vlan->ifname)) in vlan_if_add()
67 int vlan_if_remove(struct hostapd_data *hapd, struct hostapd_vlan *vlan) in vlan_if_remove() argument
71 ret = wpa_auth_release_group(hapd->wpa_auth, vlan->vlan_id); in vlan_if_remove()
77 return hostapd_vlan_if_remove(hapd, vlan->ifname); in vlan_if_remove()
[all …]
Dieee802_1x.c42 static void ieee802_1x_finished(struct hostapd_data *hapd,
47 static void ieee802_1x_send(struct hostapd_data *hapd, struct sta_info *sta, in ieee802_1x_send() argument
65 xhdr->version = hapd->conf->eapol_version; in ieee802_1x_send()
75 if (hapd->ext_eapol_frame_io) { in ieee802_1x_send()
81 wpa_msg(hapd->msg_ctx, MSG_INFO, in ieee802_1x_send()
89 rsn_preauth_send(hapd, sta, buf, len); in ieee802_1x_send()
92 hapd, sta->addr, buf, len, in ieee802_1x_send()
100 void ieee802_1x_set_sta_authorized(struct hostapd_data *hapd, in ieee802_1x_set_sta_authorized() argument
109 ap_sta_set_authorized(hapd, sta, 1); in ieee802_1x_set_sta_authorized()
110 res = hostapd_set_authorized(hapd, sta, 1); in ieee802_1x_set_sta_authorized()
[all …]
Drrm.c27 struct hostapd_data *hapd = eloop_data; in hostapd_lci_rep_timeout_handler() local
30 hapd->lci_req_token); in hostapd_lci_rep_timeout_handler()
31 hapd->lci_req_active = 0; in hostapd_lci_rep_timeout_handler()
35 static void hostapd_handle_lci_report(struct hostapd_data *hapd, u8 token, in hostapd_handle_lci_report() argument
38 if (!hapd->lci_req_active || hapd->lci_req_token != token) { in hostapd_handle_lci_report()
43 hapd->lci_req_active = 0; in hostapd_handle_lci_report()
44 eloop_cancel_timeout(hostapd_lci_rep_timeout_handler, hapd, NULL); in hostapd_handle_lci_report()
51 struct hostapd_data *hapd = eloop_data; in hostapd_range_rep_timeout_handler() local
54 hapd->range_req_token); in hostapd_range_rep_timeout_handler()
55 hapd->range_req_active = 0; in hostapd_range_rep_timeout_handler()
[all …]
Daccounting.c30 static void accounting_sta_interim(struct hostapd_data *hapd,
34 static struct radius_msg * accounting_msg(struct hostapd_data *hapd, in accounting_msg() argument
47 radius_client_get_id(hapd->radius)); in accounting_msg()
61 hapd->conf->radius_acct_req_attr, in accounting_msg()
64 hapd->conf->ieee802_1x ? in accounting_msg()
96 if (add_common_radius_attr(hapd, hapd->conf->radius_acct_req_attr, sta, in accounting_msg()
167 static int accounting_sta_update_stats(struct hostapd_data *hapd, in accounting_sta_update_stats() argument
171 if (hostapd_drv_read_sta_data(hapd, data, sta->addr)) in accounting_sta_update_stats()
185 hostapd_logger(hapd, sta->addr, HOSTAPD_MODULE_RADIUS, in accounting_sta_update_stats()
200 struct hostapd_data *hapd = eloop_ctx; in accounting_interim_update() local
[all …]
Dpreauth_auth.c34 struct hostapd_data *hapd; member
45 struct hostapd_data *hapd = piface->hapd; in rsn_preauth_receive() local
61 if (os_memcmp(ethhdr->h_dest, hapd->own_addr, ETH_ALEN) != 0) { in rsn_preauth_receive()
67 sta = ap_get_sta(hapd, ethhdr->h_source); in rsn_preauth_receive()
74 sta = ap_sta_add(hapd, ethhdr->h_source); in rsn_preauth_receive()
79 ieee802_1x_new_station(hapd, sta); in rsn_preauth_receive()
81 ap_free_sta(hapd, sta); in rsn_preauth_receive()
92 ieee802_1x_receive(hapd, ethhdr->h_source, (u8 *) (ethhdr + 1), in rsn_preauth_receive()
97 static int rsn_preauth_iface_add(struct hostapd_data *hapd, const char *ifname) in rsn_preauth_iface_add() argument
106 piface->hapd = hapd; in rsn_preauth_iface_add()
[all …]
Dp2p_hostapd.c23 int hostapd_p2p_get_mib_sta(struct hostapd_data *hapd, struct sta_info *sta, in hostapd_p2p_get_mib_sta() argument
33 int hostapd_p2p_set_noa(struct hostapd_data *hapd, u8 count, int start, in hostapd_p2p_set_noa() argument
40 hapd->noa_enabled = 0; in hostapd_p2p_set_noa()
41 hapd->noa_start = 0; in hostapd_p2p_set_noa()
42 hapd->noa_duration = 0; in hostapd_p2p_set_noa()
48 return hostapd_driver_set_noa(hapd, count, start, duration); in hostapd_p2p_set_noa()
51 hapd->noa_enabled = 1; in hostapd_p2p_set_noa()
52 hapd->noa_start = start; in hostapd_p2p_set_noa()
53 hapd->noa_duration = duration; in hostapd_p2p_set_noa()
55 if (hapd->num_sta_no_p2p == 0) { in hostapd_p2p_set_noa()
[all …]
Dieee802_11_ht.c24 u8 * hostapd_eid_ht_capabilities(struct hostapd_data *hapd, u8 *eid) in hostapd_eid_ht_capabilities() argument
29 if (!hapd->iconf->ieee80211n || !hapd->iface->current_mode || in hostapd_eid_ht_capabilities()
30 hapd->conf->disable_11n) in hostapd_eid_ht_capabilities()
38 cap->ht_capabilities_info = host_to_le16(hapd->iconf->ht_capab); 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()
49 if (hapd->iconf->obss_interval) { in hostapd_eid_ht_capabilities()
58 host_to_le16(hapd->iconf->obss_interval); in hostapd_eid_ht_capabilities()
82 u8 * hostapd_eid_ht_operation(struct hostapd_data *hapd, u8 *eid) in hostapd_eid_ht_operation() argument
87 if (!hapd->iconf->ieee80211n || hapd->conf->disable_11n) in hostapd_eid_ht_operation()
[all …]
Dbss_load.c21 struct hostapd_data *hapd = eloop_data; in update_channel_utilization() local
25 if (!(hapd->beacon_set_done && hapd->started)) in update_channel_utilization()
28 err = hostapd_drv_get_survey(hapd, hapd->iface->freq); in update_channel_utilization()
34 ieee802_11_set_beacon(hapd); in update_channel_utilization()
36 sec = ((hapd->bss_load_update_timeout / 1000) * 1024) / 1000; in update_channel_utilization()
37 usec = (hapd->bss_load_update_timeout % 1000) * 1024; in update_channel_utilization()
38 eloop_register_timeout(sec, usec, update_channel_utilization, hapd, in update_channel_utilization()
43 int bss_load_update_init(struct hostapd_data *hapd) in bss_load_update_init() argument
45 struct hostapd_bss_config *conf = hapd->conf; in bss_load_update_init()
46 struct hostapd_config *iconf = hapd->iconf; in bss_load_update_init()
[all …]
/external/wpa_supplicant_8/hostapd/
Dctrl_iface.c73 static void hostapd_ctrl_iface_send(struct hostapd_data *hapd, int level,
78 static int hostapd_ctrl_iface_attach(struct hostapd_data *hapd, in hostapd_ctrl_iface_attach() argument
82 return ctrl_iface_attach(&hapd->ctrl_dst, from, fromlen); in hostapd_ctrl_iface_attach()
86 static int hostapd_ctrl_iface_detach(struct hostapd_data *hapd, in hostapd_ctrl_iface_detach() argument
90 return ctrl_iface_detach(&hapd->ctrl_dst, from, fromlen); in hostapd_ctrl_iface_detach()
94 static int hostapd_ctrl_iface_level(struct hostapd_data *hapd, in hostapd_ctrl_iface_level() argument
99 return ctrl_iface_level(&hapd->ctrl_dst, from, fromlen, level); in hostapd_ctrl_iface_level()
103 static int hostapd_ctrl_iface_new_sta(struct hostapd_data *hapd, in hostapd_ctrl_iface_new_sta() argument
114 sta = ap_get_sta(hapd, addr); in hostapd_ctrl_iface_new_sta()
120 sta = ap_sta_add(hapd, addr); in hostapd_ctrl_iface_new_sta()
[all …]

1234