Lines Matching refs:sta

797 	struct sta_info *selected, *sta;
804 for (sta = hapd->sta_list; sta; sta = sta->next)
805 sta->radius_das_match = 1;
809 sta = ap_get_sta(hapd, attr->sta_addr);
810 if (!sta) {
816 selected = sta;
817 for (sta = hapd->sta_list; sta; sta = sta->next) {
818 if (sta != selected)
819 sta->radius_das_match = 0;
833 for (sta = hapd->sta_list; sta; sta = sta->next) {
834 if (!sta->radius_das_match)
837 (unsigned long long) sta->acct_session_id);
839 sta->radius_das_match = 0;
861 for (sta = hapd->sta_list; sta; sta = sta->next) {
862 if (!sta->radius_das_match)
864 if (!sta->eapol_sm ||
865 !sta->eapol_sm->acct_multi_session_id) {
866 sta->radius_das_match = 0;
871 sta->eapol_sm->acct_multi_session_id);
874 sta->radius_das_match = 0;
892 for (sta = hapd->sta_list; sta; sta = sta->next) {
895 if (!sta->radius_das_match)
897 cui = ieee802_1x_get_radius_cui(sta->eapol_sm);
901 sta->radius_das_match = 0;
919 for (sta = hapd->sta_list; sta; sta = sta->next) {
923 if (!sta->radius_das_match)
925 identity = ieee802_1x_get_identity(sta->eapol_sm,
931 sta->radius_das_match = 0;
957 for (sta = hapd->sta_list; sta; sta = sta->next) {
958 if (sta->radius_das_match) {
963 selected = sta;
984 struct sta_info *sta;
990 sta = hostapd_das_find_sta(hapd, attr, &multi);
991 if (sta == NULL) {
1007 " - disconnecting", MAC2STR(sta->addr));
1008 wpa_auth_pmksa_remove(hapd->wpa_auth, sta->addr);
1010 hostapd_drv_sta_deauth(hapd, sta->addr,
1012 ap_sta_deauthenticate(hapd, sta, WLAN_REASON_PREV_AUTH_NOT_VALID);
1023 struct sta_info *sta;
1029 sta = hostapd_das_find_sta(hapd, attr, &multi);
1030 if (!sta) {
1041 " - CoA", MAC2STR(sta->addr));
1050 hs20_t_c_filtering(hapd, sta, 0);
1077 " sta TEXT,"
1081 "CREATE INDEX idx_sta_reqtype ON radius_attributes(sta,reqtype);";
1818 struct sta_info *sta = ap_get_sta(hapd, addr);
1820 return sta ? sta->mb_ies : NULL;
1828 struct sta_info *sta = ap_get_sta(hapd, addr);
1830 if (sta) {
1834 wpabuf_free(sta->mb_ies);
1835 sta->mb_ies = mb_ies_by_info(&info);
3210 * @sta: Pointer to the associated STA data
3218 void hostapd_new_assoc_sta(struct hostapd_data *hapd, struct sta_info *sta,
3222 hostapd_drv_sta_deauth(hapd, sta->addr,
3227 hostapd_prune_associations(hapd, sta->addr);
3228 ap_sta_clear_disconnect_timeouts(hapd, sta);
3229 sta->post_csa_sa_query = 0;
3232 if (sta->p2p_ie == NULL && !sta->no_p2p_set) {
3233 sta->no_p2p_set = 1;
3240 airtime_policy_new_sta(hapd, sta);
3246 ap_sta_set_authorized(hapd, sta, 1);
3247 os_get_reltime(&sta->connected_time);
3248 accounting_sta_start(hapd, sta);
3252 ieee802_1x_new_station(hapd, sta);
3254 if (sta->auth_alg != WLAN_AUTH_FT &&
3255 sta->auth_alg != WLAN_AUTH_FILS_SK &&
3256 sta->auth_alg != WLAN_AUTH_FILS_SK_PFS &&
3257 sta->auth_alg != WLAN_AUTH_FILS_PK &&
3258 !(sta->flags & (WLAN_STA_WPS | WLAN_STA_MAYBE_WPS)))
3259 wpa_auth_sm_event(sta->wpa_sm, WPA_REAUTH);
3261 wpa_auth_sta_associated(hapd->wpa_auth, sta->wpa_sm);
3264 if (eloop_cancel_timeout(ap_handle_timer, hapd, sta) > 0) {
3269 MAC2STR(sta->addr));
3276 hapd->conf->iface, __func__, MAC2STR(sta->addr),
3278 eloop_cancel_timeout(ap_handle_timer, hapd, sta);
3280 ap_handle_timer, hapd, sta);
3286 ieee802_1x_create_preshared_mka_hapd(hapd, sta);
3288 ieee802_1x_alloc_kay_sm_hapd(hapd, sta);
3770 struct sta_info *sta;
3774 for (sta = hapd->sta_list; sta; sta = sta->next) {
3775 if (!sta->post_csa_sa_query)
3780 MAC2STR(sta->addr));
3781 ap_sta_disconnect(hapd, sta, sta->addr,