/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); 91 static int hostapd_setup_radius_srv(struct hostapd_data *hapd) 94 struct hostapd_bss_config *conf = hapd->conf; 99 srv.conf_ctx = hapd; 100 srv.eap_sim_db_priv = hapd->eap_sim_db_priv; 101 srv.ssl_ctx = hapd->ssl_ctx; 102 srv.msg_ctx = hapd->msg_ctx [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 | 28 static void accounting_sta_interim(struct hostapd_data *hapd, 32 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)); 70 if (!hostapd_config_get_radius_attr(hapd->conf->radius_acct_req_attr, 73 hapd->conf->ieee802_1x ? 106 if (add_common_radius_attr(hapd, hapd->conf->radius_acct_req_attr, sta, 151 static int accounting_sta_update_stats(struct hostapd_data *hapd, 178 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 | 37 int hostapd_notif_assoc(struct hostapd_data *hapd, const u8 *addr, 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->conf->wpa) 551 struct hostapd_data *hapd = ctx; local 947 struct hostapd_data *hapd = ctx; local [all...] |
ieee802_11_auth.c | 100 static int hostapd_acl_cache_get(struct hostapd_data *hapd, const u8 *addr, 111 for (entry = hapd->acl_cache; entry; entry = entry->next) { 157 static int hostapd_radius_acl_query(struct hostapd_data *hapd, const u8 *addr, 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: hostapd BSS dat 407 struct hostapd_data *hapd = eloop_ctx; local 481 struct hostapd_data *hapd = data; local [all...] |
vlan_init.c | 477 static void vlan_newlink(char *ifname, struct hostapd_data *hapd) 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) 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->conf->ssid.vlan_naming 667 struct hostapd_data *hapd = eloop_ctx; local [all...] |
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 = ctx 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 [all...] |
ap_drv_ops.c | 39 int hostapd_build_ap_extra_ies(struct hostapd_data *hapd, 50 pos = hostapd_eid_time_adv(hapd, pos); 56 pos = hostapd_eid_time_zone(hapd, pos); 64 pos = hostapd_eid_ext_capab(hapd, pos); 70 pos = hostapd_eid_interworking(hapd, pos); 71 pos = hostapd_eid_adv_proto(hapd, pos); 72 pos = hostapd_eid_roaming_consortium(hapd, pos); 83 if (hapd->wps_beacon_ie) { 84 if (wpabuf_resize(&beacon, wpabuf_len(hapd->wps_beacon_ie)) < 87 wpabuf_put_buf(beacon, hapd->wps_beacon_ie) 755 struct hostapd_data *hapd = iface->bss[0]; local [all...] |
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) 392 iapp->hapd = hapd [all...] |
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, 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) 67 s = hapd->sta_hash[STA_HASH(sta)]; 75 struct sta_info * ap_get_sta_p2p(struct hostapd_data *hapd, const u8 *addr) 79 for (sta = hapd->sta_list; sta; sta = sta->next) 318 struct hostapd_data *hapd = eloop_ctx; local 477 struct hostapd_data *hapd = eloop_ctx; local 535 struct hostapd_data *hapd = eloop_ctx; local 647 struct hostapd_data *hapd = eloop_ctx; local 685 struct hostapd_data *hapd = eloop_ctx; local 885 struct hostapd_data *hapd = eloop_ctx; 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); 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, 94 sta = ap_get_sta(hapd, addr); 119 static void gas_serv_free_dialogs(struct hostapd_data *hapd, 125 sta = ap_get_sta(hapd, sta_addr) 1214 struct hostapd_data *hapd = ctx; local [all...] |
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) 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, int freq [all...] |
ieee802_11.c | 44 u8 * hostapd_eid_supp_rates(struct hostapd_data *hapd, u8 *eid) 49 if (hapd->iface->current_rates == NULL) 53 num = hapd->iface->num_rates; 54 if (hapd->iconf->ieee80211n && hapd->iconf->require_ht) 56 if (hapd->iconf->ieee80211ac && hapd->iconf->require_vht) 65 for (i = 0, count = 0; i < hapd->iface->num_rates && count < num; 68 *pos = hapd->iface->current_rates[i].rate / 5; 69 if (hapd->iface->current_rates[i].flags & HOSTAPD_RATE_BASIC 304 struct hostapd_data *hapd = ctx; local [all...] |
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) 69 radius_client_reconfig(hapd->radius, hapd->conf->radius); 72 ssid = &hapd->conf->ssid; 82 if (hostapd_setup_wpa_psk(hapd->conf)) { 87 if (hapd->conf->ieee802_1x || hapd->conf->wpa 149 struct hostapd_data *hapd = iface->bss[0]; local 467 struct hostapd_data *hapd = iface->bss[0]; local 654 struct hostapd_data *hapd = ctx; local 899 struct hostapd_data *hapd = iface->bss[0]; local 999 struct hostapd_data *hapd = iface->bss[i]; local 1043 struct hostapd_data *hapd = iface->bss[0]; local 1165 struct hostapd_data *hapd = iface->bss[0]; local 1344 struct hostapd_data *hapd; local 1419 struct hostapd_data *hapd; local 1475 struct hostapd_data *hapd = iface->bss[j]; local 1501 struct hostapd_data *hapd; local 1728 struct hostapd_data *hapd = hapd_iface->bss[j]; local 1816 struct hostapd_data *hapd; local 1844 struct hostapd_data *hapd; local 2000 struct hostapd_data *hapd = iface->bss[idx]; local [all...] |
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, 60 xhdr->version = hapd->conf->eapol_version; 70 rsn_preauth_send(hapd, sta, buf, len); 73 hapd, sta->addr, buf, len, 81 void ieee802_1x_set_sta_authorized(struct hostapd_data *hapd, 90 ap_sta_set_authorized(hapd, sta, 1); 91 res = hostapd_set_authorized(hapd, sta, 1); 92 hostapd_logger(hapd, sta->addr, HOSTAPD_MODULE_IEEE8021X, 95 ap_sta_set_authorized(hapd, sta, 0) 1528 struct hostapd_data *hapd = data; local 1757 struct hostapd_data *hapd = eloop_ctx; local 1837 struct hostapd_data *hapd = ctx; local 1848 struct hostapd_data *hapd = ctx; local 1861 struct hostapd_data *hapd = ctx; local 1896 struct hostapd_data *hapd = ctx; local 1909 struct hostapd_data *hapd = ctx; local 1934 struct hostapd_data *hapd = ctx; local 1942 struct hostapd_data *hapd = ctx; local 1950 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); 61 struct hostapd_data *hapd = iface->bss[j]; local 64 if (hapd != data->calling_hapd && 65 (hapd->conf->wps_independent || 69 ret = data->func(hapd, data->ctx); 78 static int hostapd_wps_for_each(struct hostapd_data *hapd, 82 struct hostapd_iface *iface = hapd->iface; 86 data.calling_hapd = hapd; 99 struct hostapd_data *hapd = ctx local 160 struct hostapd_data *hapd = ctx; local 174 struct hostapd_data *hapd = ctx; local 231 struct hostapd_data *hapd = ctx; local 256 struct hostapd_data *hapd = ctx; local 617 struct hostapd_data *hapd = ctx; local 624 struct hostapd_data *hapd = eloop_data; local 790 struct hostapd_data *hapd = ctx; local 845 struct hostapd_data *hapd = ctx; local 875 struct hostapd_data *hapd = iface->bss[j]; local 1329 struct hostapd_data *hapd = ctx; local 1389 struct hostapd_data *hapd = priv; local 1497 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 | 74 struct hostapd_data *hapd; /* back pointer */ member in struct:madwifi_driver_data 730 wpa_supplicant_event(drv->hapd, EVENT_RX_PROBE_REQ, &event); 818 struct hostapd_data *hapd = drv->hapd; local 859 drv_event_assoc(hapd, addr, iebuf, ielen, 0); 890 wpa_supplicant_event(drv->hapd, 958 drv_event_disassoc(drv->hapd, 1121 drv_event_eapol_rx(drv->hapd, src_addr, buf + sizeof(struct l2_ethhdr), 1126 madwifi_init(struct hostapd_data *hapd, struct wpa_init_params *params) 1139 drv->hapd = hapd [all...] |
driver_atheros.c | 60 struct hostapd_data *hapd; /* back pointer */ member in struct:atheros_driver_data 799 wpa_supplicant_event(drv->hapd, EVENT_RX_PROBE_REQ, &event); 840 drv_event_assoc(drv->hapd, mgmt->sa, iebuf, ielen, 0); 847 drv_event_assoc(drv->hapd, mgmt->sa, iebuf, ielen, 1); 853 wpa_supplicant_event(drv->hapd, EVENT_RX_MGMT, &event); 869 wpa_supplicant_event(drv->hapd, EVENT_AUTH, &event); 905 wpa_supplicant_event(drv->hapd, EVENT_RX_MGMT, &event); 995 wpa_supplicant_event(drv->hapd, EVENT_RX_MGMT, &event); 1216 struct hostapd_data *hapd = drv->hapd; local [all...] |
/external/wpa_supplicant_8/hostapd/ |
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->conf->iface, MAC2STR(addr) 153 struct hostapd_data *hapd = iface->bss[0]; local 469 struct hostapd_data *hapd = ctx; local [all...] |
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, 67 dst->next = hapd->ctrl_dst; 68 hapd->ctrl_dst = dst; 76 static int hostapd_ctrl_iface_detach(struct hostapd_data *hapd, 82 dst = hapd->ctrl_dst; 93 hapd->ctrl_dst = dst->next; 106 static int hostapd_ctrl_iface_level(struct hostapd_data *hapd, 115 dst = hapd->ctrl_dst; 134 static int hostapd_ctrl_iface_new_sta(struct hostapd_data *hapd, 1356 struct hostapd_data *hapd = eloop_ctx; local 1600 struct hostapd_data *hapd = ctx; local [all...] |
/external/wpa_supplicant_8/wpa_supplicant/ |
ap.c | 823 struct hostapd_data *hapd; local 827 hapd = wpa_s->ap_iface->bss[0]; 829 hapd->ap_pin_failures = 0; 839 struct hostapd_data *hapd; local 844 hapd = wpa_s->ap_iface->bss[0]; 845 os_free(hapd->conf->ap_pin); 846 hapd->conf->ap_pin = NULL; 853 struct hostapd_data *hapd; local 859 hapd = wpa_s->ap_iface->bss[0]; 862 os_free(hapd->conf->ap_pin) 874 struct hostapd_data *hapd; local 885 struct hostapd_data *hapd; local 907 struct hostapd_data *hapd; local 935 struct hostapd_data *hapd; local 947 struct hostapd_data *hapd; local 960 struct hostapd_data *hapd; local 1060 struct hostapd_data *hapd; local 1125 struct hostapd_data *hapd; local 1167 struct hostapd_data *hapd; local [all...] |