Searched defs:hapd (Results 51 - 75 of 145) sorted by relevance

123456

/external/wpa_supplicant_8/src/ap/
H A Deap_user_db.c133 eap_user_sqlite_get(struct hostapd_data *hapd, const u8 *identity, argument
161 bin_clear_free(hapd->tmp_eap_user.identity,
162 hapd->tmp_eap_user.identity_len);
163 bin_clear_free(hapd->tmp_eap_user.password,
164 hapd->tmp_eap_user.password_len);
165 os_memset(&hapd->tmp_eap_user, 0, sizeof(hapd->tmp_eap_user));
166 hapd->tmp_eap_user.phase2 = phase2;
167 hapd->tmp_eap_user.identity = os_zalloc(identity_len + 1);
168 if (hapd
216 hostapd_get_eap_user(struct hostapd_data *hapd, const u8 *identity, size_t identity_len, int phase2) argument
[all...]
H A Daccounting.c28 static void accounting_sta_interim(struct hostapd_data *hapd,
32 static struct radius_msg * accounting_msg(struct hostapd_data *hapd, argument
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, argument
178 struct hostapd_data *hapd = eloop_ctx; local
201 accounting_sta_start(struct hostapd_data *hapd, struct sta_info *sta) argument
238 accounting_sta_report(struct hostapd_data *hapd, struct sta_info *sta, int stop) argument
349 accounting_sta_interim(struct hostapd_data *hapd, struct sta_info *sta) argument
362 accounting_sta_stop(struct hostapd_data *hapd, struct sta_info *sta) argument
377 accounting_sta_get_id(struct hostapd_data *hapd, struct sta_info *sta) argument
416 accounting_report_state(struct hostapd_data *hapd, int on) argument
449 accounting_init(struct hostapd_data *hapd) argument
472 accounting_deinit(struct hostapd_data *hapd) argument
[all...]
H A Dctrl_iface_ap.c25 static int hostapd_get_sta_tx_rx(struct hostapd_data *hapd, argument
32 if (hostapd_drv_read_sta_data(hapd, &data, sta->addr) < 0)
83 static int hostapd_ctrl_iface_sta_mib(struct hostapd_data *hapd, argument
126 res = ieee802_11_get_mib_sta(hapd, sta, buf + len, buflen - len);
132 res = ieee802_1x_get_mib_sta(hapd, sta, buf + len, buflen - len);
135 res = hostapd_wps_get_mib_sta(hapd, sta->addr, buf + len,
139 res = hostapd_p2p_get_mib_sta(hapd, sta, buf + len, buflen - len);
143 len += hostapd_get_sta_tx_rx(hapd, sta, buf + len, buflen - len);
150 int hostapd_ctrl_iface_sta_first(struct hostapd_data *hapd, argument
153 return hostapd_ctrl_iface_sta_mib(hapd, hap
157 hostapd_ctrl_iface_sta(struct hostapd_data *hapd, const char *txtaddr, char *buf, size_t buflen) argument
196 hostapd_ctrl_iface_sta_next(struct hostapd_data *hapd, const char *txtaddr, char *buf, size_t buflen) argument
219 p2p_manager_disconnect(struct hostapd_data *hapd, u16 stype, u8 minor_reason_code, const u8 *addr) argument
271 hostapd_ctrl_iface_deauthenticate(struct hostapd_data *hapd, const char *txtaddr) argument
331 hostapd_ctrl_iface_disassociate(struct hostapd_data *hapd, const char *txtaddr) argument
391 hostapd_ctrl_iface_status(struct hostapd_data *hapd, char *buf, size_t buflen) argument
[all...]
H A Dieee802_11_shared.c22 u8 * hostapd_eid_assoc_comeback_time(struct hostapd_data *hapd, argument
35 if (hapd->conf->assoc_sa_query_max_timeout > tu)
36 timeout = hapd->conf->assoc_sa_query_max_timeout - tu;
39 if (timeout < hapd->conf->assoc_sa_query_max_timeout)
49 void ieee802_11_send_sa_query_req(struct hostapd_data *hapd, argument
64 os_memcpy(mgmt.sa, hapd->own_addr, ETH_ALEN);
65 os_memcpy(mgmt.bssid, hapd->own_addr, ETH_ALEN);
71 if (hostapd_drv_send_mlme(hapd, &mgmt, end - (u8 *) &mgmt, 0) < 0)
76 static void ieee802_11_send_sa_query_resp(struct hostapd_data *hapd, argument
88 sta = ap_get_sta(hapd, s
114 ieee802_11_sa_query_action(struct hostapd_data *hapd, const u8 *sa, const u8 action_type, const u8 *trans_id) argument
167 hostapd_ext_capab_byte(struct hostapd_data *hapd, u8 *pos, int idx) argument
217 hostapd_eid_ext_capab(struct hostapd_data *hapd, u8 *eid) argument
267 hostapd_eid_qos_map_set(struct hostapd_data *hapd, u8 *eid) argument
284 hostapd_eid_interworking(struct hostapd_data *hapd, u8 *eid) argument
324 hostapd_eid_adv_proto(struct hostapd_data *hapd, u8 *eid) argument
343 hostapd_eid_roaming_consortium(struct hostapd_data *hapd, u8 *eid) argument
390 hostapd_eid_time_adv(struct hostapd_data *hapd, u8 *eid) argument
410 hostapd_eid_time_zone(struct hostapd_data *hapd, u8 *eid) argument
428 hostapd_update_time_adv(struct hostapd_data *hapd) argument
481 hostapd_eid_bss_max_idle_period(struct hostapd_data *hapd, u8 *eid) argument
[all...]
H A Dpreauth_auth.c34 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, cons argument
133 rsn_preauth_iface_deinit(struct hostapd_data *hapd) argument
149 rsn_preauth_iface_init(struct hostapd_data *hapd) argument
187 struct hostapd_data *hapd = eloop_ctx; local
195 rsn_preauth_finished(struct hostapd_data *hapd, struct sta_info *sta, int success) argument
231 rsn_preauth_send(struct hostapd_data *hapd, struct sta_info *sta, u8 *buf, size_t len) argument
268 rsn_preauth_free_station(struct hostapd_data *hapd, struct sta_info *sta) argument
[all...]
H A Dap_drv_ops.h20 int hostapd_build_ap_extra_ies(struct hostapd_data *hapd,
24 void hostapd_free_ap_extra_ies(struct hostapd_data *hapd, struct wpabuf *beacon,
27 int hostapd_set_ap_wps_ie(struct hostapd_data *hapd);
28 int hostapd_set_authorized(struct hostapd_data *hapd,
30 int hostapd_set_sta_flags(struct hostapd_data *hapd, struct sta_info *sta);
31 int hostapd_set_drv_ieee8021x(struct hostapd_data *hapd, const char *ifname,
33 int hostapd_vlan_if_add(struct hostapd_data *hapd, const char *ifname);
34 int hostapd_vlan_if_remove(struct hostapd_data *hapd, const char *ifname);
35 int hostapd_set_wds_sta(struct hostapd_data *hapd, char *ifname_wds,
37 int hostapd_sta_add(struct hostapd_data *hapd,
125 hostapd_drv_set_countermeasures(struct hostapd_data *hapd, int enabled) argument
134 hostapd_drv_set_sta_vlan(const char *ifname, struct hostapd_data *hapd, const u8 *addr, int vlan_id) argument
144 hostapd_drv_get_inact_sec(struct hostapd_data *hapd, const u8 *addr) argument
152 hostapd_drv_sta_remove(struct hostapd_data *hapd, const u8 *addr) argument
160 hostapd_drv_hapd_send_eapol(struct hostapd_data *hapd, const u8 *addr, const u8 *data, size_t data_len, int encrypt, u32 flags) argument
172 hostapd_drv_read_sta_data( struct hostapd_data *hapd, struct hostap_sta_driver_data *data, const u8 *addr) argument
181 hostapd_drv_sta_clear_stats(struct hostapd_data *hapd, const u8 *addr) argument
189 hostapd_drv_set_acl(struct hostapd_data *hapd, struct hostapd_acl_params *params) argument
197 hostapd_drv_set_ap(struct hostapd_data *hapd, struct wpa_driver_ap_params *params) argument
205 hostapd_drv_set_radius_acl_auth(struct hostapd_data *hapd, const u8 *mac, int accepted, u32 session_timeout) argument
215 hostapd_drv_set_radius_acl_expire(struct hostapd_data *hapd, const u8 *mac) argument
224 hostapd_drv_set_authmode(struct hostapd_data *hapd, int auth_algs) argument
232 hostapd_drv_poll_client(struct hostapd_data *hapd, const u8 *own_addr, const u8 *addr, int qos) argument
241 hostapd_drv_get_survey(struct hostapd_data *hapd, unsigned int freq) argument
251 hostapd_get_country(struct hostapd_data *hapd, char *alpha2) argument
258 hostapd_drv_get_radio_name(struct hostapd_data *hapd) argument
266 hostapd_drv_switch_channel(struct hostapd_data *hapd, struct csa_settings *settings) argument
275 hostapd_drv_status(struct hostapd_data *hapd, char *buf, size_t buflen) argument
283 hostapd_drv_vendor_cmd(struct hostapd_data *hapd, int vendor_id, int subcmd, const u8 *data, size_t data_len, struct wpabuf *buf) argument
[all...]
H A Dieee802_11_auth.c100 static int hostapd_acl_cache_get(struct hostapd_data *hapd, const u8 *addr, argument
111 for (entry = hapd->acl_cache; entry; entry = entry->next) {
157 static int hostapd_radius_acl_query(struct hostapd_data *hapd, const u8 *addr, argument
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
232 hostapd_allowed_address(struct hostapd_data *hapd, const u8 *addr, const u8 *msg, size_t len, u32 *session_timeout, u32 *acct_interim_interval, int *vlan_id, struct hostapd_sta_wpa_psk_short **psk, char **identity, char **radius_cui) argument
340 hostapd_acl_expire_cache(struct hostapd_data *hapd, struct os_reltime *now) argument
370 hostapd_acl_expire_queries(struct hostapd_data *hapd, struct os_reltime *now) argument
407 struct hostapd_data *hapd = eloop_ctx; local
418 decode_tunnel_passwords(struct hostapd_data *hapd, const u8 *shared_secret, size_t shared_secret_len, struct radius_msg *msg, struct radius_msg *req, struct hostapd_cached_radius_acl *cache) argument
481 struct hostapd_data *hapd = data; local
599 hostapd_acl_init(struct hostapd_data *hapd) argument
617 hostapd_acl_deinit(struct hostapd_data *hapd) argument
[all...]
H A Dieee802_11_ht.c24 u8 * hostapd_eid_ht_capabilities(struct hostapd_data *hapd, u8 *eid) argument
29 if (!hapd->iconf->ieee80211n || !hapd->iface->current_mode ||
30 hapd->conf->disable_11n)
38 cap->ht_capabilities_info = host_to_le16(hapd->iconf->ht_capab);
39 cap->a_mpdu_params = hapd->iface->current_mode->a_mpdu_params;
40 os_memcpy(cap->supported_mcs_set, hapd->iface->current_mode->mcs_set,
49 if (hapd->iconf->obss_interval) {
58 host_to_le16(hapd->iconf->obss_interval);
82 u8 * hostapd_eid_ht_operation(struct hostapd_data *hapd, u argument
206 hostapd_2040_coex_action(struct hostapd_data *hapd, const struct ieee80211_mgmt *mgmt, size_t len) argument
287 copy_sta_ht_capab(struct hostapd_data *hapd, struct sta_info *sta, const u8 *ht_capab, size_t ht_capab_len) argument
361 update_sta_ht(struct hostapd_data *hapd, struct sta_info *sta) argument
394 update_sta_no_ht(struct hostapd_data *hapd, struct sta_info *sta) argument
409 update_ht_state(struct hostapd_data *hapd, struct sta_info *sta) argument
421 hostapd_get_ht_capab(struct hostapd_data *hapd, struct ieee80211_ht_capabilities *ht_cap, struct ieee80211_ht_capabilities *neg_ht_cap) argument
[all...]
H A Dwmm.c51 u8 * hostapd_eid_wmm(struct hostapd_data *hapd, u8 *eid) argument
58 if (!hapd->conf->wmm_enabled)
67 wmm->qos_info = hapd->parameter_set_count & 0xf;
69 if (hapd->conf->wmm_uapsd &&
70 (hapd->iface->drv_flags & WPA_DRIVER_FLAGS_AP_UAPSD))
79 &hapd->iconf->wmm_ac_params[e];
100 int hostapd_eid_wmm_valid(struct hostapd_data *hapd, const u8 *eid, size_t len) argument
127 static void wmm_send_action(struct hostapd_data *hapd, const u8 *addr, argument
137 hostapd_logger(hapd, addr, HOSTAPD_MODULE_IEEE80211,
144 os_memcpy(m->sa, hapd
231 wmm_addts_req(struct hostapd_data *hapd, const struct ieee80211_mgmt *mgmt, struct wmm_tspec_element *tspec, size_t len) argument
256 hostapd_wmm_action(struct hostapd_data *hapd, const struct ieee80211_mgmt *mgmt, size_t len) argument
[all...]
H A Dwnm_ap.c25 static int ieee80211_11_get_tfs_ie(struct hostapd_data *hapd, const u8 *addr, argument
30 return hostapd_drv_wnm_oper(hapd, oper, addr, buf, buf_len);
35 static int ieee80211_11_set_tfs_ie(struct hostapd_data *hapd, const u8 *addr, argument
40 return hostapd_drv_wnm_oper(hapd, oper, addr, buf, buf_len);
45 static int ieee802_11_send_wnmsleep_resp(struct hostapd_data *hapd, argument
63 sta = ap_get_sta(hapd, addr);
82 if (ieee80211_11_get_tfs_ie(hapd, addr, wnmtfs_ie, &wnmtfs_ie_len,
99 os_memcpy(mgmt->sa, hapd->own_addr, ETH_ALEN);
100 os_memcpy(mgmt->bssid, hapd->own_addr, ETH_ALEN);
144 res = hostapd_drv_send_action(hapd, hap
190 ieee802_11_rx_wnmsleep_req(struct hostapd_data *hapd, const u8 *addr, const u8 *frm, int len) argument
249 ieee802_11_send_bss_trans_mgmt_request(struct hostapd_data *hapd, const u8 *addr, u8 dialog_token, const char *url) argument
301 ieee802_11_rx_bss_trans_mgmt_query(struct hostapd_data *hapd, const u8 *addr, const u8 *frm, size_t len) argument
330 ieee802_11_rx_bss_trans_mgmt_resp(struct hostapd_data *hapd, const u8 *addr, const u8 *frm, size_t len) argument
369 ieee802_11_rx_wnm_action_ap(struct hostapd_data *hapd, const struct ieee80211_mgmt *mgmt, size_t len) argument
403 wnm_send_disassoc_imminent(struct hostapd_data *hapd, struct sta_info *sta, int disassoc_timer) argument
439 wnm_send_ess_disassoc_imminent(struct hostapd_data *hapd, struct sta_info *sta, const char *url, int disassoc_timer) argument
[all...]
/external/wpa_supplicant_8/wpa_supplicant/src/ap/
H A Deap_user_db.c133 eap_user_sqlite_get(struct hostapd_data *hapd, const u8 *identity, argument
161 bin_clear_free(hapd->tmp_eap_user.identity,
162 hapd->tmp_eap_user.identity_len);
163 bin_clear_free(hapd->tmp_eap_user.password,
164 hapd->tmp_eap_user.password_len);
165 os_memset(&hapd->tmp_eap_user, 0, sizeof(hapd->tmp_eap_user));
166 hapd->tmp_eap_user.phase2 = phase2;
167 hapd->tmp_eap_user.identity = os_zalloc(identity_len + 1);
168 if (hapd
216 hostapd_get_eap_user(struct hostapd_data *hapd, const u8 *identity, size_t identity_len, int phase2) argument
[all...]
H A Daccounting.c28 static void accounting_sta_interim(struct hostapd_data *hapd,
32 static struct radius_msg * accounting_msg(struct hostapd_data *hapd, argument
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, argument
178 struct hostapd_data *hapd = eloop_ctx; local
201 accounting_sta_start(struct hostapd_data *hapd, struct sta_info *sta) argument
238 accounting_sta_report(struct hostapd_data *hapd, struct sta_info *sta, int stop) argument
349 accounting_sta_interim(struct hostapd_data *hapd, struct sta_info *sta) argument
362 accounting_sta_stop(struct hostapd_data *hapd, struct sta_info *sta) argument
377 accounting_sta_get_id(struct hostapd_data *hapd, struct sta_info *sta) argument
416 accounting_report_state(struct hostapd_data *hapd, int on) argument
449 accounting_init(struct hostapd_data *hapd) argument
472 accounting_deinit(struct hostapd_data *hapd) argument
[all...]
H A Dctrl_iface_ap.c25 static int hostapd_get_sta_tx_rx(struct hostapd_data *hapd, argument
32 if (hostapd_drv_read_sta_data(hapd, &data, sta->addr) < 0)
83 static int hostapd_ctrl_iface_sta_mib(struct hostapd_data *hapd, argument
126 res = ieee802_11_get_mib_sta(hapd, sta, buf + len, buflen - len);
132 res = ieee802_1x_get_mib_sta(hapd, sta, buf + len, buflen - len);
135 res = hostapd_wps_get_mib_sta(hapd, sta->addr, buf + len,
139 res = hostapd_p2p_get_mib_sta(hapd, sta, buf + len, buflen - len);
143 len += hostapd_get_sta_tx_rx(hapd, sta, buf + len, buflen - len);
150 int hostapd_ctrl_iface_sta_first(struct hostapd_data *hapd, argument
153 return hostapd_ctrl_iface_sta_mib(hapd, hap
157 hostapd_ctrl_iface_sta(struct hostapd_data *hapd, const char *txtaddr, char *buf, size_t buflen) argument
196 hostapd_ctrl_iface_sta_next(struct hostapd_data *hapd, const char *txtaddr, char *buf, size_t buflen) argument
219 p2p_manager_disconnect(struct hostapd_data *hapd, u16 stype, u8 minor_reason_code, const u8 *addr) argument
271 hostapd_ctrl_iface_deauthenticate(struct hostapd_data *hapd, const char *txtaddr) argument
331 hostapd_ctrl_iface_disassociate(struct hostapd_data *hapd, const char *txtaddr) argument
391 hostapd_ctrl_iface_status(struct hostapd_data *hapd, char *buf, size_t buflen) argument
[all...]
H A Dieee802_11_shared.c22 u8 * hostapd_eid_assoc_comeback_time(struct hostapd_data *hapd, argument
35 if (hapd->conf->assoc_sa_query_max_timeout > tu)
36 timeout = hapd->conf->assoc_sa_query_max_timeout - tu;
39 if (timeout < hapd->conf->assoc_sa_query_max_timeout)
49 void ieee802_11_send_sa_query_req(struct hostapd_data *hapd, argument
64 os_memcpy(mgmt.sa, hapd->own_addr, ETH_ALEN);
65 os_memcpy(mgmt.bssid, hapd->own_addr, ETH_ALEN);
71 if (hostapd_drv_send_mlme(hapd, &mgmt, end - (u8 *) &mgmt, 0) < 0)
76 static void ieee802_11_send_sa_query_resp(struct hostapd_data *hapd, argument
88 sta = ap_get_sta(hapd, s
114 ieee802_11_sa_query_action(struct hostapd_data *hapd, const u8 *sa, const u8 action_type, const u8 *trans_id) argument
167 hostapd_ext_capab_byte(struct hostapd_data *hapd, u8 *pos, int idx) argument
217 hostapd_eid_ext_capab(struct hostapd_data *hapd, u8 *eid) argument
267 hostapd_eid_qos_map_set(struct hostapd_data *hapd, u8 *eid) argument
284 hostapd_eid_interworking(struct hostapd_data *hapd, u8 *eid) argument
324 hostapd_eid_adv_proto(struct hostapd_data *hapd, u8 *eid) argument
343 hostapd_eid_roaming_consortium(struct hostapd_data *hapd, u8 *eid) argument
390 hostapd_eid_time_adv(struct hostapd_data *hapd, u8 *eid) argument
410 hostapd_eid_time_zone(struct hostapd_data *hapd, u8 *eid) argument
428 hostapd_update_time_adv(struct hostapd_data *hapd) argument
481 hostapd_eid_bss_max_idle_period(struct hostapd_data *hapd, u8 *eid) argument
[all...]
H A Dpreauth_auth.c34 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, cons argument
133 rsn_preauth_iface_deinit(struct hostapd_data *hapd) argument
149 rsn_preauth_iface_init(struct hostapd_data *hapd) argument
187 struct hostapd_data *hapd = eloop_ctx; local
195 rsn_preauth_finished(struct hostapd_data *hapd, struct sta_info *sta, int success) argument
231 rsn_preauth_send(struct hostapd_data *hapd, struct sta_info *sta, u8 *buf, size_t len) argument
268 rsn_preauth_free_station(struct hostapd_data *hapd, struct sta_info *sta) argument
[all...]
/external/wpa_supplicant_8/wpa_supplicant/tests/
H A Dlink_test.c21 struct sta_info * ap_get_sta(struct hostapd_data *hapd, const u8 *sta) argument
27 int ap_for_each_sta(struct hostapd_data *hapd, argument
28 int (*cb)(struct hostapd_data *hapd, struct sta_info *sta,
36 void ap_sta_session_timeout(struct hostapd_data *hapd, struct sta_info *sta, argument
42 int ap_sta_bind_vlan(struct hostapd_data *hapd, struct sta_info *sta, argument
49 void rsn_preauth_finished(struct hostapd_data *hapd, struct sta_info *sta, argument
55 void rsn_preauth_send(struct hostapd_data *hapd, struct sta_info *sta, argument
61 void accounting_sta_start(struct hostapd_data *hapd, struct sta_info *sta) argument
/external/wpa_supplicant_8/hostapd/src/ap/
H A Daccounting.c28 static void accounting_sta_interim(struct hostapd_data *hapd,
32 static struct radius_msg * accounting_msg(struct hostapd_data *hapd, argument
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, argument
178 struct hostapd_data *hapd = eloop_ctx; local
201 accounting_sta_start(struct hostapd_data *hapd, struct sta_info *sta) argument
238 accounting_sta_report(struct hostapd_data *hapd, struct sta_info *sta, int stop) argument
349 accounting_sta_interim(struct hostapd_data *hapd, struct sta_info *sta) argument
362 accounting_sta_stop(struct hostapd_data *hapd, struct sta_info *sta) argument
377 accounting_sta_get_id(struct hostapd_data *hapd, struct sta_info *sta) argument
416 accounting_report_state(struct hostapd_data *hapd, int on) argument
449 accounting_init(struct hostapd_data *hapd) argument
472 accounting_deinit(struct hostapd_data *hapd) argument
[all...]
H A Dctrl_iface_ap.c25 static int hostapd_get_sta_tx_rx(struct hostapd_data *hapd, argument
32 if (hostapd_drv_read_sta_data(hapd, &data, sta->addr) < 0)
83 static int hostapd_ctrl_iface_sta_mib(struct hostapd_data *hapd, argument
126 res = ieee802_11_get_mib_sta(hapd, sta, buf + len, buflen - len);
132 res = ieee802_1x_get_mib_sta(hapd, sta, buf + len, buflen - len);
135 res = hostapd_wps_get_mib_sta(hapd, sta->addr, buf + len,
139 res = hostapd_p2p_get_mib_sta(hapd, sta, buf + len, buflen - len);
143 len += hostapd_get_sta_tx_rx(hapd, sta, buf + len, buflen - len);
150 int hostapd_ctrl_iface_sta_first(struct hostapd_data *hapd, argument
153 return hostapd_ctrl_iface_sta_mib(hapd, hap
157 hostapd_ctrl_iface_sta(struct hostapd_data *hapd, const char *txtaddr, char *buf, size_t buflen) argument
196 hostapd_ctrl_iface_sta_next(struct hostapd_data *hapd, const char *txtaddr, char *buf, size_t buflen) argument
219 p2p_manager_disconnect(struct hostapd_data *hapd, u16 stype, u8 minor_reason_code, const u8 *addr) argument
271 hostapd_ctrl_iface_deauthenticate(struct hostapd_data *hapd, const char *txtaddr) argument
331 hostapd_ctrl_iface_disassociate(struct hostapd_data *hapd, const char *txtaddr) argument
391 hostapd_ctrl_iface_status(struct hostapd_data *hapd, char *buf, size_t buflen) argument
[all...]
H A Dieee802_11_shared.c22 u8 * hostapd_eid_assoc_comeback_time(struct hostapd_data *hapd, argument
35 if (hapd->conf->assoc_sa_query_max_timeout > tu)
36 timeout = hapd->conf->assoc_sa_query_max_timeout - tu;
39 if (timeout < hapd->conf->assoc_sa_query_max_timeout)
49 void ieee802_11_send_sa_query_req(struct hostapd_data *hapd, argument
64 os_memcpy(mgmt.sa, hapd->own_addr, ETH_ALEN);
65 os_memcpy(mgmt.bssid, hapd->own_addr, ETH_ALEN);
71 if (hostapd_drv_send_mlme(hapd, &mgmt, end - (u8 *) &mgmt, 0) < 0)
76 static void ieee802_11_send_sa_query_resp(struct hostapd_data *hapd, argument
88 sta = ap_get_sta(hapd, s
114 ieee802_11_sa_query_action(struct hostapd_data *hapd, const u8 *sa, const u8 action_type, const u8 *trans_id) argument
167 hostapd_ext_capab_byte(struct hostapd_data *hapd, u8 *pos, int idx) argument
217 hostapd_eid_ext_capab(struct hostapd_data *hapd, u8 *eid) argument
267 hostapd_eid_qos_map_set(struct hostapd_data *hapd, u8 *eid) argument
284 hostapd_eid_interworking(struct hostapd_data *hapd, u8 *eid) argument
324 hostapd_eid_adv_proto(struct hostapd_data *hapd, u8 *eid) argument
343 hostapd_eid_roaming_consortium(struct hostapd_data *hapd, u8 *eid) argument
390 hostapd_eid_time_adv(struct hostapd_data *hapd, u8 *eid) argument
410 hostapd_eid_time_zone(struct hostapd_data *hapd, u8 *eid) argument
428 hostapd_update_time_adv(struct hostapd_data *hapd) argument
481 hostapd_eid_bss_max_idle_period(struct hostapd_data *hapd, u8 *eid) argument
[all...]
H A Dpreauth_auth.c34 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, cons argument
133 rsn_preauth_iface_deinit(struct hostapd_data *hapd) argument
149 rsn_preauth_iface_init(struct hostapd_data *hapd) argument
187 struct hostapd_data *hapd = eloop_ctx; local
195 rsn_preauth_finished(struct hostapd_data *hapd, struct sta_info *sta, int success) argument
231 rsn_preauth_send(struct hostapd_data *hapd, struct sta_info *sta, u8 *buf, size_t len) argument
268 rsn_preauth_free_station(struct hostapd_data *hapd, struct sta_info *sta) argument
[all...]
H A Dap_drv_ops.h20 int hostapd_build_ap_extra_ies(struct hostapd_data *hapd,
24 void hostapd_free_ap_extra_ies(struct hostapd_data *hapd, struct wpabuf *beacon,
27 int hostapd_set_ap_wps_ie(struct hostapd_data *hapd);
28 int hostapd_set_authorized(struct hostapd_data *hapd,
30 int hostapd_set_sta_flags(struct hostapd_data *hapd, struct sta_info *sta);
31 int hostapd_set_drv_ieee8021x(struct hostapd_data *hapd, const char *ifname,
33 int hostapd_vlan_if_add(struct hostapd_data *hapd, const char *ifname);
34 int hostapd_vlan_if_remove(struct hostapd_data *hapd, const char *ifname);
35 int hostapd_set_wds_sta(struct hostapd_data *hapd, char *ifname_wds,
37 int hostapd_sta_add(struct hostapd_data *hapd,
125 hostapd_drv_set_countermeasures(struct hostapd_data *hapd, int enabled) argument
134 hostapd_drv_set_sta_vlan(const char *ifname, struct hostapd_data *hapd, const u8 *addr, int vlan_id) argument
144 hostapd_drv_get_inact_sec(struct hostapd_data *hapd, const u8 *addr) argument
152 hostapd_drv_sta_remove(struct hostapd_data *hapd, const u8 *addr) argument
160 hostapd_drv_hapd_send_eapol(struct hostapd_data *hapd, const u8 *addr, const u8 *data, size_t data_len, int encrypt, u32 flags) argument
172 hostapd_drv_read_sta_data( struct hostapd_data *hapd, struct hostap_sta_driver_data *data, const u8 *addr) argument
181 hostapd_drv_sta_clear_stats(struct hostapd_data *hapd, const u8 *addr) argument
189 hostapd_drv_set_acl(struct hostapd_data *hapd, struct hostapd_acl_params *params) argument
197 hostapd_drv_set_ap(struct hostapd_data *hapd, struct wpa_driver_ap_params *params) argument
205 hostapd_drv_set_radius_acl_auth(struct hostapd_data *hapd, const u8 *mac, int accepted, u32 session_timeout) argument
215 hostapd_drv_set_radius_acl_expire(struct hostapd_data *hapd, const u8 *mac) argument
224 hostapd_drv_set_authmode(struct hostapd_data *hapd, int auth_algs) argument
232 hostapd_drv_poll_client(struct hostapd_data *hapd, const u8 *own_addr, const u8 *addr, int qos) argument
241 hostapd_drv_get_survey(struct hostapd_data *hapd, unsigned int freq) argument
251 hostapd_get_country(struct hostapd_data *hapd, char *alpha2) argument
258 hostapd_drv_get_radio_name(struct hostapd_data *hapd) argument
266 hostapd_drv_switch_channel(struct hostapd_data *hapd, struct csa_settings *settings) argument
275 hostapd_drv_status(struct hostapd_data *hapd, char *buf, size_t buflen) argument
283 hostapd_drv_vendor_cmd(struct hostapd_data *hapd, int vendor_id, int subcmd, const u8 *data, size_t data_len, struct wpabuf *buf) argument
[all...]
H A Dieee802_11_auth.c100 static int hostapd_acl_cache_get(struct hostapd_data *hapd, const u8 *addr, argument
111 for (entry = hapd->acl_cache; entry; entry = entry->next) {
157 static int hostapd_radius_acl_query(struct hostapd_data *hapd, const u8 *addr, argument
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
232 hostapd_allowed_address(struct hostapd_data *hapd, const u8 *addr, const u8 *msg, size_t len, u32 *session_timeout, u32 *acct_interim_interval, int *vlan_id, struct hostapd_sta_wpa_psk_short **psk, char **identity, char **radius_cui) argument
340 hostapd_acl_expire_cache(struct hostapd_data *hapd, struct os_reltime *now) argument
370 hostapd_acl_expire_queries(struct hostapd_data *hapd, struct os_reltime *now) argument
407 struct hostapd_data *hapd = eloop_ctx; local
418 decode_tunnel_passwords(struct hostapd_data *hapd, const u8 *shared_secret, size_t shared_secret_len, struct radius_msg *msg, struct radius_msg *req, struct hostapd_cached_radius_acl *cache) argument
481 struct hostapd_data *hapd = data; local
599 hostapd_acl_init(struct hostapd_data *hapd) argument
617 hostapd_acl_deinit(struct hostapd_data *hapd) argument
[all...]
H A Dieee802_11_ht.c24 u8 * hostapd_eid_ht_capabilities(struct hostapd_data *hapd, u8 *eid) argument
29 if (!hapd->iconf->ieee80211n || !hapd->iface->current_mode ||
30 hapd->conf->disable_11n)
38 cap->ht_capabilities_info = host_to_le16(hapd->iconf->ht_capab);
39 cap->a_mpdu_params = hapd->iface->current_mode->a_mpdu_params;
40 os_memcpy(cap->supported_mcs_set, hapd->iface->current_mode->mcs_set,
49 if (hapd->iconf->obss_interval) {
58 host_to_le16(hapd->iconf->obss_interval);
82 u8 * hostapd_eid_ht_operation(struct hostapd_data *hapd, u argument
206 hostapd_2040_coex_action(struct hostapd_data *hapd, const struct ieee80211_mgmt *mgmt, size_t len) argument
287 copy_sta_ht_capab(struct hostapd_data *hapd, struct sta_info *sta, const u8 *ht_capab, size_t ht_capab_len) argument
361 update_sta_ht(struct hostapd_data *hapd, struct sta_info *sta) argument
394 update_sta_no_ht(struct hostapd_data *hapd, struct sta_info *sta) argument
409 update_ht_state(struct hostapd_data *hapd, struct sta_info *sta) argument
421 hostapd_get_ht_capab(struct hostapd_data *hapd, struct ieee80211_ht_capabilities *ht_cap, struct ieee80211_ht_capabilities *neg_ht_cap) argument
[all...]
H A Dwmm.c51 u8 * hostapd_eid_wmm(struct hostapd_data *hapd, u8 *eid) argument
58 if (!hapd->conf->wmm_enabled)
67 wmm->qos_info = hapd->parameter_set_count & 0xf;
69 if (hapd->conf->wmm_uapsd &&
70 (hapd->iface->drv_flags & WPA_DRIVER_FLAGS_AP_UAPSD))
79 &hapd->iconf->wmm_ac_params[e];
100 int hostapd_eid_wmm_valid(struct hostapd_data *hapd, const u8 *eid, size_t len) argument
127 static void wmm_send_action(struct hostapd_data *hapd, const u8 *addr, argument
137 hostapd_logger(hapd, addr, HOSTAPD_MODULE_IEEE80211,
144 os_memcpy(m->sa, hapd
231 wmm_addts_req(struct hostapd_data *hapd, const struct ieee80211_mgmt *mgmt, struct wmm_tspec_element *tspec, size_t len) argument
256 hostapd_wmm_action(struct hostapd_data *hapd, const struct ieee80211_mgmt *mgmt, size_t len) argument
[all...]
H A Dwnm_ap.c25 static int ieee80211_11_get_tfs_ie(struct hostapd_data *hapd, const u8 *addr, argument
30 return hostapd_drv_wnm_oper(hapd, oper, addr, buf, buf_len);
35 static int ieee80211_11_set_tfs_ie(struct hostapd_data *hapd, const u8 *addr, argument
40 return hostapd_drv_wnm_oper(hapd, oper, addr, buf, buf_len);
45 static int ieee802_11_send_wnmsleep_resp(struct hostapd_data *hapd, argument
63 sta = ap_get_sta(hapd, addr);
82 if (ieee80211_11_get_tfs_ie(hapd, addr, wnmtfs_ie, &wnmtfs_ie_len,
99 os_memcpy(mgmt->sa, hapd->own_addr, ETH_ALEN);
100 os_memcpy(mgmt->bssid, hapd->own_addr, ETH_ALEN);
144 res = hostapd_drv_send_action(hapd, hap
190 ieee802_11_rx_wnmsleep_req(struct hostapd_data *hapd, const u8 *addr, const u8 *frm, int len) argument
249 ieee802_11_send_bss_trans_mgmt_request(struct hostapd_data *hapd, const u8 *addr, u8 dialog_token, const char *url) argument
301 ieee802_11_rx_bss_trans_mgmt_query(struct hostapd_data *hapd, const u8 *addr, const u8 *frm, size_t len) argument
330 ieee802_11_rx_bss_trans_mgmt_resp(struct hostapd_data *hapd, const u8 *addr, const u8 *frm, size_t len) argument
369 ieee802_11_rx_wnm_action_ap(struct hostapd_data *hapd, const struct ieee80211_mgmt *mgmt, size_t len) argument
403 wnm_send_disassoc_imminent(struct hostapd_data *hapd, struct sta_info *sta, int disassoc_timer) argument
439 wnm_send_ess_disassoc_imminent(struct hostapd_data *hapd, struct sta_info *sta, const char *url, int disassoc_timer) argument
[all...]

Completed in 7970 milliseconds

123456