/external/wpa_supplicant_8/src/ap/ |
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); 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, 26 n = os_realloc_array(hapd->probereq_cb, hapd->num_probereq_cb + 1, 31 hapd->probereq_cb = n; 32 n = &hapd->probereq_cb[hapd->num_probereq_cb]; 33 hapd->num_probereq_cb++; 43 struct hostapd_data *hapd; member in struct:prune_data 56 if (ohapd == data->hapd) 70 * @hapd: Pointer to BSS data for the most recent associatio [all...] |
accounting.c | 29 static void accounting_sta_get_id(struct hostapd_data *hapd, 31 static void accounting_sta_interim(struct hostapd_data *hapd, 35 static struct radius_msg * accounting_msg(struct hostapd_data *hapd, 47 radius_client_get_id(hapd->radius)); 64 radius_msg_make_authenticator(msg, (u8 *) hapd, sizeof(*hapd)); 73 if (!hostapd_config_get_radius_attr(hapd->conf->radius_acct_req_attr, 76 hapd->conf->ieee802_1x ? 109 if (add_common_radius_attr(hapd, hapd->conf->radius_acct_req_attr, sta 181 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 | 33 int hostapd_notif_assoc(struct hostapd_data *hapd, const u8 *addr, 62 hostapd_logger(hapd, addr, HOSTAPD_MODULE_IEEE80211, 85 sta = ap_get_sta(hapd, addr); 87 accounting_sta_stop(hapd, sta); 95 sta = ap_sta_add(hapd, addr); 97 hostapd_drv_sta_disassoc(hapd, addr, 112 if (hapd->conf->wpa) { 115 if (hapd->conf->wps_state) { 128 if (hapd->conf->wps_state && ie[0] == 0xdd && ie[1] >= 4 && 147 sta->wpa_sm = wpa_auth_sta_init(hapd->wpa_auth 418 struct hostapd_data *hapd = ctx; local 691 struct hostapd_data *hapd = ctx; 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, 765 int hostapd_hw_get_freq(struct hostapd_data *hapd, int chan) 769 if (!hapd->iface->current_mode) 772 for (i = 0; i < hapd->iface->current_mode->num_channels; i++) { 774 &hapd->iface->current_mode->channels[i]; 783 int hostapd_hw_get_channel(struct hostapd_data *hapd, int freq) 787 if (!hapd->iface->current_mode [all...] |
ieee802_11_auth.c | 77 static int hostapd_acl_cache_get(struct hostapd_data *hapd, const u8 *addr, 88 for (entry = hapd->acl_cache; entry; entry = entry->next) { 136 static int hostapd_radius_acl_query(struct hostapd_data *hapd, const u8 *addr, 142 query->radius_id = radius_client_get_id(hapd->radius); 158 hapd->conf->radius->auth_server->shared_secret, 159 hapd->conf->radius->auth_server->shared_secret_len)) { 164 if (add_common_radius_attr(hapd, hapd->conf->radius_auth_req_attr, 183 if (radius_client_send(hapd->radius, msg, RADIUS_AUTH, addr) < 0) 196 * @hapd: hostapd BSS dat 388 struct hostapd_data *hapd = eloop_ctx; local 414 struct hostapd_data *hapd = data; local [all...] |
sta_info.c | 34 static void ap_sta_remove_in_other_bss(struct hostapd_data *hapd, 42 static int ap_sta_remove(struct hostapd_data *hapd, struct sta_info *sta); 44 int ap_for_each_sta(struct hostapd_data *hapd, 45 int (*cb)(struct hostapd_data *hapd, struct sta_info *sta, 51 for (sta = hapd->sta_list; sta; sta = sta->next) { 52 if (cb(hapd, sta, ctx)) 60 struct sta_info * ap_get_sta(struct hostapd_data *hapd, const u8 *sta) 64 s = hapd->sta_hash[STA_HASH(sta)]; 71 static void ap_sta_list_del(struct hostapd_data *hapd, struct sta_info *sta) 75 if (hapd->sta_list == sta) 275 struct hostapd_data *hapd = eloop_ctx; local 428 struct hostapd_data *hapd = eloop_ctx; local 557 struct hostapd_data *hapd = eloop_ctx; local 595 struct hostapd_data *hapd = eloop_ctx; local 791 struct hostapd_data *hapd = eloop_ctx; local [all...] |
vlan_init.c | 483 static void vlan_newlink(char *ifname, struct hostapd_data *hapd) 487 struct hostapd_vlan *vlan = hapd->conf->vlan; 488 char *tagged_interface = hapd->conf->ssid.vlan_tagged_interface; 489 int vlan_naming = hapd->conf->ssid.vlan_naming; 539 static void vlan_dellink(char *ifname, struct hostapd_data *hapd) 543 struct hostapd_vlan *first, *prev, *vlan = hapd->conf->vlan; 544 char *tagged_interface = hapd->conf->ssid.vlan_tagged_interface; 545 int vlan_naming = hapd->conf->ssid.vlan_naming; 585 hapd->conf->vlan = vlan->next; 601 struct hostapd_data *hapd) 653 struct hostapd_data *hapd = eloop_ctx; local [all...] |
wpa_auth_glue.c | 83 struct hostapd_data *hapd = ctx; local 99 hostapd_logger(hapd, addr, HOSTAPD_MODULE_WPA, hlevel, "%s", txt); 107 struct hostapd_data *hapd = ctx; local 111 ap_sta_disconnect(hapd, NULL, addr, reason); 117 struct hostapd_data *hapd = ctx; local 118 michael_mic_failure(hapd, addr, 0); 125 struct hostapd_data *hapd = ctx; local 126 struct sta_info *sta = ap_get_sta(hapd, addr); 137 ieee802_1x_set_sta_authorized(hapd, sta, value); 167 struct hostapd_data *hapd = ctx local 185 struct hostapd_data *hapd = ctx; local 202 struct hostapd_data *hapd = ctx; local 228 struct hostapd_data *hapd = ctx; local 245 struct hostapd_data *hapd = ctx; local 254 struct hostapd_data *hapd = ctx; local 271 struct hostapd_data *hapd = ctx; local 304 struct hostapd_data *hapd = ctx; local 329 struct hostapd_data *hapd; local 359 struct hostapd_data *hapd = ctx; local 406 struct hostapd_data *hapd = ctx; local 436 struct hostapd_data *hapd = ctx; local 464 struct hostapd_data *hapd = ctx; local 479 struct hostapd_data *hapd = ctx; local [all...] |
hostapd.c | 37 static int hostapd_flush_old_stations(struct hostapd_data *hapd, u16 reason); 38 static int hostapd_setup_encryption(char *iface, struct hostapd_data *hapd); 39 static int hostapd_broadcast_wep_clear(struct hostapd_data *hapd); 62 static void hostapd_reload_bss(struct hostapd_data *hapd) 65 radius_client_reconfig(hapd->radius, hapd->conf->radius); 68 if (hostapd_setup_wpa_psk(hapd->conf)) { 73 if (hapd->conf->ieee802_1x || hapd->conf->wpa) 74 hostapd_set_drv_ieee8021x(hapd, hapd->conf->iface, 1) 113 struct hostapd_data *hapd = iface->bss[0]; local 419 struct hostapd_data *hapd = iface->bss[0]; local 579 struct hostapd_data *hapd = ctx; local 802 struct hostapd_data *hapd = iface->bss[0]; local 821 struct hostapd_data *hapd = iface->bss[0]; local 871 struct hostapd_data *hapd = iface->bss[0]; local 1008 struct hostapd_data *hapd; local 1034 struct hostapd_data *hapd = iface->bss[j]; local 1127 struct hostapd_data *hapd = hapd_iface->bss[j]; local 1221 struct hostapd_data *hapd; 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...] |
gas_serv.c | 23 gas_dialog_create(struct hostapd_data *hapd, const u8 *addr, u8 dialog_token) 29 sta = ap_get_sta(hapd, addr); 37 sta = ap_sta_add(hapd, addr); 48 ap_sta_session_timeout(hapd, sta, 5); 71 wpa_msg(hapd->msg_ctx, MSG_ERROR, "ANQP: Could not create dialog for " 80 gas_serv_dialog_find(struct hostapd_data *hapd, const u8 *addr, 86 sta = ap_get_sta(hapd, addr); 111 static void gas_serv_free_dialogs(struct hostapd_data *hapd, 117 sta = ap_get_sta(hapd, sta_addr); 132 static void anqp_add_hs_capab_list(struct hostapd_data *hapd, 1134 struct hostapd_data *hapd = ctx; local [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) 1352 struct hostapd_data *hapd = data; local 1579 struct hostapd_data *hapd = eloop_ctx; local 1659 struct hostapd_data *hapd = ctx; local 1670 struct hostapd_data *hapd = ctx; local 1683 struct hostapd_data *hapd = ctx; local 1717 struct hostapd_data *hapd = ctx; local 1730 struct hostapd_data *hapd = ctx; local 1755 struct hostapd_data *hapd = ctx; local 1763 struct hostapd_data *hapd = ctx; local 1771 struct hostapd_data *hapd = ctx; local [all...] |
wps_hostapd.c | 35 static int hostapd_wps_upnp_init(struct hostapd_data *hapd, 37 static void hostapd_wps_upnp_deinit(struct hostapd_data *hapd); 61 struct hostapd_data *hapd = iface->bss[j]; local 62 int ret = data->func(hapd, data->ctx); 71 static int hostapd_wps_for_each(struct hostapd_data *hapd, 75 struct hostapd_iface *iface = hapd->iface; 90 struct hostapd_data *hapd = ctx; local 92 struct hostapd_ssid *ssid = &hapd->conf->ssid; 137 struct hostapd_data *hapd = ctx; local 138 wpabuf_free(hapd->wps_beacon_ie) 151 struct hostapd_data *hapd = ctx; local 208 struct hostapd_data *hapd = ctx; local 233 struct hostapd_data *hapd = ctx; local 519 struct hostapd_data *hapd = ctx; local 526 struct hostapd_data *hapd = eloop_data; local 648 struct hostapd_data *hapd = ctx; local 710 struct hostapd_data *hapd = iface->bss[j]; local 1217 struct hostapd_data *hapd = ctx; local 1277 struct hostapd_data *hapd = priv; local 1375 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_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 | 75 struct hostapd_data *hapd; /* back pointer */ member in struct:madwifi_driver_data 325 hostapd_logger(drv->hapd, NULL, HOSTAPD_MODULE_DRIVER, 330 hostapd_logger(drv->hapd, NULL, HOSTAPD_MODULE_DRIVER, 336 hostapd_logger(drv->hapd, NULL, HOSTAPD_MODULE_DRIVER, 734 wpa_supplicant_event(drv->hapd, EVENT_RX_PROBE_REQ, &event); 822 struct hostapd_data *hapd = drv->hapd; local 863 drv_event_assoc(hapd, addr, iebuf, ielen, 0); 894 wpa_supplicant_event(drv->hapd, 962 drv_event_disassoc(drv->hapd, [all...] |
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); 802 drv_event_assoc(drv->hapd, mgmt->sa, iebuf, ielen, 0); 809 drv_event_assoc(drv->hapd, mgmt->sa, iebuf, ielen, 1); 821 wpa_supplicant_event(drv->hapd, EVENT_RX_ACTION, &event); 837 wpa_supplicant_event(drv->hapd, EVENT_AUTH, &event); 873 wpa_supplicant_event(drv->hapd, EVENT_RX_MGMT, &event) 1141 struct hostapd_data *hapd = drv->hapd; local [all...] |
driver_bsd.c | 51 struct hostapd_data *hapd; /* back pointer */ member in struct:bsd_driver_data 769 drv_event_disassoc(drv->hapd, leave->iev_addr); 776 bsd_new_sta(drv, drv->hapd, join->iev_addr); 790 wpa_supplicant_event(drv->hapd, 803 drv_event_eapol_rx(drv->hapd, src_addr, buf, len); 807 bsd_init(struct hostapd_data *hapd, struct wpa_init_params *params) 817 drv->hapd = hapd; [all...] |
/external/wpa_supplicant_8/hostapd/ |
main.c | 50 struct hostapd_data *hapd = ctx; local 61 if (hapd && hapd->conf) { 62 conf_syslog_level = hapd->conf->logger_syslog_level; 63 conf_stdout_level = hapd->conf->logger_stdout_level; 64 conf_syslog = hapd->conf->logger_syslog; 65 conf_stdout = hapd->conf->logger_stdout; 98 if (hapd && hapd->conf && addr) 100 hapd->conf->iface, MAC2STR(addr) 162 struct hostapd_data *hapd; local 211 struct hostapd_data *hapd = iface->bss[0]; local 505 struct hostapd_data *hapd = ctx; local [all...] |
ctrl_iface.c | 47 static void hostapd_ctrl_iface_send(struct hostapd_data *hapd, int level, 51 static int hostapd_ctrl_iface_attach(struct hostapd_data *hapd, 63 dst->next = hapd->ctrl_dst; 64 hapd->ctrl_dst = dst; 72 static int hostapd_ctrl_iface_detach(struct hostapd_data *hapd, 78 dst = hapd->ctrl_dst; 85 hapd->ctrl_dst = dst->next; 102 static int hostapd_ctrl_iface_level(struct hostapd_data *hapd, 111 dst = hapd->ctrl_dst; 130 static int hostapd_ctrl_iface_new_sta(struct hostapd_data *hapd, 801 struct hostapd_data *hapd = eloop_ctx; local 997 struct hostapd_data *hapd = ctx; local [all...] |
/external/wpa_supplicant_8/wpa_supplicant/ |
ap.c | 759 struct hostapd_data *hapd; local 763 hapd = wpa_s->ap_iface->bss[0]; 765 hapd->ap_pin_failures = 0; 775 struct hostapd_data *hapd; local 780 hapd = wpa_s->ap_iface->bss[0]; 781 os_free(hapd->conf->ap_pin); 782 hapd->conf->ap_pin = NULL; 789 struct hostapd_data *hapd; local 795 hapd = wpa_s->ap_iface->bss[0]; 798 os_free(hapd->conf->ap_pin) 810 struct hostapd_data *hapd; local 821 struct hostapd_data *hapd; local 843 struct hostapd_data *hapd; local 955 struct hostapd_data *hapd; local 994 struct hostapd_data *hapd; local [all...] |