Lines Matching refs:hapd
32 static void ieee802_1x_finished(struct hostapd_data *hapd,
36 static void ieee802_1x_send(struct hostapd_data *hapd, struct sta_info *sta, in ieee802_1x_send() argument
59 hostapd_send_eapol(hapd->own_addr, sta->addr, buf, len); in ieee802_1x_send()
65 static void handle_eap_response(struct hostapd_data *hapd, in handle_eap_response() argument
92 static void handle_eap(struct hostapd_data *hapd, struct sta_info *sta, in handle_eap() argument
124 handle_eap_response(hapd, sta, eap, eap_len); in handle_eap()
132 ieee802_1x_alloc_eapol_sm(struct hostapd_data *hapd, struct sta_info *sta) in ieee802_1x_alloc_eapol_sm() argument
139 return eapol_auth_alloc(hapd->eapol_auth, sta->addr, flags, in ieee802_1x_alloc_eapol_sm()
154 void ieee802_1x_receive(struct hostapd_data *hapd, const u8 *sa, const u8 *buf, in ieee802_1x_receive() argument
164 sta = ap_get_sta(hapd, sa); in ieee802_1x_receive()
205 wpa_receive(hapd->wpa_auth, sta->wpa_sm, (u8 *) hdr, in ieee802_1x_receive()
211 sta->eapol_sm = ieee802_1x_alloc_eapol_sm(hapd, sta); in ieee802_1x_receive()
216 if (!hapd->conf->ieee802_1x && hapd->conf->wps_state) { in ieee802_1x_receive()
248 handle_eap(hapd, sta, (u8 *) (hdr + 1), datalen); in ieee802_1x_receive()
282 void ieee802_1x_free_station(struct hostapd_data *hapd, struct sta_info *sta) in ieee802_1x_free_station() argument
329 struct hostapd_data *hapd = ctx; in ieee802_1x_aaa_send() local
332 ieee802_1x_encapsulate_radius(hapd, sta, data, datalen); in ieee802_1x_aaa_send()
340 struct hostapd_data *hapd = ctx; in _ieee802_1x_finished() local
342 ieee802_1x_finished(hapd, sta, success, remediation); in _ieee802_1x_finished()
350 struct hostapd_data *hapd = ctx; in ieee802_1x_get_eap_user() local
355 eap_user = hostapd_get_eap_user(hapd, identity, identity_len, phase2); in ieee802_1x_get_eap_user()
388 struct hostapd_data *hapd = ctx; in ieee802_1x_sta_entry_alive() local
391 sta = ap_get_sta(hapd, addr); in ieee802_1x_sta_entry_alive()
428 int ieee802_1x_init(struct hostapd_data *hapd) in ieee802_1x_init() argument
441 conf.ctx = hapd; in ieee802_1x_init()
442 conf.wpa = hapd->conf->wpa; in ieee802_1x_init()
454 hapd->eapol_auth = eapol_auth_init(&conf, &cb); in ieee802_1x_init()
455 if (!hapd->eapol_auth) in ieee802_1x_init()
462 static void ieee802_1x_finished(struct hostapd_data *hapd, in ieee802_1x_finished() argument
477 ap_sta_delayed_1x_auth_fail_disconnect(hapd, sta); in ieee802_1x_finished()