Lines Matching refs:hapd
40 struct hostapd_data *hapd; member
51 struct hostapd_data *hapd = piface->hapd; in rsn_preauth_receive() local
67 if (os_memcmp(ethhdr->h_dest, hapd->own_addr, ETH_ALEN) != 0) { in rsn_preauth_receive()
73 sta = ap_get_sta(hapd, ethhdr->h_source); in rsn_preauth_receive()
80 sta = ap_sta_add(hapd, ethhdr->h_source); in rsn_preauth_receive()
85 ieee802_1x_new_station(hapd, sta); in rsn_preauth_receive()
87 ap_free_sta(hapd, sta); in rsn_preauth_receive()
98 ieee802_1x_receive(hapd, ethhdr->h_source, (u8 *) (ethhdr + 1), in rsn_preauth_receive()
103 static int rsn_preauth_iface_add(struct hostapd_data *hapd, const char *ifname) in rsn_preauth_iface_add() argument
112 piface->hapd = hapd; in rsn_preauth_iface_add()
127 piface->next = hapd->preauth_iface; in rsn_preauth_iface_add()
128 hapd->preauth_iface = piface; in rsn_preauth_iface_add()
139 void rsn_preauth_iface_deinit(struct hostapd_data *hapd) in rsn_preauth_iface_deinit() argument
143 piface = hapd->preauth_iface; in rsn_preauth_iface_deinit()
144 hapd->preauth_iface = NULL; in rsn_preauth_iface_deinit()
155 int rsn_preauth_iface_init(struct hostapd_data *hapd) in rsn_preauth_iface_init() argument
159 if (hapd->conf->rsn_preauth_interfaces == NULL) in rsn_preauth_iface_init()
162 tmp = os_strdup(hapd->conf->rsn_preauth_interfaces); in rsn_preauth_iface_init()
175 if (rsn_preauth_iface_add(hapd, start)) { in rsn_preauth_iface_init()
176 rsn_preauth_iface_deinit(hapd); in rsn_preauth_iface_init()
193 struct hostapd_data *hapd = eloop_ctx; in rsn_preauth_finished_cb() local
197 ap_free_sta(hapd, sta); in rsn_preauth_finished_cb()
201 void rsn_preauth_finished(struct hostapd_data *hapd, struct sta_info *sta, in rsn_preauth_finished() argument
206 hostapd_logger(hapd, sta->addr, HOSTAPD_MODULE_WPA, in rsn_preauth_finished()
214 if (wpa_auth_pmksa_add_preauth(hapd->wpa_auth, key, len, in rsn_preauth_finished()
218 hostapd_logger(hapd, sta->addr, HOSTAPD_MODULE_WPA, in rsn_preauth_finished()
222 hostapd_logger(hapd, sta->addr, HOSTAPD_MODULE_WPA, in rsn_preauth_finished()
233 eloop_register_timeout(0, 0, rsn_preauth_finished_cb, hapd, sta); in rsn_preauth_finished()
237 void rsn_preauth_send(struct hostapd_data *hapd, struct sta_info *sta, in rsn_preauth_send() argument
243 piface = hapd->preauth_iface; in rsn_preauth_send()
261 os_memcpy(ethhdr->h_source, hapd->own_addr, ETH_ALEN); in rsn_preauth_send()
274 void rsn_preauth_free_station(struct hostapd_data *hapd, struct sta_info *sta) in rsn_preauth_free_station() argument
276 eloop_cancel_timeout(rsn_preauth_finished_cb, hapd, sta); in rsn_preauth_free_station()