HomeSort by relevance Sort by last modified time
    Searched defs:hapd (Results 1 - 25 of 27) sorted by null

1 2

  /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;
95 srv.conf_ctx = hapd;
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
    [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_interim(struct hostapd_data *hapd,
33 static struct radius_msg * accounting_msg(struct hostapd_data *hapd,
45 radius_client_get_id(hapd->radius));
62 radius_msg_make_authenticator(msg, (u8 *) hapd, sizeof(*hapd));
71 if (!hostapd_config_get_radius_attr(hapd->conf->radius_acct_req_attr,
74 hapd->conf->ieee802_1x ?
107 if (add_common_radius_attr(hapd, hapd->conf->radius_acct_req_attr, sta,
152 static int accounting_sta_update_stats(struct hostapd_data *hapd,
179 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 34 int hostapd_notif_assoc(struct hostapd_data *hapd, const u8 *addr,
64 hostapd_logger(hapd, addr, HOSTAPD_MODULE_IEEE80211,
87 sta = ap_get_sta(hapd, addr);
89 ap_sta_no_session_timeout(hapd, sta);
90 accounting_sta_stop(hapd, sta);
98 sta = ap_sta_add(hapd, addr);
100 hostapd_drv_sta_disassoc(hapd, addr,
126 if (hapd->conf->wpa) {
129 if (hapd->conf->wps_state) {
142 if (hapd->conf->wps_state && ie[0] == 0xdd && ie[1] >= 4 &
449 struct hostapd_data *hapd = ctx; local
791 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) {
156 static int hostapd_radius_acl_query(struct hostapd_data *hapd, const u8 *addr,
162 query->radius_id = radius_client_get_id(hapd->radius);
178 hapd->conf->radius->auth_server->shared_secret,
179 hapd->conf->radius->auth_server->shared_secret_len)) {
184 if (add_common_radius_attr(hapd, hapd->conf->radius_auth_req_attr,
203 if (radius_client_send(hapd->radius, msg, RADIUS_AUTH, addr) < 0)
216 * @hapd: hostapd BSS dat
405 struct hostapd_data *hapd = eloop_ctx; local
479 struct hostapd_data *hapd = data; local
    [all...]
sta_info.c 36 static void ap_sta_remove_in_other_bss(struct hostapd_data *hapd,
44 static int ap_sta_remove(struct hostapd_data *hapd, struct sta_info *sta);
46 int ap_for_each_sta(struct hostapd_data *hapd,
47 int (*cb)(struct hostapd_data *hapd, struct sta_info *sta,
53 for (sta = hapd->sta_list; sta; sta = sta->next) {
54 if (cb(hapd, sta, ctx))
62 struct sta_info * ap_get_sta(struct hostapd_data *hapd, const u8 *sta)
66 s = hapd->sta_hash[STA_HASH(sta)];
74 struct sta_info * ap_get_sta_p2p(struct hostapd_data *hapd, const u8 *addr)
78 for (sta = hapd->sta_list; sta; sta = sta->next)
307 struct hostapd_data *hapd = eloop_ctx; local
466 struct hostapd_data *hapd = eloop_ctx; local
596 struct hostapd_data *hapd = eloop_ctx; local
634 struct hostapd_data *hapd = eloop_ctx; local
834 struct hostapd_data *hapd = eloop_ctx; local
    [all...]
wpa_auth_glue.c 89 struct hostapd_data *hapd = ctx; local
105 hostapd_logger(hapd, addr, HOSTAPD_MODULE_WPA, hlevel, "%s", txt);
113 struct hostapd_data *hapd = ctx; local
117 ap_sta_disconnect(hapd, NULL, addr, reason);
123 struct hostapd_data *hapd = ctx; local
124 return michael_mic_failure(hapd, addr, 0);
131 struct hostapd_data *hapd = ctx; local
132 struct sta_info *sta = ap_get_sta(hapd, addr);
143 ieee802_1x_set_sta_authorized(hapd, sta, value);
173 struct hostapd_data *hapd = ctx local
192 struct hostapd_data *hapd = ctx; local
227 struct hostapd_data *hapd = ctx; local
253 struct hostapd_data *hapd = ctx; local
270 struct hostapd_data *hapd = ctx; local
279 struct hostapd_data *hapd = ctx; local
296 struct hostapd_data *hapd = ctx; local
329 struct hostapd_data *hapd = ctx; local
354 struct hostapd_data *hapd; local
384 struct hostapd_data *hapd = ctx; local
431 struct hostapd_data *hapd = ctx; local
461 struct hostapd_data *hapd = ctx; local
489 struct hostapd_data *hapd = ctx; local
504 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)
135 struct hostapd_data *hapd = iface->bss[0]; local
416 struct hostapd_data *hapd = iface->bss[0]; local
576 struct hostapd_data *hapd = ctx; local
800 struct hostapd_data *hapd = iface->bss[0]; local
887 struct hostapd_data *hapd = iface->bss[0]; local
941 struct hostapd_data *hapd = iface->bss[0]; local
1084 struct hostapd_data *hapd; local
1110 struct hostapd_data *hapd = iface->bss[j]; local
1204 struct hostapd_data *hapd = hapd_iface->bss[j]; local
1298 struct hostapd_data *hapd; local
    [all...]
hw_features.c 50 struct hostapd_data *hapd = iface->bss[0]; local
55 if (hostapd_drv_none(hapd))
57 modes = hostapd_get_hw_feature_data(hapd, &num_modes, &flags);
59 hostapd_logger(hapd, NULL, HOSTAPD_MODULE_IEEE80211,
818 int hostapd_hw_get_freq(struct hostapd_data *hapd, int chan)
822 if (!hapd->iface->current_mode)
825 for (i = 0; i < hapd->iface->current_mode->num_channels; i++) {
827 &hapd->iface->current_mode->channels[i];
836 int hostapd_hw_get_channel(struct hostapd_data *hapd, int freq)
840 if (!hapd->iface->current_mode
    [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...]
vlan_init.c 492 int create, struct hostapd_data *hapd)
496 struct hapd_interfaces *hapd_global = hapd->iface->interfaces;
545 struct hostapd_data *hapd)
549 struct hapd_interfaces *hapd_glob = hapd->iface->interfaces;
600 static void vlan_newlink(char *ifname, struct hostapd_data *hapd)
604 struct hostapd_vlan *vlan = hapd->conf->vlan;
605 char *tagged_interface = hapd->conf->ssid.vlan_tagged_interface;
606 int vlan_naming = hapd->conf->ssid.vlan_naming;
614 if (hapd->conf->vlan_bridge[0]) {
616 hapd->conf->vlan_bridge
806 struct hostapd_data *hapd = eloop_ctx; local
    [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 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)
66 for (i = 0, count = 0; i < hapd->iface->num_rates && count < num;
69 *pos = hapd->iface->current_rates[i].rate / 5;
70 if (hapd->iface->current_rates[i].flags & HOSTAPD_RATE_BASIC
300 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);
70 hapd, sta->addr, buf, len,
78 void ieee802_1x_set_sta_authorized(struct hostapd_data *hapd,
87 ap_sta_set_authorized(hapd, sta, 1);
88 res = hostapd_set_authorized(hapd, sta, 1);
89 hostapd_logger(hapd, sta->addr, HOSTAPD_MODULE_IEEE8021X,
92 ap_sta_set_authorized(hapd, sta, 0)
1252 struct hostapd_data *hapd = data; local
1478 struct hostapd_data *hapd = eloop_ctx; local
1558 struct hostapd_data *hapd = ctx; local
1569 struct hostapd_data *hapd = ctx; local
1582 struct hostapd_data *hapd = ctx; local
1615 struct hostapd_data *hapd = ctx; local
1628 struct hostapd_data *hapd = ctx; local
1653 struct hostapd_data *hapd = ctx; local
1661 struct hostapd_data *hapd = ctx; local
1669 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);
60 struct hostapd_data *hapd = iface->bss[j]; local
63 if (hapd != data->calling_hapd &&
64 (hapd->conf->wps_independent ||
68 ret = data->func(hapd, data->ctx);
77 static int hostapd_wps_for_each(struct hostapd_data *hapd,
81 struct hostapd_iface *iface = hapd->iface;
85 data.calling_hapd = hapd;
98 struct hostapd_data *hapd = ctx local
159 struct hostapd_data *hapd = ctx; local
173 struct hostapd_data *hapd = ctx; local
230 struct hostapd_data *hapd = ctx; local
255 struct hostapd_data *hapd = ctx; local
649 struct hostapd_data *hapd = ctx; local
656 struct hostapd_data *hapd = eloop_data; local
822 struct hostapd_data *hapd = ctx; local
877 struct hostapd_data *hapd = ctx; local
904 struct hostapd_data *hapd = iface->bss[j]; local
1361 struct hostapd_data *hapd = ctx; local
1421 struct hostapd_data *hapd = priv; local
1519 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)
1139 struct hostapd_data *hapd = drv->hapd; local
    [all...]
driver_bsd.c 51 struct hostapd_data *hapd; /* back pointer */ member in struct:bsd_driver_data
820 drv_event_disassoc(drv->hapd, leave->iev_addr);
827 bsd_new_sta(drv, drv->hapd, join->iev_addr);
841 wpa_supplicant_event(drv->hapd,
854 drv_event_eapol_rx(drv->hapd, src_addr, buf, len);
858 bsd_init(struct hostapd_data *hapd, struct wpa_init_params *params)
868 drv->hapd = hapd;
    [all...]
  /external/wpa_supplicant_8/hostapd/
main.c 51 struct hostapd_data *hapd = ctx; local
62 if (hapd && hapd->conf) {
63 conf_syslog_level = hapd->conf->logger_syslog_level;
64 conf_stdout_level = hapd->conf->logger_stdout_level;
65 conf_syslog = hapd->conf->logger_syslog;
66 conf_stdout = hapd->conf->logger_stdout;
99 if (hapd && hapd->conf && addr)
101 hapd->conf->iface, MAC2STR(addr)
163 struct hostapd_data *hapd; local
214 struct hostapd_data *hapd = iface->bss[0]; local
519 struct hostapd_data *hapd = ctx; local
    [all...]
ctrl_iface.c 48 static void hostapd_ctrl_iface_send(struct hostapd_data *hapd, int level,
52 static int hostapd_ctrl_iface_attach(struct hostapd_data *hapd,
64 dst->next = hapd->ctrl_dst;
65 hapd->ctrl_dst = dst;
73 static int hostapd_ctrl_iface_detach(struct hostapd_data *hapd,
79 dst = hapd->ctrl_dst;
86 hapd->ctrl_dst = dst->next;
103 static int hostapd_ctrl_iface_level(struct hostapd_data *hapd,
112 dst = hapd->ctrl_dst;
131 static int hostapd_ctrl_iface_new_sta(struct hostapd_data *hapd,
955 struct hostapd_data *hapd = eloop_ctx; local
1160 struct hostapd_data *hapd = ctx; local
    [all...]
  /external/wpa_supplicant_8/wpa_supplicant/
ap.c 780 struct hostapd_data *hapd; local
784 hapd = wpa_s->ap_iface->bss[0];
786 hapd->ap_pin_failures = 0;
796 struct hostapd_data *hapd; local
801 hapd = wpa_s->ap_iface->bss[0];
802 os_free(hapd->conf->ap_pin);
803 hapd->conf->ap_pin = NULL;
810 struct hostapd_data *hapd; local
816 hapd = wpa_s->ap_iface->bss[0];
819 os_free(hapd->conf->ap_pin)
831 struct hostapd_data *hapd; local
842 struct hostapd_data *hapd; local
864 struct hostapd_data *hapd; local
892 struct hostapd_data *hapd; local
904 struct hostapd_data *hapd; local
1004 struct hostapd_data *hapd; local
1043 struct hostapd_data *hapd; local
    [all...]

Completed in 1052 milliseconds

1 2