/external/wpa_supplicant_8/src/ap/ |
bss_load.c | 21 struct hostapd_data *hapd = eloop_data; local 25 if (!(hapd->beacon_set_done && hapd->started)) 28 err = hostapd_drv_get_survey(hapd, hapd->iface->freq); 34 ieee802_11_set_beacon(hapd); 36 sec = ((hapd->bss_load_update_timeout / 1000) * 1024) / 1000; 37 usec = (hapd->bss_load_update_timeout % 1000) * 1024; 38 eloop_register_timeout(sec, usec, update_channel_utilization, hapd, 43 int bss_load_update_init(struct hostapd_data *hapd) [all...] |
tkip_countermeasures.c | 26 struct hostapd_data *hapd = eloop_ctx; local 27 hapd->tkip_countermeasures = 0; 28 hostapd_drv_set_countermeasures(hapd, 0); 29 hostapd_logger(hapd, NULL, HOSTAPD_MODULE_IEEE80211, 34 static void ieee80211_tkip_countermeasures_start(struct hostapd_data *hapd) 38 hostapd_logger(hapd, NULL, HOSTAPD_MODULE_IEEE80211, 41 wpa_auth_countermeasures_start(hapd->wpa_auth); 42 hapd->tkip_countermeasures = 1; 43 hostapd_drv_set_countermeasures(hapd, 1); 44 wpa_gtk_rekey(hapd->wpa_auth) [all...] |
authsrv.c | 29 static int hostapd_sim_db_cb_sta(struct hostapd_data *hapd, 40 struct hostapd_data *hapd = ctx; local 41 if (ap_for_each_sta(hapd, hostapd_sim_db_cb_sta, session_ctx) == 0) { 43 radius_server_eap_pending_cb(hapd->radius_srv, session_ctx); 97 static int hostapd_setup_radius_srv(struct hostapd_data *hapd) 100 struct hostapd_bss_config *conf = hapd->conf; 105 srv.conf_ctx = hapd; 106 srv.eap_sim_db_priv = hapd->eap_sim_db_priv; 107 srv.ssl_ctx = hapd->ssl_ctx; 108 srv.msg_ctx = hapd->msg_ctx [all...] |
utils.c | 18 int hostapd_register_probereq_cb(struct hostapd_data *hapd, 27 n = os_realloc_array(hapd->probereq_cb, hapd->num_probereq_cb + 1, 32 hapd->probereq_cb = n; 33 n = &hapd->probereq_cb[hapd->num_probereq_cb]; 34 hapd->num_probereq_cb++; 44 struct hostapd_data *hapd; member in struct:prune_data 57 if (ohapd == data->hapd) 62 data->hapd->iface->fst & [all...] |
dhcp_snoop.c | 35 struct hostapd_data *hapd = ctx; local 96 sta = ap_get_sta(hapd, b->hw_addr); 113 hostapd_drv_br_delete_ip_neigh(hapd, 4, 117 res = hostapd_drv_br_add_ip_neigh(hapd, 4, (u8 *) &b->your_ip, 128 if (hapd->conf->disable_dgaf && is_broadcast_ether_addr(buf)) { 129 for (sta = hapd->sta_list; sta; sta = sta->next) { 132 x_snoop_mcast_to_ucast_convert_send(hapd, sta, 139 int dhcp_snoop_init(struct hostapd_data *hapd) 141 hapd->sock_dhcp = x_snoop_get_l2_packet(hapd, handle_dhcp [all...] |
preauth_auth.c | 34 struct hostapd_data *hapd; member in struct:rsn_preauth_interface 45 struct hostapd_data *hapd = piface->hapd; local 61 if (os_memcmp(ethhdr->h_dest, hapd->own_addr, ETH_ALEN) != 0) { 67 sta = ap_get_sta(hapd, ethhdr->h_source); 74 sta = ap_sta_add(hapd, ethhdr->h_source); 79 ieee802_1x_new_station(hapd, sta); 81 ap_free_sta(hapd, sta); 92 ieee802_1x_receive(hapd, ethhdr->h_source, (u8 *) (ethhdr + 1), 97 static int rsn_preauth_iface_add(struct hostapd_data *hapd, const char *ifname 187 struct hostapd_data *hapd = eloop_ctx; local [all...] |
accounting.c | 30 static void accounting_sta_interim(struct hostapd_data *hapd, 34 static struct radius_msg * accounting_msg(struct hostapd_data *hapd, 47 radius_client_get_id(hapd->radius)); 61 hapd->conf->radius_acct_req_attr, 64 hapd->conf->ieee802_1x ? 96 if (add_common_radius_attr(hapd, hapd->conf->radius_acct_req_attr, sta, 167 static int accounting_sta_update_stats(struct hostapd_data *hapd, 171 if (hostapd_drv_read_sta_data(hapd, data, sta->addr)) 185 hostapd_logger(hapd, sta->addr, HOSTAPD_MODULE_RADIUS 200 struct hostapd_data *hapd = eloop_ctx; local 459 struct hostapd_data *hapd = ctx; local [all...] |
ndisc_snoop.c | 57 void sta_ip6addr_del(struct hostapd_data *hapd, struct sta_info *sta) 63 hostapd_drv_br_delete_ip_neigh(hapd, 6, (u8 *) &ip6addr->addr); 85 static void ucast_to_stas(struct hostapd_data *hapd, const u8 *buf, size_t len) 89 for (sta = hapd->sta_list; sta; sta = sta->next) { 92 x_snoop_mcast_to_ucast_convert_send(hapd, sta, (u8 *) buf, len); 100 struct hostapd_data *hapd = ctx; local 126 sta = ap_get_sta(hapd, msg->opt_lladdr); 138 hostapd_drv_br_delete_ip_neigh(hapd, 6, (u8 *) &saddr); 139 res = hostapd_drv_br_add_ip_neigh(hapd, 6, 154 if (hapd->conf->disable_dgaf [all...] |
fils_hlp.c | 36 static int fils_dhcp_request(struct hostapd_data *hapd, struct sta_info *sta, 130 addr.sin_addr.s_addr = hapd->conf->dhcp_server.u.v4.s_addr; 131 addr.sin_port = htons(hapd->conf->dhcp_server_port); 132 res = sendto(hapd->dhcp_sock, wpabuf_head(sta->hlp_dhcp_discover), 152 struct hostapd_data *hapd = sock_ctx; local 183 if (dhcp->relay_ip != hapd->conf->own_ip_addr.u.v4.s_addr) { 232 sta = ap_get_sta(hapd, dhcp->hw_addr); 240 if (hapd->conf->dhcp_rapid_commit_proxy && msgtype == DHCPOFFER && 244 if (fils_dhcp_request(hapd, sta, dhcp, end) == 0) 258 wpabuf_put_data(resp, hapd->own_addr, ETH_ALEN) [all...] |
hw_features.c | 77 struct hostapd_data *hapd = iface->bss[0]; local 82 if (hostapd_drv_none(hapd)) 84 modes = hostapd_get_hw_feature_data(hapd, &num_modes, &flags); 86 hostapd_logger(hapd, NULL, HOSTAPD_MODULE_IEEE80211, 101 int dfs_enabled = hapd->iconf->ieee80211h && 904 int hostapd_hw_get_freq(struct hostapd_data *hapd, int chan) 906 return hw_get_freq(hapd->iface->current_mode, chan); 910 int hostapd_hw_get_channel(struct hostapd_data *hapd, int freq) 912 return hw_get_chan(hapd->iface->current_mode, freq);
|
ieee802_11_auth.c | 89 static int hostapd_acl_cache_get(struct hostapd_data *hapd, const u8 *addr, 101 for (entry = hapd->acl_cache; entry; entry = entry->next) { 147 static int hostapd_radius_acl_query(struct hostapd_data *hapd, const u8 *addr, 153 query->radius_id = radius_client_get_id(hapd->radius); 172 hapd->conf->radius->auth_server->shared_secret, 173 hapd->conf->radius->auth_server->shared_secret_len)) { 178 if (add_common_radius_attr(hapd, hapd->conf->radius_auth_req_attr, 197 if (radius_client_send(hapd->radius, msg, RADIUS_AUTH, addr) < 0) 210 * @hapd: hostapd BSS dat 508 struct hostapd_data *hapd = data; local [all...] |
rrm.c | 27 struct hostapd_data *hapd = eloop_data; local 30 hapd->lci_req_token); 31 hapd->lci_req_active = 0; 35 static void hostapd_handle_lci_report(struct hostapd_data *hapd, u8 token, 38 if (!hapd->lci_req_active || hapd->lci_req_token != token) { 43 hapd->lci_req_active = 0; 44 eloop_cancel_timeout(hostapd_lci_rep_timeout_handler, hapd, NULL); 51 struct hostapd_data *hapd = eloop_data; local 54 hapd->range_req_token) [all...] |
wpa_auth_glue.c | 120 struct hostapd_data *hapd = ctx; local 136 hostapd_logger(hapd, addr, HOSTAPD_MODULE_WPA, hlevel, "%s", txt); 144 struct hostapd_data *hapd = ctx; local 148 ap_sta_disconnect(hapd, NULL, addr, reason); 154 struct hostapd_data *hapd = ctx; local 155 return michael_mic_failure(hapd, addr, 0); 161 struct hostapd_data *hapd = ctx; local 162 wpa_msg(hapd->msg_ctx, MSG_INFO, AP_STA_POSSIBLE_PSK_MISMATCH MACSTR, 170 struct hostapd_data *hapd = ctx; local 171 struct sta_info *sta = ap_get_sta(hapd, addr) 212 struct hostapd_data *hapd = ctx; local 231 struct hostapd_data *hapd = ctx; local 273 struct hostapd_data *hapd = ctx; local 304 struct hostapd_data *hapd = ctx; local 321 struct hostapd_data *hapd = ctx; local 330 struct hostapd_data *hapd = ctx; local 362 struct hostapd_data *hapd = ctx; local 395 struct hostapd_data *hapd = ctx; local 420 struct hostapd_data *hapd; local 452 struct hostapd_data *hapd = ctx; local 514 struct hostapd_data *hapd = ctx; local 544 struct hostapd_data *hapd = ctx; local 572 struct hostapd_data *hapd = ctx; local 590 struct hostapd_data *hapd = ctx; local [all...] |
ap_drv_ops.c | 66 int hostapd_build_ap_extra_ies(struct hostapd_data *hapd, 77 pos = hostapd_eid_time_adv(hapd, pos); 80 pos = hostapd_eid_time_zone(hapd, pos); 85 pos = hostapd_eid_ext_capab(hapd, pos); 88 pos = hostapd_eid_interworking(hapd, pos); 89 pos = hostapd_eid_adv_proto(hapd, pos); 90 pos = hostapd_eid_roaming_consortium(hapd, pos); 96 if (add_buf(&beacon, hapd->iface->fst_ies) < 0 || 97 add_buf(&proberesp, hapd->iface->fst_ies) < 0 || 98 add_buf(&assocresp, hapd->iface->fst_ies) < 0 722 struct hostapd_data *hapd = iface->bss[0]; local 785 struct hostapd_data *hapd = iface->bss[0]; local [all...] |
drv_callbacks.c | 40 int hostapd_notif_assoc(struct hostapd_data *hapd, const u8 *addr, 70 hostapd_logger(hapd, addr, HOSTAPD_MODULE_IEEE80211, 99 sta = ap_get_sta(hapd, addr); 101 ap_sta_no_session_timeout(hapd, sta); 102 accounting_sta_stop(hapd, sta); 110 sta = ap_sta_add(hapd, addr); 112 hostapd_drv_sta_disassoc(hapd, addr, 126 if (hapd->iface->drv_max_acl_mac_addrs == 0 && 127 hostapd_check_acl(hapd, addr, NULL) != HOSTAPD_ACL_ACCEPT) { 147 (hapd->iface->conf->ht_capab 698 struct hostapd_data *hapd = ctx; local 1169 struct hostapd_data *hapd = ctx; local 1380 struct hostapd_data *hapd; local [all...] |
iapp.c | 166 struct hostapd_data *hapd; member in struct:iapp_data 247 hostapd_logger(iapp->hapd, sta->addr, HOSTAPD_MODULE_IAPP, 273 sta = ap_get_sta(iapp->hapd, add->mac_addr); 276 hostapd_logger(iapp->hapd, add->mac_addr, HOSTAPD_MODULE_IAPP, 290 hostapd_logger(iapp->hapd, add->mac_addr, HOSTAPD_MODULE_IAPP, 293 ap_sta_disconnect(iapp->hapd, sta, NULL, 0); 326 hostapd_logger(iapp->hapd, NULL, HOSTAPD_MODULE_IAPP, 337 hostapd_logger(iapp->hapd, NULL, HOSTAPD_MODULE_IAPP, 376 struct iapp_data * iapp_init(struct hostapd_data *hapd, const char *iface) 389 iapp->hapd = hapd [all...] |
sta_info.c | 41 static void ap_sta_remove_in_other_bss(struct hostapd_data *hapd, 50 static int ap_sta_remove(struct hostapd_data *hapd, struct sta_info *sta); 53 int ap_for_each_sta(struct hostapd_data *hapd, 54 int (*cb)(struct hostapd_data *hapd, struct sta_info *sta, 60 for (sta = hapd->sta_list; sta; sta = sta->next) { 61 if (cb(hapd, sta, ctx)) 69 struct sta_info * ap_get_sta(struct hostapd_data *hapd, const u8 *sta) 73 s = hapd->sta_hash[STA_HASH(sta)]; 81 struct sta_info * ap_get_sta_p2p(struct hostapd_data *hapd, const u8 *addr) 85 for (sta = hapd->sta_list; sta; sta = sta->next) 383 struct hostapd_data *hapd = eloop_ctx; local 550 struct hostapd_data *hapd = eloop_ctx; local 610 struct hostapd_data *hapd = eloop_ctx; local 741 struct hostapd_data *hapd = eloop_ctx; local 790 struct hostapd_data *hapd = eloop_ctx; local 1079 struct hostapd_data *hapd = eloop_ctx; local 1364 struct hostapd_data *hapd = eloop_ctx; local [all...] |
vlan_full.c | 49 static void dyn_iface_get(struct hostapd_data *hapd, const char *ifname, 55 interfaces = hapd->iface->interfaces; 86 static int dyn_iface_put(struct hostapd_data *hapd, const char *ifname) 92 interfaces = hapd->iface->interfaces; 362 struct hostapd_data *hapd) 381 dyn_iface_get(hapd, vlan_ifname, clean); 387 static void vlan_bridge_name(char *br_name, struct hostapd_data *hapd, int vid) 389 char *tagged_interface = hapd->conf->ssid.vlan_tagged_interface; 391 if (hapd->conf->vlan_bridge[0]) { 393 hapd->conf->vlan_bridge, vid) 655 struct hostapd_data *hapd = eloop_ctx; local [all...] |
beacon.c | 37 static u8 * hostapd_eid_rm_enabled_capab(struct hostapd_data *hapd, u8 *eid, 43 if (hapd->conf->radio_measurements[i]) 52 os_memcpy(eid, hapd->conf->radio_measurements, RRM_CAPABILITIES_IE_LEN); 58 static u8 * hostapd_eid_bss_load(struct hostapd_data *hapd, u8 *eid, size_t len) 64 if (hapd->conf->bss_load_test_set) { 67 os_memcpy(eid, hapd->conf->bss_load_test, 5); 72 if (hapd->conf->bss_load_update_period) { 75 WPA_PUT_LE16(eid, hapd->num_sta); 77 *eid++ = hapd->iface->channel_utilization; 85 static u8 ieee802_11_erp_info(struct hostapd_data *hapd) 682 struct hostapd_data *hapd = NULL; local [all...] |
gas_serv.c | 30 gas_dialog_create(struct hostapd_data *hapd, const u8 *addr, u8 dialog_token) 36 sta = ap_get_sta(hapd, addr); 44 sta = ap_sta_add(hapd, addr); 56 ap_sta_session_timeout(hapd, sta, 57 hapd->conf->gas_comeback_delay / 1024 + 60 ap_sta_replenish_timeout(hapd, sta, 5); 82 wpa_msg(hapd->msg_ctx, MSG_ERROR, "ANQP: Could not create dialog for " 91 gas_serv_dialog_find(struct hostapd_data *hapd, const u8 *addr, 97 sta = ap_get_sta(hapd, addr); 107 ap_sta_replenish_timeout(hapd, sta, 5) 1515 struct hostapd_data *hapd = ctx; local [all...] |
/external/wpa_supplicant_8/src/drivers/ |
driver_none.c | 16 struct hostapd_data *hapd; member in struct:none_driver_data 21 static void * none_driver_hapd_init(struct hostapd_data *hapd, 32 drv->hapd = hapd;
|
driver_hostap.c | 38 struct hostapd_data *hapd; member in struct:hostap_driver_data 82 wpa_supplicant_event(drv->hapd, EVENT_RX_FROM_UNKNOWN, &event); 109 drv_event_eapol_rx(drv->hapd, sa, pos, left); 136 wpa_supplicant_event(drv->hapd, EVENT_TX_STATUS, &event); 184 wpa_supplicant_event(drv->hapd, EVENT_RX_MGMT, &event); 805 wpa_supplicant_event(drv->hapd, 960 static void * hostap_init(struct hostapd_data *hapd, 971 drv->hapd = hapd;
|
/external/wpa_supplicant_8/wpa_supplicant/ |
mesh_rsn.c | 35 struct hostapd_data *hapd; local 46 hapd = wpa_s->ifmsh->bss[0]; 49 ap_free_sta(hapd, sta); 59 hapd->conf->ap_max_inactivity); 81 struct hostapd_data *hapd = mesh_rsn->wpa_s->ifmsh->bss[0]; local 82 struct sta_info *sta = ap_get_sta(hapd, addr); 123 struct hostapd_data *hapd; local 129 hapd = mesh_rsn->wpa_s->ifmsh->bss[0]; 130 sta = ap_get_sta(hapd, addr); 337 struct hostapd_data *hapd = wpa_s->ifmsh->bss[0] local 631 struct hostapd_data *hapd = wpa_s->ifmsh->bss[0]; local [all...] |
mesh_mpm.c | 111 static int plink_free_count(struct hostapd_data *hapd) 113 if (hapd->max_plinks > hapd->num_plinks) 114 return hapd->max_plinks - hapd->num_plinks; 171 struct hostapd_data *hapd = wpa_s->ifmsh->bss[0]; local 173 for (sta = hapd->sta_list; sta; sta = sta->next) { 409 struct hostapd_data *hapd = wpa_s->ifmsh->bss[0]; local 413 ap_free_sta(hapd, sta); 423 struct hostapd_data *hapd = wpa_s->ifmsh->bss[0] local 505 struct hostapd_data *hapd; local 527 struct hostapd_data *hapd = wpa_s->ifmsh->bss[0]; local 537 struct hostapd_data *hapd; local 584 struct hostapd_data *hapd = ifmsh->bss[0]; local 811 struct hostapd_data *hapd = wpa_s->ifmsh->bss[0]; local 866 struct hostapd_data *hapd = wpa_s->ifmsh->bss[0]; local 1055 struct hostapd_data *hapd = wpa_s->ifmsh->bss[0]; local [all...] |
/external/wpa_supplicant_8/hostapd/ |
main.c | 45 struct hostapd_data *hapd = ctx; local 56 if (hapd && hapd->conf) { 57 conf_syslog_level = hapd->conf->logger_syslog_level; 58 conf_stdout_level = hapd->conf->logger_stdout_level; 59 conf_syslog = hapd->conf->logger_syslog; 60 conf_stdout = hapd->conf->logger_stdout; 93 if (hapd && hapd->conf && addr) 95 hapd->conf->iface, MAC2STR(addr) 157 struct hostapd_data *hapd = iface->bss[0]; local 504 struct hostapd_data *hapd = ctx; local [all...] |