Lines Matching refs:sta

126 	struct sta_info *sta = ap_get_sta(hapd, addr);
127 if (sta == NULL)
131 ieee802_1x_notify_port_enabled(sta->eapol_sm, value);
134 ieee802_1x_notify_port_valid(sta->eapol_sm, value);
137 ieee802_1x_set_sta_authorized(hapd, sta, value);
140 if (sta->eapol_sm)
141 sta->eapol_sm->portControl = Auto;
144 if (sta->eapol_sm)
145 sta->eapol_sm->keyRun = value ? TRUE : FALSE;
148 if (sta->eapol_sm)
149 sta->eapol_sm->eap_if->eapKeyAvailable =
153 if (sta->eapol_sm)
154 sta->eapol_sm->keyDone = value ? TRUE : FALSE;
157 if (sta->eapol_sm)
158 sta->eapol_sm->dot1xAuthEapolFramesTx++;
168 struct sta_info *sta = ap_get_sta(hapd, addr);
169 if (sta == NULL || sta->eapol_sm == NULL)
173 return sta->eapol_sm->keyRun;
175 return sta->eapol_sm->eap_if->eapKeyAvailable;
186 struct sta_info *sta = ap_get_sta(hapd, addr);
191 * logic list (all hostapd_get_psk; all sta->psk)
193 if (sta && sta->psk && !psk) {
195 psk = sta->psk->psk;
196 for (pos = sta->psk; pos; pos = pos->next) {
213 struct sta_info *sta;
215 sta = ap_get_sta(hapd, addr);
216 if (sta == NULL)
219 key = ieee802_1x_get_key(sta->eapol_sm, &keylen);
263 struct sta_info *sta;
266 sta = ap_get_sta(hapd, addr);
267 if (sta)
268 flags = hostapd_sta_flags_to_drv(sta->flags);
280 struct sta_info *sta;
282 for (sta = hapd->sta_list; sta; sta = sta->next) {
283 if (sta->wpa_sm && cb(sta->wpa_sm, cb_ctx))
418 struct sta_info *sta;
420 sta = ap_get_sta(hapd, dst);
421 if (sta == NULL || sta->wpa_sm == NULL)
445 struct sta_info *sta;
450 sta = ap_sta_add(hapd, sta_addr);
451 if (sta == NULL)
453 if (sta->wpa_sm) {
454 sta->auth_alg = WLAN_AUTH_FT;
455 return sta->wpa_sm;
458 sta->wpa_sm = wpa_auth_sta_init(hapd->wpa_auth, sta->addr);
459 if (sta->wpa_sm == NULL) {
460 ap_free_sta(hapd, sta);
463 sta->auth_alg = WLAN_AUTH_FT;
465 return sta->wpa_sm;