/external/wpa_supplicant_8/src/ap/ |
D | ap_drv_ops.h | 20 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_set_ap_wps_ie(struct hostapd_data *hapd); 28 int hostapd_set_authorized(struct hostapd_data *hapd, 30 int hostapd_set_sta_flags(struct hostapd_data *hapd, struct sta_info *sta); 31 int hostapd_set_drv_ieee8021x(struct hostapd_data *hapd, const char *ifname, 33 int hostapd_vlan_if_add(struct hostapd_data *hapd, const char *ifname); 34 int hostapd_vlan_if_remove(struct hostapd_data *hapd, const char *ifname); 35 int hostapd_set_wds_sta(struct hostapd_data *hapd, char *ifname_wds, 37 int hostapd_sta_add(struct hostapd_data *hapd, [all …]
|
D | ap_drv_ops.c | 39 int hostapd_build_ap_extra_ies(struct hostapd_data *hapd, in hostapd_build_ap_extra_ies() argument 50 pos = hostapd_eid_time_adv(hapd, pos); in hostapd_build_ap_extra_ies() 56 pos = hostapd_eid_time_zone(hapd, pos); in hostapd_build_ap_extra_ies() 64 pos = hostapd_eid_ext_capab(hapd, pos); in hostapd_build_ap_extra_ies() 70 pos = hostapd_eid_interworking(hapd, pos); in hostapd_build_ap_extra_ies() 71 pos = hostapd_eid_adv_proto(hapd, pos); in hostapd_build_ap_extra_ies() 72 pos = hostapd_eid_roaming_consortium(hapd, pos); in hostapd_build_ap_extra_ies() 83 if (hapd->wps_beacon_ie) { in hostapd_build_ap_extra_ies() 84 if (wpabuf_resize(&beacon, wpabuf_len(hapd->wps_beacon_ie)) < in hostapd_build_ap_extra_ies() 87 wpabuf_put_buf(beacon, hapd->wps_beacon_ie); in hostapd_build_ap_extra_ies() [all …]
|
D | beacon.c | 35 static u8 * hostapd_eid_bss_load(struct hostapd_data *hapd, u8 *eid, size_t len) in hostapd_eid_bss_load() argument 38 if (hapd->conf->bss_load_test_set) { in hostapd_eid_bss_load() 43 os_memcpy(eid, hapd->conf->bss_load_test, 5); in hostapd_eid_bss_load() 51 static u8 ieee802_11_erp_info(struct hostapd_data *hapd) in ieee802_11_erp_info() argument 55 if (hapd->iface->current_mode == NULL || in ieee802_11_erp_info() 56 hapd->iface->current_mode->mode != HOSTAPD_MODE_IEEE80211G) in ieee802_11_erp_info() 59 if (hapd->iface->olbc) in ieee802_11_erp_info() 61 if (hapd->iface->num_sta_non_erp > 0) { in ieee802_11_erp_info() 65 if (hapd->iface->num_sta_no_short_preamble > 0 || in ieee802_11_erp_info() 66 hapd->iconf->preamble == LONG_PREAMBLE) in ieee802_11_erp_info() [all …]
|
D | sta_info.c | 36 static void ap_sta_remove_in_other_bss(struct hostapd_data *hapd, 45 static int ap_sta_remove(struct hostapd_data *hapd, struct sta_info *sta); 47 int ap_for_each_sta(struct hostapd_data *hapd, in ap_for_each_sta() argument 48 int (*cb)(struct hostapd_data *hapd, struct sta_info *sta, in ap_for_each_sta() argument 54 for (sta = hapd->sta_list; sta; sta = sta->next) { in ap_for_each_sta() 55 if (cb(hapd, sta, ctx)) in ap_for_each_sta() 63 struct sta_info * ap_get_sta(struct hostapd_data *hapd, const u8 *sta) in ap_get_sta() argument 67 s = hapd->sta_hash[STA_HASH(sta)]; in ap_get_sta() 75 struct sta_info * ap_get_sta_p2p(struct hostapd_data *hapd, const u8 *addr) in ap_get_sta_p2p() argument 79 for (sta = hapd->sta_list; sta; sta = sta->next) { in ap_get_sta_p2p() [all …]
|
D | wps_hostapd.c | 33 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 …]
|
D | hostapd.c | 40 static int hostapd_flush_old_stations(struct hostapd_data *hapd, u16 reason); 41 static int hostapd_setup_encryption(char *iface, struct hostapd_data *hapd); 42 static int hostapd_broadcast_wep_clear(struct hostapd_data *hapd); 64 static void hostapd_reload_bss(struct hostapd_data *hapd) in hostapd_reload_bss() argument 69 radius_client_reconfig(hapd->radius, hapd->conf->radius); in hostapd_reload_bss() 72 ssid = &hapd->conf->ssid; in hostapd_reload_bss() 82 if (hostapd_setup_wpa_psk(hapd->conf)) { in hostapd_reload_bss() 87 if (hapd->conf->ieee802_1x || hapd->conf->wpa) in hostapd_reload_bss() 88 hostapd_set_drv_ieee8021x(hapd, hapd->conf->iface, 1); in hostapd_reload_bss() 90 hostapd_set_drv_ieee8021x(hapd, hapd->conf->iface, 0); in hostapd_reload_bss() [all …]
|
D | ieee802_11_shared.c | 22 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 …]
|
D | wps_hostapd.h | 14 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 …]
|
D | ieee802_11.c | 44 u8 * hostapd_eid_supp_rates(struct hostapd_data *hapd, u8 *eid) in hostapd_eid_supp_rates() argument 49 if (hapd->iface->current_rates == NULL) in hostapd_eid_supp_rates() 53 num = hapd->iface->num_rates; in hostapd_eid_supp_rates() 54 if (hapd->iconf->ieee80211n && hapd->iconf->require_ht) in hostapd_eid_supp_rates() 56 if (hapd->iconf->ieee80211ac && hapd->iconf->require_vht) in hostapd_eid_supp_rates() 65 for (i = 0, count = 0; i < hapd->iface->num_rates && count < num; in hostapd_eid_supp_rates() 68 *pos = hapd->iface->current_rates[i].rate / 5; in hostapd_eid_supp_rates() 69 if (hapd->iface->current_rates[i].flags & HOSTAPD_RATE_BASIC) in hostapd_eid_supp_rates() 74 if (hapd->iconf->ieee80211n && hapd->iconf->require_ht && count < 8) { in hostapd_eid_supp_rates() 79 if (hapd->iconf->ieee80211ac && hapd->iconf->require_vht && count < 8) { in hostapd_eid_supp_rates() [all …]
|
D | authsrv.c | 29 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() 91 static int hostapd_setup_radius_srv(struct hostapd_data *hapd) in hostapd_setup_radius_srv() argument 94 struct hostapd_bss_config *conf = hapd->conf; in hostapd_setup_radius_srv() 99 srv.conf_ctx = hapd; in hostapd_setup_radius_srv() 100 srv.eap_sim_db_priv = hapd->eap_sim_db_priv; in hostapd_setup_radius_srv() 101 srv.ssl_ctx = hapd->ssl_ctx; in hostapd_setup_radius_srv() 102 srv.msg_ctx = hapd->msg_ctx; in hostapd_setup_radius_srv() [all …]
|
D | tkip_countermeasures.c | 26 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 …]
|
D | drv_callbacks.c | 37 int hostapd_notif_assoc(struct hostapd_data *hapd, const u8 *addr, in hostapd_notif_assoc() argument 67 hostapd_logger(hapd, addr, HOSTAPD_MODULE_IEEE80211, in hostapd_notif_assoc() 96 sta = ap_get_sta(hapd, addr); in hostapd_notif_assoc() 98 ap_sta_no_session_timeout(hapd, sta); in hostapd_notif_assoc() 99 accounting_sta_stop(hapd, sta); in hostapd_notif_assoc() 107 sta = ap_sta_add(hapd, addr); in hostapd_notif_assoc() 109 hostapd_drv_sta_disassoc(hapd, addr, in hostapd_notif_assoc() 131 (hapd->iface->conf->ht_capab & in hostapd_notif_assoc() 139 ht40_intolerant_add(hapd->iface, sta); in hostapd_notif_assoc() 160 if (hapd->conf->wpa) { in hostapd_notif_assoc() [all …]
|
D | gas_serv.c | 30 gas_dialog_create(struct hostapd_data *hapd, const u8 *addr, u8 dialog_token) in gas_dialog_create() argument 36 sta = ap_get_sta(hapd, addr); in gas_dialog_create() 44 sta = ap_sta_add(hapd, addr); in gas_dialog_create() 55 ap_sta_session_timeout(hapd, sta, 5); in gas_dialog_create() 57 ap_sta_replenish_timeout(hapd, sta, 5); in gas_dialog_create() 79 wpa_msg(hapd->msg_ctx, MSG_ERROR, "ANQP: Could not create dialog for " in gas_dialog_create() 88 gas_serv_dialog_find(struct hostapd_data *hapd, const u8 *addr, in gas_serv_dialog_find() argument 94 sta = ap_get_sta(hapd, addr); in gas_serv_dialog_find() 119 static void gas_serv_free_dialogs(struct hostapd_data *hapd, in gas_serv_free_dialogs() argument 125 sta = ap_get_sta(hapd, sta_addr); in gas_serv_free_dialogs() [all …]
|
D | wpa_auth_glue.c | 108 struct hostapd_data *hapd = ctx; in hostapd_wpa_auth_logger() local 124 hostapd_logger(hapd, addr, HOSTAPD_MODULE_WPA, hlevel, "%s", txt); in hostapd_wpa_auth_logger() 132 struct hostapd_data *hapd = ctx; in hostapd_wpa_auth_disconnect() local 136 ap_sta_disconnect(hapd, NULL, addr, reason); in hostapd_wpa_auth_disconnect() 142 struct hostapd_data *hapd = ctx; in hostapd_wpa_auth_mic_failure_report() local 143 return michael_mic_failure(hapd, addr, 0); in hostapd_wpa_auth_mic_failure_report() 150 struct hostapd_data *hapd = ctx; in hostapd_wpa_auth_set_eapol() local 151 struct sta_info *sta = ap_get_sta(hapd, addr); in hostapd_wpa_auth_set_eapol() 162 ieee802_1x_set_sta_authorized(hapd, sta, value); in hostapd_wpa_auth_set_eapol() 192 struct hostapd_data *hapd = ctx; in hostapd_wpa_auth_get_eapol() local [all …]
|
D | ieee802_11.h | 19 int ieee802_11_mgmt(struct hostapd_data *hapd, const u8 *buf, size_t len, 21 void ieee802_11_mgmt_cb(struct hostapd_data *hapd, const u8 *buf, size_t len, 23 void hostapd_2040_coex_action(struct hostapd_data *hapd, 26 int ieee802_11_get_mib(struct hostapd_data *hapd, char *buf, size_t buflen); 27 int ieee802_11_get_mib_sta(struct hostapd_data *hapd, struct sta_info *sta, 30 static inline int ieee802_11_get_mib(struct hostapd_data *hapd, char *buf, in ieee802_11_get_mib() argument 36 static inline int ieee802_11_get_mib_sta(struct hostapd_data *hapd, in ieee802_11_get_mib_sta() argument 43 u16 hostapd_own_capab_info(struct hostapd_data *hapd, struct sta_info *sta, 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 …]
|
D | p2p_hostapd.c | 23 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 …]
|
D | accounting.c | 28 static void accounting_sta_interim(struct hostapd_data *hapd, 32 static struct radius_msg * accounting_msg(struct hostapd_data *hapd, in accounting_msg() argument 44 radius_client_get_id(hapd->radius)); in accounting_msg() 61 radius_msg_make_authenticator(msg, (u8 *) hapd, sizeof(*hapd)); in accounting_msg() 70 if (!hostapd_config_get_radius_attr(hapd->conf->radius_acct_req_attr, in accounting_msg() 73 hapd->conf->ieee802_1x ? in accounting_msg() 106 if (add_common_radius_attr(hapd, hapd->conf->radius_acct_req_attr, sta, in accounting_msg() 151 static int accounting_sta_update_stats(struct hostapd_data *hapd, in accounting_sta_update_stats() argument 155 if (hostapd_drv_read_sta_data(hapd, data, sta->addr)) in accounting_sta_update_stats() 165 hostapd_logger(hapd, sta->addr, HOSTAPD_MODULE_RADIUS, in accounting_sta_update_stats() [all …]
|
D | ieee802_1x.c | 37 static void ieee802_1x_finished(struct hostapd_data *hapd, 42 static void ieee802_1x_send(struct hostapd_data *hapd, struct sta_info *sta, in ieee802_1x_send() argument 60 xhdr->version = hapd->conf->eapol_version; in ieee802_1x_send() 70 rsn_preauth_send(hapd, sta, buf, len); in ieee802_1x_send() 73 hapd, sta->addr, buf, len, in ieee802_1x_send() 81 void ieee802_1x_set_sta_authorized(struct hostapd_data *hapd, in ieee802_1x_set_sta_authorized() argument 90 ap_sta_set_authorized(hapd, sta, 1); in ieee802_1x_set_sta_authorized() 91 res = hostapd_set_authorized(hapd, sta, 1); in ieee802_1x_set_sta_authorized() 92 hostapd_logger(hapd, sta->addr, HOSTAPD_MODULE_IEEE8021X, in ieee802_1x_set_sta_authorized() 95 ap_sta_set_authorized(hapd, sta, 0); in ieee802_1x_set_sta_authorized() [all …]
|
D | preauth_auth.c | 34 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 …]
|
D | ap_mlme.c | 53 void mlme_authenticate_indication(struct hostapd_data *hapd, in mlme_authenticate_indication() argument 56 hostapd_logger(hapd, sta->addr, HOSTAPD_MODULE_MLME, in mlme_authenticate_indication() 61 mlme_deletekeys_request(hapd, sta); in mlme_authenticate_indication() 77 void mlme_deauthenticate_indication(struct hostapd_data *hapd, in mlme_deauthenticate_indication() argument 80 hostapd_logger(hapd, sta->addr, HOSTAPD_MODULE_MLME, in mlme_deauthenticate_indication() 84 if (!hapd->iface->driver_ap_teardown) in mlme_deauthenticate_indication() 85 mlme_deletekeys_request(hapd, sta); in mlme_deauthenticate_indication() 101 void mlme_associate_indication(struct hostapd_data *hapd, struct sta_info *sta) in mlme_associate_indication() argument 103 hostapd_logger(hapd, sta->addr, HOSTAPD_MODULE_MLME, in mlme_associate_indication() 108 mlme_deletekeys_request(hapd, sta); in mlme_associate_indication() [all …]
|
D | ieee802_11_ht.c | 24 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 …]
|
D | ieee802_11_auth.c | 100 static int hostapd_acl_cache_get(struct hostapd_data *hapd, const u8 *addr, in hostapd_acl_cache_get() argument 111 for (entry = hapd->acl_cache; entry; entry = entry->next) { in hostapd_acl_cache_get() 157 static int hostapd_radius_acl_query(struct hostapd_data *hapd, const u8 *addr, in hostapd_radius_acl_query() argument 163 query->radius_id = radius_client_get_id(hapd->radius); in hostapd_radius_acl_query() 179 hapd->conf->radius->auth_server->shared_secret, in hostapd_radius_acl_query() 180 hapd->conf->radius->auth_server->shared_secret_len)) { in hostapd_radius_acl_query() 185 if (add_common_radius_attr(hapd, hapd->conf->radius_auth_req_attr, in hostapd_radius_acl_query() 204 if (radius_client_send(hapd->radius, msg, RADIUS_AUTH, addr) < 0) in hostapd_radius_acl_query() 232 int hostapd_allowed_address(struct hostapd_data *hapd, const u8 *addr, in hostapd_allowed_address() argument 251 if (hostapd_maclist_found(hapd->conf->accept_mac, in hostapd_allowed_address() [all …]
|
D | utils.c | 17 int hostapd_register_probereq_cb(struct hostapd_data *hapd, in hostapd_register_probereq_cb() argument 26 n = os_realloc_array(hapd->probereq_cb, hapd->num_probereq_cb + 1, in hostapd_register_probereq_cb() 31 hapd->probereq_cb = n; in hostapd_register_probereq_cb() 32 n = &hapd->probereq_cb[hapd->num_probereq_cb]; in hostapd_register_probereq_cb() 33 hapd->num_probereq_cb++; in hostapd_register_probereq_cb() 43 struct hostapd_data *hapd; member 56 if (ohapd == data->hapd) in prune_associations() 76 void hostapd_prune_associations(struct hostapd_data *hapd, const u8 *addr) in hostapd_prune_associations() argument 79 data.hapd = hapd; in hostapd_prune_associations() 81 if (hapd->iface->interfaces && in hostapd_prune_associations() [all …]
|
D | ctrl_iface_ap.c | 25 static int hostapd_get_sta_tx_rx(struct hostapd_data *hapd, in hostapd_get_sta_tx_rx() argument 32 if (hostapd_drv_read_sta_data(hapd, &data, sta->addr) < 0) in hostapd_get_sta_tx_rx() 83 static int hostapd_ctrl_iface_sta_mib(struct hostapd_data *hapd, in hostapd_ctrl_iface_sta_mib() argument 126 res = ieee802_11_get_mib_sta(hapd, sta, buf + len, buflen - len); in hostapd_ctrl_iface_sta_mib() 132 res = ieee802_1x_get_mib_sta(hapd, sta, buf + len, buflen - len); in hostapd_ctrl_iface_sta_mib() 135 res = hostapd_wps_get_mib_sta(hapd, sta->addr, buf + len, in hostapd_ctrl_iface_sta_mib() 139 res = hostapd_p2p_get_mib_sta(hapd, sta, buf + len, buflen - len); in hostapd_ctrl_iface_sta_mib() 143 len += hostapd_get_sta_tx_rx(hapd, sta, buf + len, buflen - len); in hostapd_ctrl_iface_sta_mib() 150 int hostapd_ctrl_iface_sta_first(struct hostapd_data *hapd, in hostapd_ctrl_iface_sta_first() argument 153 return hostapd_ctrl_iface_sta_mib(hapd, hapd->sta_list, buf, buflen); in hostapd_ctrl_iface_sta_first() [all …]
|
/external/wpa_supplicant_8/hostapd/ |
D | ctrl_iface.c | 51 static void hostapd_ctrl_iface_send(struct hostapd_data *hapd, int level, 55 static int hostapd_ctrl_iface_attach(struct hostapd_data *hapd, in hostapd_ctrl_iface_attach() argument 67 dst->next = hapd->ctrl_dst; in hostapd_ctrl_iface_attach() 68 hapd->ctrl_dst = dst; in hostapd_ctrl_iface_attach() 76 static int hostapd_ctrl_iface_detach(struct hostapd_data *hapd, in hostapd_ctrl_iface_detach() argument 82 dst = hapd->ctrl_dst; in hostapd_ctrl_iface_detach() 93 hapd->ctrl_dst = dst->next; in hostapd_ctrl_iface_detach() 106 static int hostapd_ctrl_iface_level(struct hostapd_data *hapd, in hostapd_ctrl_iface_level() argument 115 dst = hapd->ctrl_dst; in hostapd_ctrl_iface_level() 134 static int hostapd_ctrl_iface_new_sta(struct hostapd_data *hapd, in hostapd_ctrl_iface_new_sta() argument [all …]
|