Home | History | Annotate | Download | only in ap

Lines Matching defs:hapd

34 	struct hostapd_data *hapd;
45 struct hostapd_data *hapd = piface->hapd;
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)
106 piface->hapd = hapd;
121 piface->next = hapd->preauth_iface;
122 hapd->preauth_iface = piface;
133 void rsn_preauth_iface_deinit(struct hostapd_data *hapd)
137 piface = hapd->preauth_iface;
138 hapd->preauth_iface = NULL;
149 int rsn_preauth_iface_init(struct hostapd_data *hapd)
153 if (hapd->conf->rsn_preauth_interfaces == NULL)
156 tmp = os_strdup(hapd->conf->rsn_preauth_interfaces);
169 if (rsn_preauth_iface_add(hapd, start)) {
170 rsn_preauth_iface_deinit(hapd);
187 struct hostapd_data *hapd = eloop_ctx;
191 ap_free_sta(hapd, sta);
195 void rsn_preauth_finished(struct hostapd_data *hapd, struct sta_info *sta,
200 hostapd_logger(hapd, sta->addr, HOSTAPD_MODULE_WPA,
208 if (wpa_auth_pmksa_add_preauth(hapd->wpa_auth, key, len,
212 hostapd_logger(hapd, sta->addr, HOSTAPD_MODULE_WPA,
216 hostapd_logger(hapd, sta->addr, HOSTAPD_MODULE_WPA,
227 eloop_register_timeout(0, 0, rsn_preauth_finished_cb, hapd, sta);
231 void rsn_preauth_send(struct hostapd_data *hapd, struct sta_info *sta,
237 piface = hapd->preauth_iface;
255 os_memcpy(ethhdr->h_source, hapd->own_addr, ETH_ALEN);
268 void rsn_preauth_free_station(struct hostapd_data *hapd, struct sta_info *sta)
270 eloop_cancel_timeout(rsn_preauth_finished_cb, hapd, sta);