/external/wpa_supplicant_8/wpa_supplicant/src/ap/ |
H A 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, 125 hostapd_drv_set_countermeasures(struct hostapd_data *hapd, int enabled) argument 134 hostapd_drv_set_sta_vlan(const char *ifname, struct hostapd_data *hapd, const u8 *addr, int vlan_id) argument 144 hostapd_drv_get_inact_sec(struct hostapd_data *hapd, const u8 *addr) argument 152 hostapd_drv_sta_remove(struct hostapd_data *hapd, const u8 *addr) argument 160 hostapd_drv_hapd_send_eapol(struct hostapd_data *hapd, const u8 *addr, const u8 *data, size_t data_len, int encrypt, u32 flags) argument 172 hostapd_drv_read_sta_data( struct hostapd_data *hapd, struct hostap_sta_driver_data *data, const u8 *addr) argument 181 hostapd_drv_sta_clear_stats(struct hostapd_data *hapd, const u8 *addr) argument 189 hostapd_drv_set_acl(struct hostapd_data *hapd, struct hostapd_acl_params *params) argument 197 hostapd_drv_set_ap(struct hostapd_data *hapd, struct wpa_driver_ap_params *params) argument 205 hostapd_drv_set_radius_acl_auth(struct hostapd_data *hapd, const u8 *mac, int accepted, u32 session_timeout) argument 215 hostapd_drv_set_radius_acl_expire(struct hostapd_data *hapd, const u8 *mac) argument 224 hostapd_drv_set_authmode(struct hostapd_data *hapd, int auth_algs) argument 232 hostapd_drv_poll_client(struct hostapd_data *hapd, const u8 *own_addr, const u8 *addr, int qos) argument 241 hostapd_drv_get_survey(struct hostapd_data *hapd, unsigned int freq) argument 251 hostapd_get_country(struct hostapd_data *hapd, char *alpha2) argument 258 hostapd_drv_get_radio_name(struct hostapd_data *hapd) argument 266 hostapd_drv_switch_channel(struct hostapd_data *hapd, struct csa_settings *settings) argument 275 hostapd_drv_status(struct hostapd_data *hapd, char *buf, size_t buflen) argument 283 hostapd_drv_vendor_cmd(struct hostapd_data *hapd, int vendor_id, int subcmd, const u8 *data, size_t data_len, struct wpabuf *buf) argument [all...] |
H A D | ieee802_11_auth.c | 100 static int hostapd_acl_cache_get(struct hostapd_data *hapd, const u8 *addr, argument 111 for (entry = hapd->acl_cache; entry; entry = entry->next) { 157 static int hostapd_radius_acl_query(struct hostapd_data *hapd, const u8 *addr, argument 163 query->radius_id = radius_client_get_id(hapd->radius); 179 hapd->conf->radius->auth_server->shared_secret, 180 hapd->conf->radius->auth_server->shared_secret_len)) { 185 if (add_common_radius_attr(hapd, hapd->conf->radius_auth_req_attr, 204 if (radius_client_send(hapd->radius, msg, RADIUS_AUTH, addr) < 0) 217 * @hapd 232 hostapd_allowed_address(struct hostapd_data *hapd, const u8 *addr, const u8 *msg, size_t len, u32 *session_timeout, u32 *acct_interim_interval, int *vlan_id, struct hostapd_sta_wpa_psk_short **psk, char **identity, char **radius_cui) argument 340 hostapd_acl_expire_cache(struct hostapd_data *hapd, struct os_reltime *now) argument 370 hostapd_acl_expire_queries(struct hostapd_data *hapd, struct os_reltime *now) argument 407 struct hostapd_data *hapd = eloop_ctx; local 418 decode_tunnel_passwords(struct hostapd_data *hapd, const u8 *shared_secret, size_t shared_secret_len, struct radius_msg *msg, struct radius_msg *req, struct hostapd_cached_radius_acl *cache) argument 481 struct hostapd_data *hapd = data; local 599 hostapd_acl_init(struct hostapd_data *hapd) argument 617 hostapd_acl_deinit(struct hostapd_data *hapd) argument [all...] |
H A D | ieee802_11_ht.c | 24 u8 * hostapd_eid_ht_capabilities(struct hostapd_data *hapd, u8 *eid) argument 29 if (!hapd->iconf->ieee80211n || !hapd->iface->current_mode || 30 hapd->conf->disable_11n) 38 cap->ht_capabilities_info = host_to_le16(hapd->iconf->ht_capab); 39 cap->a_mpdu_params = hapd->iface->current_mode->a_mpdu_params; 40 os_memcpy(cap->supported_mcs_set, hapd->iface->current_mode->mcs_set, 49 if (hapd->iconf->obss_interval) { 58 host_to_le16(hapd->iconf->obss_interval); 82 u8 * hostapd_eid_ht_operation(struct hostapd_data *hapd, u argument 206 hostapd_2040_coex_action(struct hostapd_data *hapd, const struct ieee80211_mgmt *mgmt, size_t len) argument 287 copy_sta_ht_capab(struct hostapd_data *hapd, struct sta_info *sta, const u8 *ht_capab, size_t ht_capab_len) argument 361 update_sta_ht(struct hostapd_data *hapd, struct sta_info *sta) argument 394 update_sta_no_ht(struct hostapd_data *hapd, struct sta_info *sta) argument 409 update_ht_state(struct hostapd_data *hapd, struct sta_info *sta) argument 421 hostapd_get_ht_capab(struct hostapd_data *hapd, struct ieee80211_ht_capabilities *ht_cap, struct ieee80211_ht_capabilities *neg_ht_cap) argument [all...] |
H A D | wmm.c | 51 u8 * hostapd_eid_wmm(struct hostapd_data *hapd, u8 *eid) argument 58 if (!hapd->conf->wmm_enabled) 67 wmm->qos_info = hapd->parameter_set_count & 0xf; 69 if (hapd->conf->wmm_uapsd && 70 (hapd->iface->drv_flags & WPA_DRIVER_FLAGS_AP_UAPSD)) 79 &hapd->iconf->wmm_ac_params[e]; 100 int hostapd_eid_wmm_valid(struct hostapd_data *hapd, const u8 *eid, size_t len) argument 127 static void wmm_send_action(struct hostapd_data *hapd, const u8 *addr, argument 137 hostapd_logger(hapd, addr, HOSTAPD_MODULE_IEEE80211, 144 os_memcpy(m->sa, hapd 231 wmm_addts_req(struct hostapd_data *hapd, const struct ieee80211_mgmt *mgmt, struct wmm_tspec_element *tspec, size_t len) argument 256 hostapd_wmm_action(struct hostapd_data *hapd, const struct ieee80211_mgmt *mgmt, size_t len) argument [all...] |
H A D | wnm_ap.c | 25 static int ieee80211_11_get_tfs_ie(struct hostapd_data *hapd, const u8 *addr, argument 30 return hostapd_drv_wnm_oper(hapd, oper, addr, buf, buf_len); 35 static int ieee80211_11_set_tfs_ie(struct hostapd_data *hapd, const u8 *addr, argument 40 return hostapd_drv_wnm_oper(hapd, oper, addr, buf, buf_len); 45 static int ieee802_11_send_wnmsleep_resp(struct hostapd_data *hapd, argument 63 sta = ap_get_sta(hapd, addr); 82 if (ieee80211_11_get_tfs_ie(hapd, addr, wnmtfs_ie, &wnmtfs_ie_len, 99 os_memcpy(mgmt->sa, hapd->own_addr, ETH_ALEN); 100 os_memcpy(mgmt->bssid, hapd->own_addr, ETH_ALEN); 144 res = hostapd_drv_send_action(hapd, hap 190 ieee802_11_rx_wnmsleep_req(struct hostapd_data *hapd, const u8 *addr, const u8 *frm, int len) argument 249 ieee802_11_send_bss_trans_mgmt_request(struct hostapd_data *hapd, const u8 *addr, u8 dialog_token, const char *url) argument 301 ieee802_11_rx_bss_trans_mgmt_query(struct hostapd_data *hapd, const u8 *addr, const u8 *frm, size_t len) argument 330 ieee802_11_rx_bss_trans_mgmt_resp(struct hostapd_data *hapd, const u8 *addr, const u8 *frm, size_t len) argument 369 ieee802_11_rx_wnm_action_ap(struct hostapd_data *hapd, const struct ieee80211_mgmt *mgmt, size_t len) argument 403 wnm_send_disassoc_imminent(struct hostapd_data *hapd, struct sta_info *sta, int disassoc_timer) argument 439 wnm_send_ess_disassoc_imminent(struct hostapd_data *hapd, struct sta_info *sta, const char *url, int disassoc_timer) argument [all...] |
H A D | beacon.c | 35 static u8 * hostapd_eid_bss_load(struct hostapd_data *hapd, u8 *eid, size_t len) argument 38 if (hapd->conf->bss_load_test_set) { 43 os_memcpy(eid, hapd->conf->bss_load_test, 5); 51 static u8 ieee802_11_erp_info(struct hostapd_data *hapd) argument 55 if (hapd->iface->current_mode == NULL || 56 hapd->iface->current_mode->mode != HOSTAPD_MODE_IEEE80211G) 59 if (hapd->iface->olbc) 61 if (hapd->iface->num_sta_non_erp > 0) { 65 if (hapd->iface->num_sta_no_short_preamble > 0 || 66 hapd 73 hostapd_eid_ds_params(struct hostapd_data *hapd, u8 *eid) argument 82 hostapd_eid_erp_info(struct hostapd_data *hapd, u8 *eid) argument 106 hostapd_eid_pwr_constraint(struct hostapd_data *hapd, u8 *eid) argument 192 hostapd_eid_country(struct hostapd_data *hapd, u8 *eid, int max_len) argument 254 hostapd_eid_wpa(struct hostapd_data *hapd, u8 *eid, size_t len) argument 268 hostapd_eid_csa(struct hostapd_data *hapd, u8 *eid) argument 289 hostapd_eid_secondary_channel(struct hostapd_data *hapd, u8 *eid) argument 311 hostapd_add_csa_elems(struct hostapd_data *hapd, u8 *pos, u8 *start, unsigned int *csa_counter_off) argument 332 hostapd_gen_probe_resp(struct hostapd_data *hapd, struct sta_info *sta, const struct ieee80211_mgmt *req, int is_p2p, size_t *resp_len) argument 469 ssid_match(struct hostapd_data *hapd, const u8 *ssid, size_t ssid_len, const u8 *ssid_list, size_t ssid_list_len) argument 503 handle_probe_req(struct hostapd_data *hapd, const struct ieee80211_mgmt *mgmt, size_t len, int ssi_signal) argument 684 hostapd_probe_resp_offloads(struct hostapd_data *hapd, size_t *resp_len) argument 722 ieee802_11_build_ap_params(struct hostapd_data *hapd, struct wpa_driver_ap_params *params) argument 955 ieee802_11_set_beacon(struct hostapd_data *hapd) argument [all...] |
H A D | iapp.c | 170 struct hostapd_data *hapd; member in struct:iapp_data 251 hostapd_logger(iapp->hapd, sta->addr, HOSTAPD_MODULE_IAPP, 277 sta = ap_get_sta(iapp->hapd, add->mac_addr); 280 hostapd_logger(iapp->hapd, add->mac_addr, HOSTAPD_MODULE_IAPP, 294 hostapd_logger(iapp->hapd, add->mac_addr, HOSTAPD_MODULE_IAPP, 297 ap_sta_disconnect(iapp->hapd, sta, NULL, 0); 330 hostapd_logger(iapp->hapd, NULL, HOSTAPD_MODULE_IAPP, 341 hostapd_logger(iapp->hapd, NULL, HOSTAPD_MODULE_IAPP, 380 struct iapp_data * iapp_init(struct hostapd_data *hapd, const char *iface) argument 392 iapp->hapd [all...] |
H A 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, argument 48 int (*cb)(struct hostapd_data *hapd, struct sta_info *sta, 54 for (sta = hapd->sta_list; sta; sta = sta->next) { 55 if (cb(hapd, sta, ctx)) 63 struct sta_info * ap_get_sta(struct hostapd_data *hapd, const u8 *sta) argument 67 s = hapd->sta_hash[STA_HASH(sta)]; 75 struct sta_info * ap_get_sta_p2p(struct hostapd_data *hapd, const u8 *addr) argument 79 for (sta = hapd 98 ap_sta_list_del(struct hostapd_data *hapd, struct sta_info *sta) argument 118 ap_sta_hash_add(struct hostapd_data *hapd, struct sta_info *sta) argument 125 ap_sta_hash_del(struct hostapd_data *hapd, struct sta_info *sta) argument 147 ap_free_sta(struct hostapd_data *hapd, struct sta_info *sta) argument 288 hostapd_free_stas(struct hostapd_data *hapd) argument 318 struct hostapd_data *hapd = eloop_ctx; local 477 struct hostapd_data *hapd = eloop_ctx; local 502 ap_sta_replenish_timeout(struct hostapd_data *hapd, struct sta_info *sta, u32 session_timeout) argument 514 ap_sta_session_timeout(struct hostapd_data *hapd, struct sta_info *sta, u32 session_timeout) argument 526 ap_sta_no_session_timeout(struct hostapd_data *hapd, struct sta_info *sta) argument 535 struct hostapd_data *hapd = eloop_ctx; local 549 ap_sta_session_warning_timeout(struct hostapd_data *hapd, struct sta_info *sta, int warning_time) argument 558 ap_sta_add(struct hostapd_data *hapd, const u8 *addr) argument 604 ap_sta_remove(struct hostapd_data *hapd, struct sta_info *sta) argument 620 ap_sta_remove_in_other_bss(struct hostapd_data *hapd, struct sta_info *sta) argument 647 struct hostapd_data *hapd = eloop_ctx; local 655 ap_sta_disassociate(struct hostapd_data *hapd, struct sta_info *sta, u16 reason) argument 685 struct hostapd_data *hapd = eloop_ctx; local 693 ap_sta_deauthenticate(struct hostapd_data *hapd, struct sta_info *sta, u16 reason) argument 722 ap_sta_wps_cancel(struct hostapd_data *hapd, struct sta_info *sta, void *ctx) argument 738 ap_sta_bind_vlan(struct hostapd_data *hapd, struct sta_info *sta, int old_vlanid) argument 859 ap_check_sa_query_timeout(struct hostapd_data *hapd, struct sta_info *sta) argument 885 struct hostapd_data *hapd = eloop_ctx; local 922 ap_sta_start_sa_query(struct hostapd_data *hapd, struct sta_info *sta) argument 928 ap_sta_stop_sa_query(struct hostapd_data *hapd, struct sta_info *sta) argument 939 ap_sta_set_authorized(struct hostapd_data *hapd, struct sta_info *sta, int authorized) argument 1006 ap_sta_disconnect(struct hostapd_data *hapd, struct sta_info *sta, const u8 *addr, u16 reason) argument 1041 ap_sta_deauth_cb(struct hostapd_data *hapd, struct sta_info *sta) argument 1053 ap_sta_disassoc_cb(struct hostapd_data *hapd, struct sta_info *sta) argument [all...] |
H A D | vlan_init.c | 477 static void vlan_newlink(char *ifname, struct hostapd_data *hapd) argument 481 struct hostapd_vlan *vlan = hapd->conf->vlan; 482 char *tagged_interface = hapd->conf->ssid.vlan_tagged_interface; 483 int vlan_naming = hapd->conf->ssid.vlan_naming; 490 if (hapd->conf->vlan_bridge[0]) { 492 hapd->conf->vlan_bridge, 543 static void vlan_dellink(char *ifname, struct hostapd_data *hapd) argument 547 struct hostapd_vlan *first, *prev, *vlan = hapd->conf->vlan; 548 char *tagged_interface = hapd->conf->ssid.vlan_tagged_interface; 549 int vlan_naming = hapd 614 vlan_read_ifnames(struct nlmsghdr *h, size_t len, int del, struct hostapd_data *hapd) argument 667 struct hostapd_data *hapd = eloop_ctx; local 714 full_dynamic_vlan_init(struct hostapd_data *hapd) argument 772 vlan_setup_encryption_dyn(struct hostapd_data *hapd, struct hostapd_ssid *mssid, const char *dyn_vlan) argument 798 vlan_dynamic_add(struct hostapd_data *hapd, struct hostapd_vlan *vlan) argument 824 vlan_dynamic_remove(struct hostapd_data *hapd, struct hostapd_vlan *vlan) argument 848 vlan_init(struct hostapd_data *hapd) argument 879 vlan_deinit(struct hostapd_data *hapd) argument 890 vlan_add_dynamic(struct hostapd_data *hapd, struct hostapd_vlan *vlan, int vlan_id) argument 942 vlan_remove_dynamic(struct hostapd_data *hapd, int vlan_id) argument [all...] |
H A D | wpa_auth_glue.c | 108 struct hostapd_data *hapd = ctx; local 124 hostapd_logger(hapd, addr, HOSTAPD_MODULE_WPA, hlevel, "%s", txt); 132 struct hostapd_data *hapd = ctx; local 136 ap_sta_disconnect(hapd, NULL, addr, reason); 142 struct hostapd_data *hapd = ctx; local 143 return michael_mic_failure(hapd, addr, 0); 150 struct hostapd_data *hapd = ctx; local 151 struct sta_info *sta = ap_get_sta(hapd, addr); 162 ieee802_1x_set_sta_authorized(hapd, sta, value); 192 struct hostapd_data *hapd local 211 struct hostapd_data *hapd = ctx; local 246 struct hostapd_data *hapd = ctx; local 272 struct hostapd_data *hapd = ctx; local 289 struct hostapd_data *hapd = ctx; local 298 struct hostapd_data *hapd = ctx; local 315 struct hostapd_data *hapd = ctx; local 348 struct hostapd_data *hapd = ctx; local 373 struct hostapd_data *hapd; local 403 struct hostapd_data *hapd = ctx; local 450 struct hostapd_data *hapd = ctx; local 480 struct hostapd_data *hapd = ctx; local 508 struct hostapd_data *hapd = ctx; local 523 struct hostapd_data *hapd = ctx; local 530 hostapd_setup_wpa(struct hostapd_data *hapd) argument 608 hostapd_reconfig_wpa(struct hostapd_data *hapd) argument 616 hostapd_deinit_wpa(struct hostapd_data *hapd) argument [all...] |
/external/wpa_supplicant_8/hostapd/ |
H A D | main.c | 46 struct hostapd_data *hapd = ctx; local 57 if (hapd && hapd->conf) { 58 conf_syslog_level = hapd->conf->logger_syslog_level; 59 conf_stdout_level = hapd->conf->logger_stdout_level; 60 conf_syslog = hapd->conf->logger_syslog; 61 conf_stdout = hapd->conf->logger_stdout; 94 if (hapd && hapd->conf && addr) 96 hapd 154 struct hostapd_data *hapd = iface->bss[0]; local 470 struct hostapd_data *hapd = ctx; local [all...] |
/external/wpa_supplicant_8/hostapd/src/ap/ |
H A D | beacon.c | 35 static u8 * hostapd_eid_bss_load(struct hostapd_data *hapd, u8 *eid, size_t len) argument 38 if (hapd->conf->bss_load_test_set) { 43 os_memcpy(eid, hapd->conf->bss_load_test, 5); 51 static u8 ieee802_11_erp_info(struct hostapd_data *hapd) argument 55 if (hapd->iface->current_mode == NULL || 56 hapd->iface->current_mode->mode != HOSTAPD_MODE_IEEE80211G) 59 if (hapd->iface->olbc) 61 if (hapd->iface->num_sta_non_erp > 0) { 65 if (hapd->iface->num_sta_no_short_preamble > 0 || 66 hapd 73 hostapd_eid_ds_params(struct hostapd_data *hapd, u8 *eid) argument 82 hostapd_eid_erp_info(struct hostapd_data *hapd, u8 *eid) argument 106 hostapd_eid_pwr_constraint(struct hostapd_data *hapd, u8 *eid) argument 192 hostapd_eid_country(struct hostapd_data *hapd, u8 *eid, int max_len) argument 254 hostapd_eid_wpa(struct hostapd_data *hapd, u8 *eid, size_t len) argument 268 hostapd_eid_csa(struct hostapd_data *hapd, u8 *eid) argument 289 hostapd_eid_secondary_channel(struct hostapd_data *hapd, u8 *eid) argument 311 hostapd_add_csa_elems(struct hostapd_data *hapd, u8 *pos, u8 *start, unsigned int *csa_counter_off) argument 332 hostapd_gen_probe_resp(struct hostapd_data *hapd, struct sta_info *sta, const struct ieee80211_mgmt *req, int is_p2p, size_t *resp_len) argument 469 ssid_match(struct hostapd_data *hapd, const u8 *ssid, size_t ssid_len, const u8 *ssid_list, size_t ssid_list_len) argument 503 handle_probe_req(struct hostapd_data *hapd, const struct ieee80211_mgmt *mgmt, size_t len, int ssi_signal) argument 684 hostapd_probe_resp_offloads(struct hostapd_data *hapd, size_t *resp_len) argument 722 ieee802_11_build_ap_params(struct hostapd_data *hapd, struct wpa_driver_ap_params *params) argument 955 ieee802_11_set_beacon(struct hostapd_data *hapd) argument [all...] |
H A D | iapp.c | 170 struct hostapd_data *hapd; member in struct:iapp_data 251 hostapd_logger(iapp->hapd, sta->addr, HOSTAPD_MODULE_IAPP, 277 sta = ap_get_sta(iapp->hapd, add->mac_addr); 280 hostapd_logger(iapp->hapd, add->mac_addr, HOSTAPD_MODULE_IAPP, 294 hostapd_logger(iapp->hapd, add->mac_addr, HOSTAPD_MODULE_IAPP, 297 ap_sta_disconnect(iapp->hapd, sta, NULL, 0); 330 hostapd_logger(iapp->hapd, NULL, HOSTAPD_MODULE_IAPP, 341 hostapd_logger(iapp->hapd, NULL, HOSTAPD_MODULE_IAPP, 380 struct iapp_data * iapp_init(struct hostapd_data *hapd, const char *iface) argument 392 iapp->hapd [all...] |
H A 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, argument 48 int (*cb)(struct hostapd_data *hapd, struct sta_info *sta, 54 for (sta = hapd->sta_list; sta; sta = sta->next) { 55 if (cb(hapd, sta, ctx)) 63 struct sta_info * ap_get_sta(struct hostapd_data *hapd, const u8 *sta) argument 67 s = hapd->sta_hash[STA_HASH(sta)]; 75 struct sta_info * ap_get_sta_p2p(struct hostapd_data *hapd, const u8 *addr) argument 79 for (sta = hapd 98 ap_sta_list_del(struct hostapd_data *hapd, struct sta_info *sta) argument 118 ap_sta_hash_add(struct hostapd_data *hapd, struct sta_info *sta) argument 125 ap_sta_hash_del(struct hostapd_data *hapd, struct sta_info *sta) argument 147 ap_free_sta(struct hostapd_data *hapd, struct sta_info *sta) argument 288 hostapd_free_stas(struct hostapd_data *hapd) argument 318 struct hostapd_data *hapd = eloop_ctx; local 477 struct hostapd_data *hapd = eloop_ctx; local 502 ap_sta_replenish_timeout(struct hostapd_data *hapd, struct sta_info *sta, u32 session_timeout) argument 514 ap_sta_session_timeout(struct hostapd_data *hapd, struct sta_info *sta, u32 session_timeout) argument 526 ap_sta_no_session_timeout(struct hostapd_data *hapd, struct sta_info *sta) argument 535 struct hostapd_data *hapd = eloop_ctx; local 549 ap_sta_session_warning_timeout(struct hostapd_data *hapd, struct sta_info *sta, int warning_time) argument 558 ap_sta_add(struct hostapd_data *hapd, const u8 *addr) argument 604 ap_sta_remove(struct hostapd_data *hapd, struct sta_info *sta) argument 620 ap_sta_remove_in_other_bss(struct hostapd_data *hapd, struct sta_info *sta) argument 647 struct hostapd_data *hapd = eloop_ctx; local 655 ap_sta_disassociate(struct hostapd_data *hapd, struct sta_info *sta, u16 reason) argument 685 struct hostapd_data *hapd = eloop_ctx; local 693 ap_sta_deauthenticate(struct hostapd_data *hapd, struct sta_info *sta, u16 reason) argument 722 ap_sta_wps_cancel(struct hostapd_data *hapd, struct sta_info *sta, void *ctx) argument 738 ap_sta_bind_vlan(struct hostapd_data *hapd, struct sta_info *sta, int old_vlanid) argument 859 ap_check_sa_query_timeout(struct hostapd_data *hapd, struct sta_info *sta) argument 885 struct hostapd_data *hapd = eloop_ctx; local 922 ap_sta_start_sa_query(struct hostapd_data *hapd, struct sta_info *sta) argument 928 ap_sta_stop_sa_query(struct hostapd_data *hapd, struct sta_info *sta) argument 939 ap_sta_set_authorized(struct hostapd_data *hapd, struct sta_info *sta, int authorized) argument 1006 ap_sta_disconnect(struct hostapd_data *hapd, struct sta_info *sta, const u8 *addr, u16 reason) argument 1041 ap_sta_deauth_cb(struct hostapd_data *hapd, struct sta_info *sta) argument 1053 ap_sta_disassoc_cb(struct hostapd_data *hapd, struct sta_info *sta) argument [all...] |
H A D | vlan_init.c | 477 static void vlan_newlink(char *ifname, struct hostapd_data *hapd) argument 481 struct hostapd_vlan *vlan = hapd->conf->vlan; 482 char *tagged_interface = hapd->conf->ssid.vlan_tagged_interface; 483 int vlan_naming = hapd->conf->ssid.vlan_naming; 490 if (hapd->conf->vlan_bridge[0]) { 492 hapd->conf->vlan_bridge, 543 static void vlan_dellink(char *ifname, struct hostapd_data *hapd) argument 547 struct hostapd_vlan *first, *prev, *vlan = hapd->conf->vlan; 548 char *tagged_interface = hapd->conf->ssid.vlan_tagged_interface; 549 int vlan_naming = hapd 614 vlan_read_ifnames(struct nlmsghdr *h, size_t len, int del, struct hostapd_data *hapd) argument 667 struct hostapd_data *hapd = eloop_ctx; local 714 full_dynamic_vlan_init(struct hostapd_data *hapd) argument 772 vlan_setup_encryption_dyn(struct hostapd_data *hapd, struct hostapd_ssid *mssid, const char *dyn_vlan) argument 798 vlan_dynamic_add(struct hostapd_data *hapd, struct hostapd_vlan *vlan) argument 824 vlan_dynamic_remove(struct hostapd_data *hapd, struct hostapd_vlan *vlan) argument 848 vlan_init(struct hostapd_data *hapd) argument 879 vlan_deinit(struct hostapd_data *hapd) argument 890 vlan_add_dynamic(struct hostapd_data *hapd, struct hostapd_vlan *vlan, int vlan_id) argument 942 vlan_remove_dynamic(struct hostapd_data *hapd, int vlan_id) argument [all...] |
H A D | wpa_auth_glue.c | 108 struct hostapd_data *hapd = ctx; local 124 hostapd_logger(hapd, addr, HOSTAPD_MODULE_WPA, hlevel, "%s", txt); 132 struct hostapd_data *hapd = ctx; local 136 ap_sta_disconnect(hapd, NULL, addr, reason); 142 struct hostapd_data *hapd = ctx; local 143 return michael_mic_failure(hapd, addr, 0); 150 struct hostapd_data *hapd = ctx; local 151 struct sta_info *sta = ap_get_sta(hapd, addr); 162 ieee802_1x_set_sta_authorized(hapd, sta, value); 192 struct hostapd_data *hapd local 211 struct hostapd_data *hapd = ctx; local 246 struct hostapd_data *hapd = ctx; local 272 struct hostapd_data *hapd = ctx; local 289 struct hostapd_data *hapd = ctx; local 298 struct hostapd_data *hapd = ctx; local 315 struct hostapd_data *hapd = ctx; local 348 struct hostapd_data *hapd = ctx; local 373 struct hostapd_data *hapd; local 403 struct hostapd_data *hapd = ctx; local 450 struct hostapd_data *hapd = ctx; local 480 struct hostapd_data *hapd = ctx; local 508 struct hostapd_data *hapd = ctx; local 523 struct hostapd_data *hapd = ctx; local 530 hostapd_setup_wpa(struct hostapd_data *hapd) argument 608 hostapd_reconfig_wpa(struct hostapd_data *hapd) argument 616 hostapd_deinit_wpa(struct hostapd_data *hapd) argument [all...] |
H A D | drv_callbacks.c | 37 int hostapd_notif_assoc(struct hostapd_data *hapd, const u8 *addr, argument 67 hostapd_logger(hapd, addr, HOSTAPD_MODULE_IEEE80211, 96 sta = ap_get_sta(hapd, addr); 98 ap_sta_no_session_timeout(hapd, sta); 99 accounting_sta_stop(hapd, sta); 107 sta = ap_sta_add(hapd, addr); 109 hostapd_drv_sta_disassoc(hapd, addr, 131 (hapd->iface->conf->ht_capab & 139 ht40_intolerant_add(hapd->iface, sta); 160 if (hapd 386 hostapd_notif_disassoc(struct hostapd_data *hapd, const u8 *addr) argument 422 hostapd_event_sta_low_ack(struct hostapd_data *hapd, const u8 *addr) argument 438 hostapd_event_ch_switch(struct hostapd_data *hapd, int freq, int ht, int offset, int width, int cf1, int cf2) argument 509 hostapd_event_connect_failed_reason(struct hostapd_data *hapd, const u8 *addr, int reason_code) argument 525 hostapd_probe_req_rx(struct hostapd_data *hapd, const u8 *sa, const u8 *da, const u8 *bssid, const u8 *ie, size_t ie_len, int ssi_signal) argument 556 struct hostapd_data *hapd = ctx; local 572 hostapd_notif_auth(struct hostapd_data *hapd, struct auth_info *rx_auth) argument 615 hostapd_action_rx(struct hostapd_data *hapd, struct rx_mgmt *drv_mgmt) argument 687 hostapd_rx_from_unknown_sta(struct hostapd_data *hapd, const u8 *bssid, const u8 *addr, int wds) argument 699 hostapd_mgmt_rx(struct hostapd_data *hapd, struct rx_mgmt *rx_mgmt) argument 770 hostapd_mgmt_tx_cb(struct hostapd_data *hapd, const u8 *buf, size_t len, u16 stype, int ok) argument 784 hostapd_event_new_sta(struct hostapd_data *hapd, const u8 *addr) argument 805 hostapd_event_eapol_rx(struct hostapd_data *hapd, const u8 *src, const u8 *data, size_t data_len) argument 861 hostapd_event_get_survey(struct hostapd_data *hapd, struct survey_results *survey_results) argument 893 hostapd_event_iface_unavailable(struct hostapd_data *hapd) argument 907 hostapd_event_dfs_radar_detected(struct hostapd_data *hapd, struct dfs_event *radar) argument 917 hostapd_event_dfs_cac_finished(struct hostapd_data *hapd, struct dfs_event *radar) argument 927 hostapd_event_dfs_cac_aborted(struct hostapd_data *hapd, struct dfs_event *radar) argument 937 hostapd_event_dfs_nop_finished(struct hostapd_data *hapd, struct dfs_event *radar) argument 952 struct hostapd_data *hapd = ctx; local [all...] |
H A D | gas_serv.c | 30 gas_dialog_create(struct hostapd_data *hapd, const u8 *addr, u8 dialog_token) argument 36 sta = ap_get_sta(hapd, addr); 44 sta = ap_sta_add(hapd, addr); 55 ap_sta_session_timeout(hapd, sta, 5); 57 ap_sta_replenish_timeout(hapd, sta, 5); 79 wpa_msg(hapd->msg_ctx, MSG_ERROR, "ANQP: Could not create dialog for " 88 gas_serv_dialog_find(struct hostapd_data *hapd, const u8 *addr, argument 94 sta = ap_get_sta(hapd, addr); 119 static void gas_serv_free_dialogs(struct hostapd_data *hapd, argument 125 sta = ap_get_sta(hapd, sta_add 140 anqp_add_hs_capab_list(struct hostapd_data *hapd, struct wpabuf *buf) argument 170 anqp_add_capab_list(struct hostapd_data *hapd, struct wpabuf *buf) argument 198 anqp_add_venue_name(struct hostapd_data *hapd, struct wpabuf *buf) argument 218 anqp_add_network_auth_type(struct hostapd_data *hapd, struct wpabuf *buf) argument 230 anqp_add_roaming_consortium(struct hostapd_data *hapd, struct wpabuf *buf) argument 247 anqp_add_ip_addr_type_availability(struct hostapd_data *hapd, struct wpabuf *buf) argument 296 hs20_add_nai_home_realm_matches(struct hostapd_data *hapd, struct wpabuf *buf, const u8 *home_realm, size_t home_realm_len) argument 390 anqp_add_nai_realm(struct hostapd_data *hapd, struct wpabuf *buf, const u8 *home_realm, size_t home_realm_len, int nai_realm, int nai_home_realm) argument 424 anqp_add_3gpp_cellular_network(struct hostapd_data *hapd, struct wpabuf *buf) argument 437 anqp_add_domain_name(struct hostapd_data *hapd, struct wpabuf *buf) argument 450 anqp_add_operator_friendly_name(struct hostapd_data *hapd, struct wpabuf *buf) argument 474 anqp_add_wan_metrics(struct hostapd_data *hapd, struct wpabuf *buf) argument 489 anqp_add_connection_capability(struct hostapd_data *hapd, struct wpabuf *buf) argument 505 anqp_add_operating_class(struct hostapd_data *hapd, struct wpabuf *buf) argument 598 anqp_add_osu_providers_list(struct hostapd_data *hapd, struct wpabuf *buf) argument 628 anqp_add_icon_binary_file(struct hostapd_data *hapd, struct wpabuf *buf, const u8 *name, size_t name_len) argument 687 gas_serv_build_gas_resp_payload(struct hostapd_data *hapd, unsigned int request, const u8 *home_realm, size_t home_realm_len, const u8 *icon_name, size_t icon_name_len) argument 766 rx_anqp_query_list_id(struct hostapd_data *hapd, u16 info_id, struct anqp_query_info *qi) argument 812 rx_anqp_query_list(struct hostapd_data *hapd, const u8 *pos, const u8 *end, struct anqp_query_info *qi) argument 828 rx_anqp_hs_query_list(struct hostapd_data *hapd, u8 subtype, struct anqp_query_info *qi) argument 867 rx_anqp_hs_nai_home_realm(struct hostapd_data *hapd, const u8 *pos, const u8 *end, struct anqp_query_info *qi) argument 884 rx_anqp_hs_icon_request(struct hostapd_data *hapd, const u8 *pos, const u8 *end, struct anqp_query_info *qi) argument 901 rx_anqp_vendor_specific(struct hostapd_data *hapd, const u8 *pos, const u8 *end, struct anqp_query_info *qi) argument 958 gas_serv_req_local_processing(struct hostapd_data *hapd, const u8 *sa, u8 dialog_token, struct anqp_query_info *qi, int prot) argument 1018 gas_serv_rx_gas_initial_req(struct hostapd_data *hapd, const u8 *sa, const u8 *data, size_t len, int prot) argument 1127 gas_serv_rx_gas_comeback_req(struct hostapd_data *hapd, const u8 *sa, const u8 *data, size_t len, int prot) argument 1214 struct hostapd_data *hapd = ctx; local 1245 gas_serv_init(struct hostapd_data *hapd) argument 1256 gas_serv_deinit(struct hostapd_data *hapd) argument [all...] |
H A D | hw_features.c | 76 struct hostapd_data *hapd = iface->bss[0]; local 81 if (hostapd_drv_none(hapd)) 83 modes = hostapd_get_hw_feature_data(hapd, &num_modes, &flags); 85 hostapd_logger(hapd, NULL, HOSTAPD_MODULE_IEEE80211, 100 int dfs_enabled = hapd->iconf->ieee80211h && 1132 int hostapd_hw_get_freq(struct hostapd_data *hapd, int chan) argument 1136 if (!hapd->iface->current_mode) 1139 for (i = 0; i < hapd->iface->current_mode->num_channels; i++) { 1141 &hapd->iface->current_mode->channels[i]; 1150 int hostapd_hw_get_channel(struct hostapd_data *hapd, in argument [all...] |
/external/wpa_supplicant_8/src/ap/ |
H A D | beacon.c | 35 static u8 * hostapd_eid_bss_load(struct hostapd_data *hapd, u8 *eid, size_t len) argument 38 if (hapd->conf->bss_load_test_set) { 43 os_memcpy(eid, hapd->conf->bss_load_test, 5); 51 static u8 ieee802_11_erp_info(struct hostapd_data *hapd) argument 55 if (hapd->iface->current_mode == NULL || 56 hapd->iface->current_mode->mode != HOSTAPD_MODE_IEEE80211G) 59 if (hapd->iface->olbc) 61 if (hapd->iface->num_sta_non_erp > 0) { 65 if (hapd->iface->num_sta_no_short_preamble > 0 || 66 hapd 73 hostapd_eid_ds_params(struct hostapd_data *hapd, u8 *eid) argument 82 hostapd_eid_erp_info(struct hostapd_data *hapd, u8 *eid) argument 106 hostapd_eid_pwr_constraint(struct hostapd_data *hapd, u8 *eid) argument 192 hostapd_eid_country(struct hostapd_data *hapd, u8 *eid, int max_len) argument 254 hostapd_eid_wpa(struct hostapd_data *hapd, u8 *eid, size_t len) argument 268 hostapd_eid_csa(struct hostapd_data *hapd, u8 *eid) argument 289 hostapd_eid_secondary_channel(struct hostapd_data *hapd, u8 *eid) argument 311 hostapd_add_csa_elems(struct hostapd_data *hapd, u8 *pos, u8 *start, unsigned int *csa_counter_off) argument 332 hostapd_gen_probe_resp(struct hostapd_data *hapd, struct sta_info *sta, const struct ieee80211_mgmt *req, int is_p2p, size_t *resp_len) argument 469 ssid_match(struct hostapd_data *hapd, const u8 *ssid, size_t ssid_len, const u8 *ssid_list, size_t ssid_list_len) argument 503 handle_probe_req(struct hostapd_data *hapd, const struct ieee80211_mgmt *mgmt, size_t len, int ssi_signal) argument 684 hostapd_probe_resp_offloads(struct hostapd_data *hapd, size_t *resp_len) argument 722 ieee802_11_build_ap_params(struct hostapd_data *hapd, struct wpa_driver_ap_params *params) argument 955 ieee802_11_set_beacon(struct hostapd_data *hapd) argument [all...] |
H A D | iapp.c | 170 struct hostapd_data *hapd; member in struct:iapp_data 251 hostapd_logger(iapp->hapd, sta->addr, HOSTAPD_MODULE_IAPP, 277 sta = ap_get_sta(iapp->hapd, add->mac_addr); 280 hostapd_logger(iapp->hapd, add->mac_addr, HOSTAPD_MODULE_IAPP, 294 hostapd_logger(iapp->hapd, add->mac_addr, HOSTAPD_MODULE_IAPP, 297 ap_sta_disconnect(iapp->hapd, sta, NULL, 0); 330 hostapd_logger(iapp->hapd, NULL, HOSTAPD_MODULE_IAPP, 341 hostapd_logger(iapp->hapd, NULL, HOSTAPD_MODULE_IAPP, 380 struct iapp_data * iapp_init(struct hostapd_data *hapd, const char *iface) argument 392 iapp->hapd [all...] |
H A 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, argument 48 int (*cb)(struct hostapd_data *hapd, struct sta_info *sta, 54 for (sta = hapd->sta_list; sta; sta = sta->next) { 55 if (cb(hapd, sta, ctx)) 63 struct sta_info * ap_get_sta(struct hostapd_data *hapd, const u8 *sta) argument 67 s = hapd->sta_hash[STA_HASH(sta)]; 75 struct sta_info * ap_get_sta_p2p(struct hostapd_data *hapd, const u8 *addr) argument 79 for (sta = hapd 98 ap_sta_list_del(struct hostapd_data *hapd, struct sta_info *sta) argument 118 ap_sta_hash_add(struct hostapd_data *hapd, struct sta_info *sta) argument 125 ap_sta_hash_del(struct hostapd_data *hapd, struct sta_info *sta) argument 147 ap_free_sta(struct hostapd_data *hapd, struct sta_info *sta) argument 288 hostapd_free_stas(struct hostapd_data *hapd) argument 318 struct hostapd_data *hapd = eloop_ctx; local 477 struct hostapd_data *hapd = eloop_ctx; local 502 ap_sta_replenish_timeout(struct hostapd_data *hapd, struct sta_info *sta, u32 session_timeout) argument 514 ap_sta_session_timeout(struct hostapd_data *hapd, struct sta_info *sta, u32 session_timeout) argument 526 ap_sta_no_session_timeout(struct hostapd_data *hapd, struct sta_info *sta) argument 535 struct hostapd_data *hapd = eloop_ctx; local 549 ap_sta_session_warning_timeout(struct hostapd_data *hapd, struct sta_info *sta, int warning_time) argument 558 ap_sta_add(struct hostapd_data *hapd, const u8 *addr) argument 604 ap_sta_remove(struct hostapd_data *hapd, struct sta_info *sta) argument 620 ap_sta_remove_in_other_bss(struct hostapd_data *hapd, struct sta_info *sta) argument 647 struct hostapd_data *hapd = eloop_ctx; local 655 ap_sta_disassociate(struct hostapd_data *hapd, struct sta_info *sta, u16 reason) argument 685 struct hostapd_data *hapd = eloop_ctx; local 693 ap_sta_deauthenticate(struct hostapd_data *hapd, struct sta_info *sta, u16 reason) argument 722 ap_sta_wps_cancel(struct hostapd_data *hapd, struct sta_info *sta, void *ctx) argument 738 ap_sta_bind_vlan(struct hostapd_data *hapd, struct sta_info *sta, int old_vlanid) argument 859 ap_check_sa_query_timeout(struct hostapd_data *hapd, struct sta_info *sta) argument 885 struct hostapd_data *hapd = eloop_ctx; local 922 ap_sta_start_sa_query(struct hostapd_data *hapd, struct sta_info *sta) argument 928 ap_sta_stop_sa_query(struct hostapd_data *hapd, struct sta_info *sta) argument 939 ap_sta_set_authorized(struct hostapd_data *hapd, struct sta_info *sta, int authorized) argument 1006 ap_sta_disconnect(struct hostapd_data *hapd, struct sta_info *sta, const u8 *addr, u16 reason) argument 1041 ap_sta_deauth_cb(struct hostapd_data *hapd, struct sta_info *sta) argument 1053 ap_sta_disassoc_cb(struct hostapd_data *hapd, struct sta_info *sta) argument [all...] |
H A D | vlan_init.c | 477 static void vlan_newlink(char *ifname, struct hostapd_data *hapd) argument 481 struct hostapd_vlan *vlan = hapd->conf->vlan; 482 char *tagged_interface = hapd->conf->ssid.vlan_tagged_interface; 483 int vlan_naming = hapd->conf->ssid.vlan_naming; 490 if (hapd->conf->vlan_bridge[0]) { 492 hapd->conf->vlan_bridge, 543 static void vlan_dellink(char *ifname, struct hostapd_data *hapd) argument 547 struct hostapd_vlan *first, *prev, *vlan = hapd->conf->vlan; 548 char *tagged_interface = hapd->conf->ssid.vlan_tagged_interface; 549 int vlan_naming = hapd 614 vlan_read_ifnames(struct nlmsghdr *h, size_t len, int del, struct hostapd_data *hapd) argument 667 struct hostapd_data *hapd = eloop_ctx; local 714 full_dynamic_vlan_init(struct hostapd_data *hapd) argument 772 vlan_setup_encryption_dyn(struct hostapd_data *hapd, struct hostapd_ssid *mssid, const char *dyn_vlan) argument 798 vlan_dynamic_add(struct hostapd_data *hapd, struct hostapd_vlan *vlan) argument 824 vlan_dynamic_remove(struct hostapd_data *hapd, struct hostapd_vlan *vlan) argument 848 vlan_init(struct hostapd_data *hapd) argument 879 vlan_deinit(struct hostapd_data *hapd) argument 890 vlan_add_dynamic(struct hostapd_data *hapd, struct hostapd_vlan *vlan, int vlan_id) argument 942 vlan_remove_dynamic(struct hostapd_data *hapd, int vlan_id) argument [all...] |
H A D | wpa_auth_glue.c | 108 struct hostapd_data *hapd = ctx; local 124 hostapd_logger(hapd, addr, HOSTAPD_MODULE_WPA, hlevel, "%s", txt); 132 struct hostapd_data *hapd = ctx; local 136 ap_sta_disconnect(hapd, NULL, addr, reason); 142 struct hostapd_data *hapd = ctx; local 143 return michael_mic_failure(hapd, addr, 0); 150 struct hostapd_data *hapd = ctx; local 151 struct sta_info *sta = ap_get_sta(hapd, addr); 162 ieee802_1x_set_sta_authorized(hapd, sta, value); 192 struct hostapd_data *hapd local 211 struct hostapd_data *hapd = ctx; local 246 struct hostapd_data *hapd = ctx; local 272 struct hostapd_data *hapd = ctx; local 289 struct hostapd_data *hapd = ctx; local 298 struct hostapd_data *hapd = ctx; local 315 struct hostapd_data *hapd = ctx; local 348 struct hostapd_data *hapd = ctx; local 373 struct hostapd_data *hapd; local 403 struct hostapd_data *hapd = ctx; local 450 struct hostapd_data *hapd = ctx; local 480 struct hostapd_data *hapd = ctx; local 508 struct hostapd_data *hapd = ctx; local 523 struct hostapd_data *hapd = ctx; local 530 hostapd_setup_wpa(struct hostapd_data *hapd) argument 608 hostapd_reconfig_wpa(struct hostapd_data *hapd) argument 616 hostapd_deinit_wpa(struct hostapd_data *hapd) argument [all...] |
/external/wpa_supplicant_8/hostapd/src/drivers/ |
H A D | driver_wired.c | 349 static void * wired_driver_hapd_init(struct hostapd_data *hapd, argument 360 drv->ctx = hapd;
|