| /src/external/bsd/wpa/dist/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...] |
| bss_load.c | 19 static int get_bss_load_update_timeout(struct hostapd_data *hapd, 22 unsigned int update_period = hapd->conf->bss_load_update_period; 23 unsigned int beacon_int = hapd->iconf->beacon_int; 44 struct hostapd_data *hapd = eloop_data; local 47 struct hostapd_iface *iface = hapd->iface; 49 if (!(hapd->beacon_set_done && hapd->started)) 52 err = hostapd_drv_get_survey(hapd, hapd->iface->freq); 58 ieee802_11_set_beacon_per_bss_only(hapd); [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 58 if (ohapd == data->hapd) 67 data->hapd->iface->fst & [all...] |
| authsrv.c | 30 static int hostapd_sim_db_cb_sta(struct hostapd_data *hapd, 41 struct hostapd_data *hapd = ctx; local 42 if (ap_for_each_sta(hapd, hostapd_sim_db_cb_sta, session_ctx) == 0) { 44 radius_server_eap_pending_cb(hapd->radius_srv, session_ctx); 105 static int hostapd_setup_radius_srv(struct hostapd_data *hapd) 108 struct hostapd_bss_config *conf = hapd->conf; 111 if (!hostapd_mld_is_first_bss(hapd)) { 117 first = hostapd_mld_get_first_bss(hapd); 120 hapd->radius_srv = first->radius_srv; 129 srv.conf_ctx = hapd; [all...] |
| dhcp_snoop.c | 35 struct hostapd_data *hapd = ctx; local 92 if (hapd->conf->disable_dgaf && is_broadcast_ether_addr(buf)) { 93 for (sta = hapd->sta_list; sta; sta = sta->next) { 96 x_snoop_mcast_to_ucast_convert_send(hapd, sta, 107 sta = ap_get_sta(hapd, b->hw_addr); 124 hostapd_drv_br_delete_ip_neigh(hapd, 4, 128 res = hostapd_drv_br_add_ip_neigh(hapd, 4, (u8 *) &b->your_ip, 141 int dhcp_snoop_init(struct hostapd_data *hapd) 143 hapd->sock_dhcp = x_snoop_get_l2_packet(hapd, handle_dhcp [all...] |
| nan_usd_ap.c | 24 struct hostapd_data *hapd = ctx; local 32 return hostapd_drv_send_action(hapd, hapd->iface->freq, 0, dst, 51 struct hostapd_data *hapd = ctx; local 59 wpa_msg(hapd->msg_ctx, MSG_INFO, NAN_DISCOVERY_RESULT 74 struct hostapd_data *hapd = ctx; local 82 wpa_msg(hapd->msg_ctx, MSG_INFO, NAN_REPLIED 109 struct hostapd_data *hapd = ctx; local 111 wpa_msg(hapd->msg_ctx, MSG_INFO, NAN_PUBLISH_TERMINATED 120 struct hostapd_data *hapd = ctx local 132 struct hostapd_data *hapd = 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 (!ether_addr_equal(ethhdr->h_dest, hapd->own_addr)) { 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, 100 if (sta && add_sqlite_radius_attr(hapd, sta, msg, 1) < 0) 170 static int accounting_sta_update_stats(struct hostapd_data *hapd, 174 if (hostapd_drv_read_sta_data(hapd, data, sta->addr) 203 struct hostapd_data *hapd = eloop_ctx; local 462 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); 86 static void ucast_to_stas(struct hostapd_data *hapd, const u8 *buf, size_t len) 90 for (sta = hapd->sta_list; sta; sta = sta->next) { 93 x_snoop_mcast_to_ucast_convert_send(hapd, sta, (u8 *) buf, len); 101 struct hostapd_data *hapd = ctx; local 127 sta = ap_get_sta(hapd, msg->opt_lladdr); 139 hostapd_drv_br_delete_ip_neigh(hapd, 6, (u8 *) &saddr); 140 res = hostapd_drv_br_add_ip_neigh(hapd, 6, 156 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...] |
| ieee802_11_auth.c | 78 static int hostapd_acl_cache_get(struct hostapd_data *hapd, const u8 *addr, 86 for (entry = hapd->acl_cache; entry; entry = entry->next) { 115 static int hostapd_radius_acl_query(struct hostapd_data *hapd, const u8 *addr, 121 query->radius_id = radius_client_get_id(hapd->radius); 143 hapd->conf->radius->auth_server->shared_secret, 144 hapd->conf->radius->auth_server->shared_secret_len)) { 149 if (add_common_radius_attr(hapd, hapd->conf->radius_auth_req_attr, 193 if (radius_client_send(hapd->radius, msg, RADIUS_AUTH, addr) < 0) 206 * @hapd: hostapd BSS dat 490 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) 340 struct hostapd_data *hapd = eloop_data; local [all...] |
| wpa_auth_kay.c | 27 struct hostapd_data *hapd = priv; local 29 if (!hapd->driver->macsec_init) 31 return hapd->driver->macsec_init(hapd->drv_priv, params); 37 struct hostapd_data *hapd = priv; local 39 if (!hapd->driver->macsec_deinit) 41 return hapd->driver->macsec_deinit(hapd->drv_priv); 47 struct hostapd_data *hapd = priv; local 49 if (!hapd->driver->macsec_get_capability 57 struct hostapd_data *hapd = priv; local 67 struct hostapd_data *hapd = priv; local 77 struct hostapd_data *hapd = priv; local 88 struct hostapd_data *hapd = priv; local 98 struct hostapd_data *hapd = priv; local 108 struct hostapd_data *hapd = priv; local 118 struct hostapd_data *hapd = priv; local 128 struct hostapd_data *hapd = priv; local 153 struct hostapd_data *hapd = priv; local 164 struct hostapd_data *hapd = priv; local 174 struct hostapd_data *hapd = priv; local 184 struct hostapd_data *hapd = priv; local 194 struct hostapd_data *hapd = priv; local 204 struct hostapd_data *hapd = priv; local 216 struct hostapd_data *hapd = priv; local 227 struct hostapd_data *hapd = priv; local 237 struct hostapd_data *hapd = priv; local 247 struct hostapd_data *hapd = priv; local 257 struct hostapd_data *hapd = priv; local 267 struct hostapd_data *hapd = priv; local [all...] |
| gas_query_ap.c | 64 struct hostapd_data *hapd; member in struct:gas_query_ap 91 * @hapd: Pointer to hostapd data 94 struct gas_query_ap * gas_query_ap_init(struct hostapd_data *hapd, 103 gas->hapd = hapd; 251 static int pmf_in_use(struct hostapd_data *hapd, const u8 *addr) 255 sta = ap_get_sta(hapd, addr); 264 int res, prot = pmf_in_use(gas->hapd, query->addr); 275 res = hostapd_drv_send_action(gas->hapd, query->freq, wait_time, 490 pmf = pmf_in_use(gas->hapd, sa) [all...] |
| vlan_full.c | 50 static void dyn_iface_get(struct hostapd_data *hapd, const char *ifname, 56 interfaces = hapd->iface->interfaces; 87 static int dyn_iface_put(struct hostapd_data *hapd, const char *ifname) 93 interfaces = hapd->iface->interfaces; 389 struct hostapd_data *hapd) 414 dyn_iface_get(hapd, vlan_ifname, clean); 420 static void vlan_bridge_name(char *br_name, struct hostapd_data *hapd, 423 char *tagged_interface = hapd->conf->ssid.vlan_tagged_interface; 429 } else if (hapd->conf->vlan_bridge[0]) { 431 hapd->conf->vlan_bridge, vid) 704 struct hostapd_data *hapd = eloop_ctx; local [all...] |
| wnm_ap.c | 28 static int ieee80211_11_get_tfs_ie(struct hostapd_data *hapd, const u8 *addr, 33 return hostapd_drv_wnm_oper(hapd, oper, addr, buf, buf_len); 38 static int ieee80211_11_set_tfs_ie(struct hostapd_data *hapd, const u8 *addr, 43 return hostapd_drv_wnm_oper(hapd, oper, addr, buf, buf_len); 47 static const u8 * wnm_ap_get_own_addr(struct hostapd_data *hapd, 50 const u8 *own_addr = hapd->own_addr; 53 if (hapd->conf->mld_ap && (!sta || ap_sta_is_mld(hapd, sta))) 54 own_addr = hapd->mld->mld_addr; 62 static int ieee802_11_send_wnmsleep_resp(struct hostapd_data *hapd, 487 struct hostapd_data *hapd = eloop_ctx; local [all...] |
| ap_drv_ops.c | 68 int hostapd_build_ap_extra_ies(struct hostapd_data *hapd, 80 pos = hostapd_eid_rm_enabled_capab(hapd, pos, sizeof(buf)); 87 pos = hostapd_eid_time_adv(hapd, pos); 90 pos = hostapd_eid_time_zone(hapd, pos); 95 pos = hostapd_eid_ext_capab(hapd, pos, false); 98 pos = hostapd_eid_interworking(hapd, pos); 99 pos = hostapd_eid_adv_proto(hapd, pos); 100 pos = hostapd_eid_roaming_consortium(hapd, pos); 106 if (add_buf(&beacon, hapd->iface->fst_ies) < 0 || 107 add_buf(&proberesp, hapd->iface->fst_ies) < 0 | 992 struct hostapd_data *hapd = iface->bss[0]; local 1091 struct hostapd_data *hapd = iface->bss[0]; local 1105 struct hostapd_data *hapd = iface->bss[0]; local [all...] |
| hw_features.c | 77 struct hostapd_data *hapd = iface->bss[0]; local 86 if (hostapd_drv_none(hapd)) 88 modes = hostapd_get_hw_feature_data(hapd, &num_modes, &flags, 91 hostapd_logger(hapd, NULL, HOSTAPD_MODULE_IEEE80211, 119 int dfs_enabled = hapd->iconf->ieee80211h && 1344 int hostapd_hw_get_freq(struct hostapd_data *hapd, int chan) 1346 return hw_get_freq(hapd->iface->current_mode, chan); 1350 int hostapd_hw_get_channel(struct hostapd_data *hapd, int freq) 1355 if (hapd->iface->current_mode) { 1356 channel = hw_get_chan(hapd->iface->current_mode->mode, freq [all...] |
| wpa_auth_glue.c | 238 struct hostapd_data *hapd = ctx; local 254 hostapd_logger(hapd, addr, HOSTAPD_MODULE_WPA, hlevel, "%s", txt); 262 struct hostapd_data *hapd = ctx; local 266 ap_sta_disconnect(hapd, NULL, addr, reason); 272 struct hostapd_data *hapd = ctx; local 273 return michael_mic_failure(hapd, addr, 0); 279 struct hostapd_data *hapd = ctx; local 280 wpa_msg(hapd->msg_ctx, MSG_INFO, AP_STA_POSSIBLE_PSK_MISMATCH MACSTR, 288 struct hostapd_data *hapd = ctx; local 289 struct sta_info *sta = ap_get_sta(hapd, addr) 329 struct hostapd_data *hapd = ctx; local 349 struct hostapd_data *hapd = ctx; local 430 struct hostapd_data *hapd = ctx; local 461 struct hostapd_data *hapd = ctx; local 523 struct hostapd_data *hapd = ctx; local 539 struct hostapd_data *hapd = ctx; local 580 struct hostapd_data *hapd = ctx; local 590 struct hostapd_data *hapd = ctx; local 623 struct hostapd_data *hapd = ctx; local 646 struct hostapd_data *hapd = eloop_ctx; local 674 struct hostapd_data *hapd; local 726 struct hostapd_data *hapd = ctx; local 816 struct hostapd_data *hapd = eloop_ctx; local 853 struct hostapd_data *hapd, *src_hapd = idata->src_hapd; local 922 struct hostapd_data *hapd = ctx; local 961 struct hostapd_data *hapd = ctx; local 972 struct hostapd_data *hapd = ctx; local 981 struct hostapd_data *hapd = ctx; local 992 struct hostapd_data *hapd = ctx; local 1039 struct hostapd_data *hapd = ctx; local 1060 struct hostapd_data *hapd = ctx; local 1090 struct hostapd_data *hapd = ctx; local 1133 struct hostapd_data *hapd = ctx; local 1162 struct hostapd_data *hapd = ctx; local 1203 struct hostapd_data *hapd = ctx; local 1228 struct hostapd_data *hapd = ctx; local 1268 struct hostapd_data *hapd = ctx; local 1298 struct hostapd_data *hapd = ctx; local 1336 struct hostapd_data *hapd = ctx; local 1369 struct hostapd_data *hapd = ctx; local 1390 struct hostapd_data *hapd = ctx; local 1413 struct hostapd_data *hapd = ctx; local 1432 struct hostapd_data *hapd = ctx; local 1447 struct hostapd_data *hapd = ctx; local 1511 struct hostapd_data *hapd = ctx; local 1528 struct hostapd_data *hapd = ctx; local 1543 struct hostapd_data *hapd = ctx; local 1595 struct hostapd_data *hapd = ctx; local [all...] |
| /src/external/bsd/wpa/dist/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); 814 wpa_supplicant_event(drv->hapd, 969 static void * hostap_init(struct hostapd_data *hapd, 980 drv->hapd = hapd;
|
| /src/external/bsd/wpa/dist/wpa_supplicant/ |
| mesh.c | 369 struct hostapd_data *hapd = ifmsh->bss[j]; local 371 hostapd_bss_deinit_no_free(hapd); 372 hostapd_free_hapd_data(hapd);
|
| 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); 82 struct hostapd_data *hapd = mesh_rsn->wpa_s->ifmsh->bss[0]; local 83 struct sta_info *sta = ap_get_sta(hapd, addr); 129 struct hostapd_data *hapd; local 135 hapd = mesh_rsn->wpa_s->ifmsh->bss[0]; 136 sta = ap_get_sta(hapd, addr); 150 struct hostapd_data *hapd; local 373 struct hostapd_data *hapd = wpa_s->ifmsh->bss[0]; local 664 struct hostapd_data *hapd = wpa_s->ifmsh->bss[0]; local [all...] |
| mesh_mpm.c | 114 static int plink_free_count(struct hostapd_data *hapd) 116 if (hapd->max_plinks > hapd->num_plinks) 117 return hapd->max_plinks - hapd->num_plinks; 174 struct hostapd_data *hapd = wpa_s->ifmsh->bss[0]; local 176 for (sta = hapd->sta_list; sta; sta = sta->next) { 484 struct hostapd_data *hapd = wpa_s->ifmsh->bss[0]; local 488 ap_free_sta(hapd, sta); 498 struct hostapd_data *hapd = wpa_s->ifmsh->bss[0] local 586 struct hostapd_data *hapd; local 608 struct hostapd_data *hapd = wpa_s->ifmsh->bss[0]; local 618 struct hostapd_data *hapd; local 665 struct hostapd_data *hapd = ifmsh->bss[0]; local 911 struct hostapd_data *hapd = wpa_s->ifmsh->bss[0]; local 969 struct hostapd_data *hapd = wpa_s->ifmsh->bss[0]; local 1158 struct hostapd_data *hapd = wpa_s->ifmsh->bss[0]; local [all...] |
| /src/external/bsd/wpa/dist/hostapd/ |
| main.c | 48 struct hostapd_data *hapd = ctx; local 59 if (hapd && hapd->conf) { 60 conf_syslog_level = hapd->conf->logger_syslog_level; 61 conf_stdout_level = hapd->conf->logger_stdout_level; 62 conf_syslog = hapd->conf->logger_syslog; 63 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 606 struct hostapd_data *hapd = ctx; local [all...] |