/external/wpa_supplicant_8/src/ap/ |
tkip_countermeasures.c | 25 struct hostapd_data *hapd = eloop_ctx; local 26 hapd->tkip_countermeasures = 0; 27 hostapd_drv_set_countermeasures(hapd, 0); 28 hostapd_logger(hapd, NULL, HOSTAPD_MODULE_IEEE80211, 33 static void ieee80211_tkip_countermeasures_start(struct hostapd_data *hapd) 37 hostapd_logger(hapd, NULL, HOSTAPD_MODULE_IEEE80211, 40 wpa_auth_countermeasures_start(hapd->wpa_auth); 41 hapd->tkip_countermeasures = 1; 42 hostapd_drv_set_countermeasures(hapd, 1); 43 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); 88 static int hostapd_setup_radius_srv(struct hostapd_data *hapd) 91 struct hostapd_bss_config *conf = hapd->conf; 96 srv.eap_sim_db_priv = hapd->eap_sim_db_priv; 97 srv.ssl_ctx = hapd->ssl_ctx; 98 srv.msg_ctx = hapd->msg_ctx; 108 srv.wps = hapd->wps [all...] |
utils.c | 17 int hostapd_register_probereq_cb(struct hostapd_data *hapd, 25 n = os_realloc(hapd->probereq_cb, (hapd->num_probereq_cb + 1) * 30 hapd->probereq_cb = n; 31 n = &hapd->probereq_cb[hapd->num_probereq_cb]; 32 hapd->num_probereq_cb++; 42 struct hostapd_data *hapd; member in struct:prune_data 55 if (ohapd == data->hapd) 69 * @hapd: Pointer to BSS data for the most recent associatio [all...] |
accounting.c | 29 static void accounting_sta_get_id(struct hostapd_data *hapd, 33 static struct radius_msg * accounting_msg(struct hostapd_data *hapd, 44 radius_client_get_id(hapd->radius)); 61 radius_msg_make_authenticator(msg, (u8 *) hapd, sizeof(*hapd)); 71 hapd->conf->ieee802_1x ? 94 if (hapd->conf->own_ip_addr.af == AF_INET && 96 (u8 *) &hapd->conf->own_ip_addr.u.v4, 4)) { 102 if (hapd->conf->own_ip_addr.af == AF_INET6 && 104 (u8 *) &hapd->conf->own_ip_addr.u.v6, 16)) 207 struct hostapd_data *hapd = eloop_ctx; local [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...] |
drv_callbacks.c | 31 int hostapd_notif_assoc(struct hostapd_data *hapd, const u8 *addr, 55 hostapd_logger(hapd, addr, HOSTAPD_MODULE_IEEE80211, 78 sta = ap_get_sta(hapd, addr); 80 accounting_sta_stop(hapd, sta); 82 sta = ap_sta_add(hapd, addr); 96 if (hapd->conf->wpa) { 99 if (hapd->conf->wps_state) { 112 if (hapd->conf->wps_state && ie[0] == 0xdd && ie[1] >= 4 && 131 sta->wpa_sm = wpa_auth_sta_init(hapd->wpa_auth, 138 res = wpa_validate_wpa_ie(hapd->wpa_auth, sta->wpa_sm 465 struct hostapd_data *hapd = ctx; local [all...] |
ieee802_11_auth.c | 66 static int hostapd_acl_cache_get(struct hostapd_data *hapd, const u8 *addr, 75 entry = hapd->acl_cache; 115 static int hostapd_radius_acl_query(struct hostapd_data *hapd, const u8 *addr, 121 query->radius_id = radius_client_get_id(hapd->radius); 137 hapd->conf->radius->auth_server->shared_secret, 138 hapd->conf->radius->auth_server->shared_secret_len)) { 143 if (hapd->conf->own_ip_addr.af == AF_INET && 145 (u8 *) &hapd->conf->own_ip_addr.u.v4, 4)) { 151 if (hapd->conf->own_ip_addr.af == AF_INET6 && 153 (u8 *) &hapd->conf->own_ip_addr.u.v6, 16)) 381 struct hostapd_data *hapd = eloop_ctx; local 407 struct hostapd_data *hapd = data; local [all...] |
hostapd.c | 35 static int hostapd_flush_old_stations(struct hostapd_data *hapd); 36 static int hostapd_setup_encryption(char *iface, struct hostapd_data *hapd); 37 static int hostapd_broadcast_wep_clear(struct hostapd_data *hapd); 42 static void hostapd_reload_bss(struct hostapd_data *hapd) 45 radius_client_reconfig(hapd->radius, hapd->conf->radius); 48 if (hostapd_setup_wpa_psk(hapd->conf)) { 53 if (hapd->conf->ieee802_1x || hapd->conf->wpa) 54 hostapd_set_drv_ieee8021x(hapd, hapd->conf->iface, 1) 93 struct hostapd_data *hapd = iface->bss[0]; local 369 struct hostapd_data *hapd = iface->bss[0]; local 643 struct hostapd_data *hapd = iface->bss[0]; local 662 struct hostapd_data *hapd = iface->bss[0]; local 712 struct hostapd_data *hapd = iface->bss[0]; local 849 struct hostapd_data *hapd; local 874 struct hostapd_data *hapd = iface->bss[j]; local [all...] |
hw_features.c | 49 struct hostapd_data *hapd = iface->bss[0]; local 54 if (hostapd_drv_none(hapd)) 56 modes = hostapd_get_hw_feature_data(hapd, &num_modes, &flags); 58 hostapd_logger(hapd, NULL, HOSTAPD_MODULE_IEEE80211, 720 int hostapd_hw_get_freq(struct hostapd_data *hapd, int chan) 724 if (!hapd->iface->current_mode) 727 for (i = 0; i < hapd->iface->current_mode->num_channels; i++) { 729 &hapd->iface->current_mode->channels[i]; 738 int hostapd_hw_get_channel(struct hostapd_data *hapd, int freq) 742 if (!hapd->iface->current_mode [all...] |
sta_info.c | 33 static void ap_sta_remove_in_other_bss(struct hostapd_data *hapd, 41 static int ap_sta_remove(struct hostapd_data *hapd, struct sta_info *sta); 43 int ap_for_each_sta(struct hostapd_data *hapd, 44 int (*cb)(struct hostapd_data *hapd, struct sta_info *sta, 50 for (sta = hapd->sta_list; sta; sta = sta->next) { 51 if (cb(hapd, sta, ctx)) 59 struct sta_info * ap_get_sta(struct hostapd_data *hapd, const u8 *sta) 63 s = hapd->sta_hash[STA_HASH(sta)]; 70 static void ap_sta_list_del(struct hostapd_data *hapd, struct sta_info *sta) 74 if (hapd->sta_list == sta) 261 struct hostapd_data *hapd = eloop_ctx; local 396 struct hostapd_data *hapd = eloop_ctx; local 515 struct hostapd_data *hapd = eloop_ctx; local 548 struct hostapd_data *hapd = eloop_ctx; local 722 struct hostapd_data *hapd = eloop_ctx; local [all...] |
vlan_init.c | 478 static void vlan_newlink(char *ifname, struct hostapd_data *hapd) 482 struct hostapd_vlan *vlan = hapd->conf->vlan; 483 char *tagged_interface = hapd->conf->ssid.vlan_tagged_interface; 524 static void vlan_dellink(char *ifname, struct hostapd_data *hapd) 528 struct hostapd_vlan *first, *prev, *vlan = hapd->conf->vlan; 529 char *tagged_interface = hapd->conf->ssid.vlan_tagged_interface; 561 hapd->conf->vlan = vlan->next; 577 struct hostapd_data *hapd) 612 vlan_dellink(ifname, hapd); 614 vlan_newlink(ifname, hapd); 629 struct hostapd_data *hapd = eloop_ctx; local [all...] |
wpa_auth_glue.c | 80 struct hostapd_data *hapd = ctx; local 96 hostapd_logger(hapd, addr, HOSTAPD_MODULE_WPA, hlevel, "%s", txt); 104 struct hostapd_data *hapd = ctx; local 108 ap_sta_disconnect(hapd, NULL, addr, reason); 114 struct hostapd_data *hapd = ctx; local 115 michael_mic_failure(hapd, addr, 0); 122 struct hostapd_data *hapd = ctx; local 123 struct sta_info *sta = ap_get_sta(hapd, addr); 134 ieee802_1x_set_sta_authorized(hapd, sta, value); 164 struct hostapd_data *hapd = ctx local 182 struct hostapd_data *hapd = ctx; local 193 struct hostapd_data *hapd = ctx; local 219 struct hostapd_data *hapd = ctx; local 236 struct hostapd_data *hapd = ctx; local 245 struct hostapd_data *hapd = ctx; local 262 struct hostapd_data *hapd = ctx; local 295 struct hostapd_data *hapd = ctx; local 319 struct hostapd_data *hapd; local 349 struct hostapd_data *hapd = ctx; local 395 struct hostapd_data *hapd = ctx; local 425 struct hostapd_data *hapd = ctx; local 450 struct hostapd_data *hapd = ctx; local [all...] |
iapp.c | 170 struct hostapd_data *hapd; member in struct:iapp_data 255 hostapd_logger(iapp->hapd, sta->addr, HOSTAPD_MODULE_IAPP, 284 sta = ap_get_sta(iapp->hapd, add->mac_addr); 287 hostapd_logger(iapp->hapd, add->mac_addr, HOSTAPD_MODULE_IAPP, 301 hostapd_logger(iapp->hapd, add->mac_addr, HOSTAPD_MODULE_IAPP, 304 ap_sta_disconnect(iapp->hapd, sta, NULL, 0); 336 hostapd_logger(iapp->hapd, NULL, HOSTAPD_MODULE_IAPP, 347 hostapd_logger(iapp->hapd, NULL, HOSTAPD_MODULE_IAPP, 385 struct iapp_data * iapp_init(struct hostapd_data *hapd, const char *iface) 397 iapp->hapd = hapd [all...] |
ieee802_11.c | 40 u8 * hostapd_eid_supp_rates(struct hostapd_data *hapd, u8 *eid) 45 if (hapd->iface->current_rates == NULL) 49 num = hapd->iface->num_rates; 50 if (hapd->iconf->ieee80211n && hapd->iconf->require_ht) 60 for (i = 0, count = 0; i < hapd->iface->num_rates && count < num; 63 *pos = hapd->iface->current_rates[i].rate / 5; 64 if (hapd->iface->current_rates[i].flags & HOSTAPD_RATE_BASIC) 69 if (hapd->iconf->ieee80211n && hapd->iconf->require_ht & 278 struct hostapd_data *hapd = ctx; local [all...] |
ieee802_1x.c | 35 static void ieee802_1x_finished(struct hostapd_data *hapd, 39 static void ieee802_1x_send(struct hostapd_data *hapd, struct sta_info *sta, 57 xhdr->version = hapd->conf->eapol_version; 67 rsn_preauth_send(hapd, sta, buf, len); 69 hostapd_drv_hapd_send_eapol(hapd, sta->addr, buf, len, 77 void ieee802_1x_set_sta_authorized(struct hostapd_data *hapd, 86 ap_sta_set_authorized(hapd, sta, 1); 87 res = hostapd_set_authorized(hapd, sta, 1); 88 hostapd_logger(hapd, sta->addr, HOSTAPD_MODULE_IEEE8021X, 91 ap_sta_set_authorized(hapd, sta, 0) 1239 struct hostapd_data *hapd = data; local 1465 struct hostapd_data *hapd = eloop_ctx; local 1545 struct hostapd_data *hapd = ctx; local 1556 struct hostapd_data *hapd = ctx; local 1569 struct hostapd_data *hapd = ctx; local 1603 struct hostapd_data *hapd = ctx; local 1616 struct hostapd_data *hapd = ctx; local 1641 struct hostapd_data *hapd = ctx; local 1649 struct hostapd_data *hapd = ctx; local 1657 struct hostapd_data *hapd = ctx; local [all...] |
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); 58 struct hostapd_data *hapd = iface->bss[j]; local 59 int ret = data->func(hapd, data->ctx); 68 static int hostapd_wps_for_each(struct hostapd_data *hapd, 72 struct hostapd_iface *iface = hapd->iface; 86 struct hostapd_data *hapd = ctx; local 88 struct hostapd_ssid *ssid = &hapd->conf->ssid; 133 struct hostapd_data *hapd = ctx; local 134 wpabuf_free(hapd->wps_beacon_ie) 147 struct hostapd_data *hapd = ctx; local 200 struct hostapd_data *hapd = ctx; local 223 struct hostapd_data *hapd = ctx; local 498 struct hostapd_data *hapd = ctx; local 505 struct hostapd_data *hapd = eloop_data; local 627 struct hostapd_data *hapd = ctx; local 689 struct hostapd_data *hapd = iface->bss[j]; local 1159 struct hostapd_data *hapd = ctx; local 1219 struct hostapd_data *hapd = priv; local 1317 struct hostapd_data *hapd = eloop_data; 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_atheros.c | 60 struct hostapd_data *hapd; /* back pointer */ member in struct:atheros_driver_data 357 hostapd_logger(drv->hapd, NULL, HOSTAPD_MODULE_DRIVER, 362 hostapd_logger(drv->hapd, NULL, HOSTAPD_MODULE_DRIVER, 368 hostapd_logger(drv->hapd, NULL, HOSTAPD_MODULE_DRIVER, 761 wpa_supplicant_event(drv->hapd, EVENT_RX_PROBE_REQ, &event); 858 struct hostapd_data *hapd = drv->hapd; local 915 drv_event_assoc(hapd, addr, iebuf, ielen, 0); 946 wpa_supplicant_event(drv->hapd, 982 wpa_supplicant_event(drv->hapd, EVENT_WPS_BUTTON_PUSHED, NULL) [all...] |
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); 193 wpa_supplicant_event(drv->hapd, EVENT_RX_MGMT, &event); 807 wpa_supplicant_event(drv->hapd, 961 static void * hostap_init(struct hostapd_data *hapd, 972 drv->hapd = hapd;
|
driver_madwifi.c | 81 struct hostapd_data *hapd; /* back pointer */ member in struct:madwifi_driver_data 331 hostapd_logger(drv->hapd, NULL, HOSTAPD_MODULE_DRIVER, 336 hostapd_logger(drv->hapd, NULL, HOSTAPD_MODULE_DRIVER, 342 hostapd_logger(drv->hapd, NULL, HOSTAPD_MODULE_DRIVER, 740 wpa_supplicant_event(drv->hapd, EVENT_RX_PROBE_REQ, &event); 828 struct hostapd_data *hapd = drv->hapd; local 869 drv_event_assoc(hapd, addr, iebuf, ielen, 0); 900 wpa_supplicant_event(drv->hapd, 968 drv_event_disassoc(drv->hapd, [all...] |
driver_bsd.c | 57 struct hostapd_data *hapd; /* back pointer */ member in struct:bsd_driver_data 775 drv_event_disassoc(drv->hapd, leave->iev_addr); 782 bsd_new_sta(drv, drv->hapd, join->iev_addr); 796 wpa_supplicant_event(drv->hapd, 809 drv_event_eapol_rx(drv->hapd, src_addr, buf, len); 813 bsd_init(struct hostapd_data *hapd, struct wpa_init_params *params) 823 drv->hapd = hapd; [all...] |
/external/wpa_supplicant_8/hostapd/ |
main.c | 72 struct hostapd_data *hapd = ctx; local 83 if (hapd && hapd->conf) { 84 conf_syslog_level = hapd->conf->logger_syslog_level; 85 conf_stdout_level = hapd->conf->logger_stdout_level; 86 conf_syslog = hapd->conf->logger_syslog; 87 conf_stdout = hapd->conf->logger_stdout; 120 if (hapd && hapd->conf && addr) 122 hapd->conf->iface, MAC2STR(addr) 184 struct hostapd_data *hapd; local 238 struct hostapd_data *hapd = iface->bss[0]; local 542 struct hostapd_data *hapd = ctx; local [all...] |
ctrl_iface.c | 46 static void hostapd_ctrl_iface_send(struct hostapd_data *hapd, int level, 50 static int hostapd_ctrl_iface_attach(struct hostapd_data *hapd, 62 dst->next = hapd->ctrl_dst; 63 hapd->ctrl_dst = dst; 71 static int hostapd_ctrl_iface_detach(struct hostapd_data *hapd, 77 dst = hapd->ctrl_dst; 84 hapd->ctrl_dst = dst->next; 101 static int hostapd_ctrl_iface_level(struct hostapd_data *hapd, 110 dst = hapd->ctrl_dst; 129 static int hostapd_ctrl_iface_new_sta(struct hostapd_data *hapd, 805 struct hostapd_data *hapd = eloop_ctx; local 978 struct hostapd_data *hapd = ctx; local [all...] |
/external/wpa_supplicant_8/wpa_supplicant/ |
ap.c | 654 static int wpa_supplicant_ap_wps_sta_cancel(struct hostapd_data *hapd, 658 ap_sta_deauthenticate(hapd, sta, 732 struct hostapd_data *hapd; local 736 hapd = wpa_s->ap_iface->bss[0]; 738 hapd->ap_pin_failures = 0; 748 struct hostapd_data *hapd; local 753 hapd = wpa_s->ap_iface->bss[0]; 754 os_free(hapd->conf->ap_pin); 755 hapd->conf->ap_pin = NULL; 762 struct hostapd_data *hapd; local 783 struct hostapd_data *hapd; local 794 struct hostapd_data *hapd; local 816 struct hostapd_data *hapd; local 908 struct hostapd_data *hapd; local 936 struct hostapd_data *hapd; local [all...] |
/external/wpa_supplicant_8/wpa_supplicant/dbus/ |
dbus_new_handlers_p2p.c | 1805 struct hostapd_data *hapd = NULL; local 1911 struct hostapd_data *hapd = NULL; local [all...] |