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,
63 hostapd_logger(hapd, addr, HOSTAPD_MODULE_IEEE80211,
86 sta = ap_get_sta(hapd, addr);
88 accounting_sta_stop(hapd, sta);
96 sta = ap_sta_add(hapd, addr);
98 hostapd_drv_sta_disassoc(hapd, addr,
122 if (hapd->conf->wpa) {
125 if (hapd->conf->wps_state) {
138 if (hapd->conf->wps_state && ie[0] == 0xdd && ie[1] >= 4 &&
157 sta->wpa_sm = wpa_auth_sta_init(hapd->wpa_auth
444 struct hostapd_data *hapd = ctx; local
720 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,
768 int hostapd_hw_get_freq(struct hostapd_data *hapd, int chan)
772 if (!hapd->iface->current_mode)
775 for (i = 0; i < hapd->iface->current_mode->num_channels; i++) {
777 &hapd->iface->current_mode->channels[i];
786 int hostapd_hw_get_channel(struct hostapd_data *hapd, int freq)
790 if (!hapd->iface->current_mode
    [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)];
73 static void ap_sta_list_del(struct hostapd_data *hapd, struct sta_info *sta)
77 if (hapd->sta_list == sta)
283 struct hostapd_data *hapd = eloop_ctx; local
436 struct hostapd_data *hapd = eloop_ctx; local
566 struct hostapd_data *hapd = eloop_ctx; local
604 struct hostapd_data *hapd = eloop_ctx; local
800 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 84 struct hostapd_data *hapd = ctx; local
100 hostapd_logger(hapd, addr, HOSTAPD_MODULE_WPA, hlevel, "%s", txt);
108 struct hostapd_data *hapd = ctx; local
112 ap_sta_disconnect(hapd, NULL, addr, reason);
118 struct hostapd_data *hapd = ctx; local
119 return michael_mic_failure(hapd, addr, 0);
126 struct hostapd_data *hapd = ctx; local
127 struct sta_info *sta = ap_get_sta(hapd, addr);
138 ieee802_1x_set_sta_authorized(hapd, sta, value);
168 struct hostapd_data *hapd = ctx local
186 struct hostapd_data *hapd = ctx; local
221 struct hostapd_data *hapd = ctx; local
247 struct hostapd_data *hapd = ctx; local
264 struct hostapd_data *hapd = ctx; local
273 struct hostapd_data *hapd = ctx; local
290 struct hostapd_data *hapd = ctx; local
323 struct hostapd_data *hapd = ctx; local
348 struct hostapd_data *hapd; local
378 struct hostapd_data *hapd = ctx; local
425 struct hostapd_data *hapd = ctx; local
455 struct hostapd_data *hapd = ctx; local
483 struct hostapd_data *hapd = ctx; local
498 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
440 struct hostapd_data *hapd = iface->bss[0]; local
600 struct hostapd_data *hapd = ctx; local
823 struct hostapd_data *hapd = iface->bss[0]; local
842 struct hostapd_data *hapd = iface->bss[0]; local
892 struct hostapd_data *hapd = iface->bss[0]; local
1033 struct hostapd_data *hapd; local
1059 struct hostapd_data *hapd = iface->bss[j]; local
1153 struct hostapd_data *hapd = hapd_iface->bss[j]; local
1247 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 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)
1367 struct hostapd_data *hapd = data; local
1594 struct hostapd_data *hapd = eloop_ctx; local
1674 struct hostapd_data *hapd = ctx; local
1685 struct hostapd_data *hapd = ctx; local
1698 struct hostapd_data *hapd = ctx; local
1731 struct hostapd_data *hapd = ctx; local
1744 struct hostapd_data *hapd = ctx; local
1769 struct hostapd_data *hapd = ctx; local
1777 struct hostapd_data *hapd = ctx; local
1785 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;
97 struct hostapd_data *hapd = ctx local
144 struct hostapd_data *hapd = ctx; local
158 struct hostapd_data *hapd = ctx; local
215 struct hostapd_data *hapd = ctx; local
240 struct hostapd_data *hapd = ctx; local
634 struct hostapd_data *hapd = ctx; local
641 struct hostapd_data *hapd = eloop_data; local
763 struct hostapd_data *hapd = ctx; local
825 struct hostapd_data *hapd = iface->bss[j]; local
1280 struct hostapd_data *hapd = ctx; local
1340 struct hostapd_data *hapd = priv; local
1438 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
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 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
212 struct hostapd_data *hapd = iface->bss[0]; local
511 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,
839 struct hostapd_data *hapd = eloop_ctx; local
1041 struct hostapd_data *hapd = ctx; local
    [all...]
  /external/wpa_supplicant_8/wpa_supplicant/
ap.c 760 struct hostapd_data *hapd; local
764 hapd = wpa_s->ap_iface->bss[0];
766 hapd->ap_pin_failures = 0;
776 struct hostapd_data *hapd; local
781 hapd = wpa_s->ap_iface->bss[0];
782 os_free(hapd->conf->ap_pin);
783 hapd->conf->ap_pin = NULL;
790 struct hostapd_data *hapd; local
796 hapd = wpa_s->ap_iface->bss[0];
799 os_free(hapd->conf->ap_pin)
811 struct hostapd_data *hapd; local
822 struct hostapd_data *hapd; local
844 struct hostapd_data *hapd; local
872 struct hostapd_data *hapd; local
884 struct hostapd_data *hapd; local
984 struct hostapd_data *hapd; local
1023 struct hostapd_data *hapd; local
    [all...]

Completed in 1101 milliseconds

1 2