• Home
  • Raw
  • Download

Lines Matching refs:hapd

34 	struct hostapd_data *hapd;  member
45 struct hostapd_data *hapd = piface->hapd; in rsn_preauth_receive() local
61 if (os_memcmp(ethhdr->h_dest, hapd->own_addr, ETH_ALEN) != 0) { in rsn_preauth_receive()
67 sta = ap_get_sta(hapd, ethhdr->h_source); in rsn_preauth_receive()
74 sta = ap_sta_add(hapd, ethhdr->h_source); in rsn_preauth_receive()
79 ieee802_1x_new_station(hapd, sta); in rsn_preauth_receive()
81 ap_free_sta(hapd, sta); in rsn_preauth_receive()
92 ieee802_1x_receive(hapd, ethhdr->h_source, (u8 *) (ethhdr + 1), in rsn_preauth_receive()
97 static int rsn_preauth_iface_add(struct hostapd_data *hapd, const char *ifname) in rsn_preauth_iface_add() argument
106 piface->hapd = hapd; in rsn_preauth_iface_add()
121 piface->next = hapd->preauth_iface; in rsn_preauth_iface_add()
122 hapd->preauth_iface = piface; in rsn_preauth_iface_add()
133 void rsn_preauth_iface_deinit(struct hostapd_data *hapd) in rsn_preauth_iface_deinit() argument
137 piface = hapd->preauth_iface; in rsn_preauth_iface_deinit()
138 hapd->preauth_iface = NULL; in rsn_preauth_iface_deinit()
149 int rsn_preauth_iface_init(struct hostapd_data *hapd) in rsn_preauth_iface_init() argument
153 if (hapd->conf->rsn_preauth_interfaces == NULL) in rsn_preauth_iface_init()
156 tmp = os_strdup(hapd->conf->rsn_preauth_interfaces); in rsn_preauth_iface_init()
169 if (rsn_preauth_iface_add(hapd, start)) { in rsn_preauth_iface_init()
170 rsn_preauth_iface_deinit(hapd); in rsn_preauth_iface_init()
187 struct hostapd_data *hapd = eloop_ctx; in rsn_preauth_finished_cb() local
191 ap_free_sta(hapd, sta); in rsn_preauth_finished_cb()
195 void rsn_preauth_finished(struct hostapd_data *hapd, struct sta_info *sta, in rsn_preauth_finished() argument
200 hostapd_logger(hapd, sta->addr, HOSTAPD_MODULE_WPA, in rsn_preauth_finished()
208 if (wpa_auth_pmksa_add_preauth(hapd->wpa_auth, key, len, in rsn_preauth_finished()
212 hostapd_logger(hapd, sta->addr, HOSTAPD_MODULE_WPA, in rsn_preauth_finished()
216 hostapd_logger(hapd, sta->addr, HOSTAPD_MODULE_WPA, in rsn_preauth_finished()
227 eloop_register_timeout(0, 0, rsn_preauth_finished_cb, hapd, sta); in rsn_preauth_finished()
231 void rsn_preauth_send(struct hostapd_data *hapd, struct sta_info *sta, in rsn_preauth_send() argument
237 piface = hapd->preauth_iface; in rsn_preauth_send()
255 os_memcpy(ethhdr->h_source, hapd->own_addr, ETH_ALEN); in rsn_preauth_send()
268 void rsn_preauth_free_station(struct hostapd_data *hapd, struct sta_info *sta) in rsn_preauth_free_station() argument
270 eloop_cancel_timeout(rsn_preauth_finished_cb, hapd, sta); in rsn_preauth_free_station()