Home | History | Annotate | Download | only in ap

Lines Matching defs:sta

134 		   "STA " MACSTR " reason %d",
151 struct sta_info *sta = ap_get_sta(hapd, addr);
152 if (sta == NULL)
156 ieee802_1x_notify_port_enabled(sta->eapol_sm, value);
159 ieee802_1x_notify_port_valid(sta->eapol_sm, value);
162 ieee802_1x_set_sta_authorized(hapd, sta, value);
165 if (sta->eapol_sm)
166 sta->eapol_sm->portControl = Auto;
169 if (sta->eapol_sm)
170 sta->eapol_sm->keyRun = value ? TRUE : FALSE;
173 if (sta->eapol_sm)
174 sta->eapol_sm->eap_if->eapKeyAvailable =
178 if (sta->eapol_sm)
179 sta->eapol_sm->keyDone = value ? TRUE : FALSE;
182 if (sta->eapol_sm)
183 sta->eapol_sm->dot1xAuthEapolFramesTx++;
193 struct sta_info *sta = ap_get_sta(hapd, addr);
194 if (sta == NULL || sta->eapol_sm == NULL)
198 return sta->eapol_sm->keyRun;
200 return sta->eapol_sm->eap_if->eapKeyAvailable;
212 struct sta_info *sta = ap_get_sta(hapd, addr);
216 if (sta && sta->auth_alg == WLAN_AUTH_SAE) {
217 if (!sta->sae || prev_psk)
219 return sta->sae->pmk;
227 * logic list (all hostapd_get_psk; all sta->psk)
229 if (sta && sta->psk && !psk) {
231 psk = sta->psk->psk;
232 for (pos = sta->psk; pos; pos = pos->next) {
249 struct sta_info *sta;
251 sta = ap_get_sta(hapd, addr);
252 if (sta == NULL)
255 key = ieee802_1x_get_key(sta->eapol_sm, &keylen);
299 struct sta_info *sta;
302 sta = ap_get_sta(hapd, addr);
303 if (sta)
304 flags = hostapd_sta_flags_to_drv(sta->flags);
316 struct sta_info *sta;
318 for (sta = hapd->sta_list; sta; sta = sta->next) {
319 if (sta->wpa_sm && cb(sta->wpa_sm, cb_ctx))
454 struct sta_info *sta;
456 sta = ap_get_sta(hapd, dst);
457 if (sta == NULL || sta->wpa_sm == NULL)
481 struct sta_info *sta;
486 sta = ap_sta_add(hapd, sta_addr);
487 if (sta == NULL)
489 if (sta->wpa_sm) {
490 sta->auth_alg = WLAN_AUTH_FT;
491 return sta->wpa_sm;
494 sta->wpa_sm = wpa_auth_sta_init(hapd->wpa_auth, sta->addr, NULL);
495 if (sta->wpa_sm == NULL) {
496 ap_free_sta(hapd, sta);
499 sta->auth_alg = WLAN_AUTH_FT;
501 return sta->wpa_sm;