Home | History | Annotate | Download | only in ap

Lines Matching defs:sta

106 		   "STA " MACSTR " reason %d",
123 struct sta_info *sta = ap_get_sta(hapd, addr);
124 if (sta == NULL)
128 ieee802_1x_notify_port_enabled(sta->eapol_sm, value);
131 ieee802_1x_notify_port_valid(sta->eapol_sm, value);
134 ieee802_1x_set_sta_authorized(hapd, sta, value);
137 if (sta->eapol_sm)
138 sta->eapol_sm->portControl = Auto;
141 if (sta->eapol_sm)
142 sta->eapol_sm->keyRun = value ? TRUE : FALSE;
145 if (sta->eapol_sm)
146 sta->eapol_sm->eap_if->eapKeyAvailable =
150 if (sta->eapol_sm)
151 sta->eapol_sm->keyDone = value ? TRUE : FALSE;
154 if (sta->eapol_sm)
155 sta->eapol_sm->dot1xAuthEapolFramesTx++;
165 struct sta_info *sta = ap_get_sta(hapd, addr);
166 if (sta == NULL || sta->eapol_sm == NULL)
170 return sta->eapol_sm->keyRun;
172 return sta->eapol_sm->eap_if->eapKeyAvailable;
183 struct sta_info *sta = ap_get_sta(hapd, addr);
184 if (sta && sta->psk)
185 return sta->psk;
196 struct sta_info *sta;
198 sta = ap_get_sta(hapd, addr);
199 if (sta == NULL)
202 key = ieee802_1x_get_key(sta->eapol_sm, &keylen);
246 struct sta_info *sta;
249 sta = ap_get_sta(hapd, addr);
250 if (sta)
251 flags = hostapd_sta_flags_to_drv(sta->flags);
263 struct sta_info *sta;
265 for (sta = hapd->sta_list; sta; sta = sta->next) {
266 if (sta->wpa_sm && cb(sta->wpa_sm, cb_ctx))
399 struct sta_info *sta;
401 sta = ap_get_sta(hapd, dst);
402 if (sta == NULL || sta->wpa_sm == NULL)
426 struct sta_info *sta;
428 sta = ap_sta_add(hapd, sta_addr);
429 if (sta == NULL)
431 if (sta->wpa_sm) {
432 sta->auth_alg = WLAN_AUTH_FT;
433 return sta->wpa_sm;
436 sta->wpa_sm = wpa_auth_sta_init(hapd->wpa_auth, sta->addr);
437 if (sta->wpa_sm == NULL) {
438 ap_free_sta(hapd, sta);
441 sta->auth_alg = WLAN_AUTH_FT;
443 return sta->wpa_sm;