Home | History | Annotate | Download | only in ap

Lines Matching defs:sta

47 	struct sta_info *sta;
67 sta = ap_get_sta(hapd, ethhdr->h_source);
68 if (sta && (sta->flags & WLAN_STA_ASSOC)) {
70 "STA " MACSTR, MAC2STR(sta->addr));
73 if (!sta && hdr->type == IEEE802_1X_TYPE_EAPOL_START) {
74 sta = ap_sta_add(hapd, ethhdr->h_source);
75 if (sta == NULL)
77 sta->flags = WLAN_STA_PREAUTH;
79 ieee802_1x_new_station(hapd, sta);
80 if (sta->eapol_sm == NULL) {
81 ap_free_sta(hapd, sta);
82 sta = NULL;
84 sta->eapol_sm->radius_identifier = -1;
85 sta->eapol_sm->portValid = TRUE;
86 sta->eapol_sm->flags |= EAPOL_SM_PREAUTH;
89 if (sta == NULL)
91 sta->preauth_iface = piface;
188 struct sta_info *sta = timeout_ctx;
189 wpa_printf(MSG_DEBUG, "RSN: Removing pre-authentication STA entry for "
190 MACSTR, MAC2STR(sta->addr));
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,
204 key = ieee802_1x_get_key(sta->eapol_sm, &len);
209 sta->addr,
211 sta->eapol_sm) == 0) {
212 hostapd_logger(hapd, sta->addr, HOSTAPD_MODULE_WPA,
216 hostapd_logger(hapd, sta->addr, HOSTAPD_MODULE_WPA,
224 * Finish STA entry removal from timeout in order to avoid freeing
225 * STA data before the caller has finished processing.
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,
239 if (piface == sta->preauth_iface)
246 "interface for " MACSTR, MAC2STR(sta->addr));
254 os_memcpy(ethhdr->h_dest, sta->addr, ETH_ALEN);
259 if (l2_packet_send(piface->l2, sta->addr, ETH_P_PREAUTH, (u8 *) ethhdr,
268 void rsn_preauth_free_station(struct hostapd_data *hapd, struct sta_info *sta)
270 eloop_cancel_timeout(rsn_preauth_finished_cb, hapd, sta);