Lines Matching defs:sta
769 struct sta_info *selected, *sta;
776 for (sta = hapd->sta_list; sta; sta = sta->next)
777 sta->radius_das_match = 1;
781 sta = ap_get_sta(hapd, attr->sta_addr);
782 if (!sta) {
788 selected = sta;
789 for (sta = hapd->sta_list; sta; sta = sta->next) {
790 if (sta != selected)
791 sta->radius_das_match = 0;
805 for (sta = hapd->sta_list; sta; sta = sta->next) {
806 if (!sta->radius_das_match)
809 (unsigned long long) sta->acct_session_id);
811 sta->radius_das_match = 0;
833 for (sta = hapd->sta_list; sta; sta = sta->next) {
834 if (!sta->radius_das_match)
836 if (!sta->eapol_sm ||
837 !sta->eapol_sm->acct_multi_session_id) {
838 sta->radius_das_match = 0;
843 sta->eapol_sm->acct_multi_session_id);
846 sta->radius_das_match = 0;
864 for (sta = hapd->sta_list; sta; sta = sta->next) {
867 if (!sta->radius_das_match)
869 cui = ieee802_1x_get_radius_cui(sta->eapol_sm);
873 sta->radius_das_match = 0;
891 for (sta = hapd->sta_list; sta; sta = sta->next) {
895 if (!sta->radius_das_match)
897 identity = ieee802_1x_get_identity(sta->eapol_sm,
903 sta->radius_das_match = 0;
929 for (sta = hapd->sta_list; sta; sta = sta->next) {
930 if (sta->radius_das_match) {
935 selected = sta;
956 struct sta_info *sta;
962 sta = hostapd_das_find_sta(hapd, attr, &multi);
963 if (sta == NULL) {
979 " - disconnecting", MAC2STR(sta->addr));
980 wpa_auth_pmksa_remove(hapd->wpa_auth, sta->addr);
982 hostapd_drv_sta_deauth(hapd, sta->addr,
984 ap_sta_deauthenticate(hapd, sta, WLAN_REASON_PREV_AUTH_NOT_VALID);
995 struct sta_info *sta;
1001 sta = hostapd_das_find_sta(hapd, attr, &multi);
1002 if (!sta) {
1013 " - CoA", MAC2STR(sta->addr));
1022 hs20_t_c_filtering(hapd, sta, 0);
1049 " sta TEXT,"
1053 "CREATE INDEX idx_sta_reqtype ON radius_attributes(sta,reqtype);";
1673 struct sta_info *sta = ap_get_sta(hapd, addr);
1675 return sta ? sta->mb_ies : NULL;
1683 struct sta_info *sta = ap_get_sta(hapd, addr);
1685 if (sta) {
1689 wpabuf_free(sta->mb_ies);
1690 sta->mb_ies = mb_ies_by_info(&info);
3041 * @sta: Pointer to the associated STA data
3049 void hostapd_new_assoc_sta(struct hostapd_data *hapd, struct sta_info *sta,
3053 hostapd_drv_sta_deauth(hapd, sta->addr,
3058 hostapd_prune_associations(hapd, sta->addr);
3059 ap_sta_clear_disconnect_timeouts(hapd, sta);
3063 iapp_new_station(hapd->iapp, sta);
3066 if (sta->p2p_ie == NULL && !sta->no_p2p_set) {
3067 sta->no_p2p_set = 1;
3074 airtime_policy_new_sta(hapd, sta);
3080 ap_sta_set_authorized(hapd, sta, 1);
3081 os_get_reltime(&sta->connected_time);
3082 accounting_sta_start(hapd, sta);
3086 ieee802_1x_new_station(hapd, sta);
3088 if (sta->auth_alg != WLAN_AUTH_FT &&
3089 sta->auth_alg != WLAN_AUTH_FILS_SK &&
3090 sta->auth_alg != WLAN_AUTH_FILS_SK_PFS &&
3091 sta->auth_alg != WLAN_AUTH_FILS_PK &&
3092 !(sta->flags & (WLAN_STA_WPS | WLAN_STA_MAYBE_WPS)))
3093 wpa_auth_sm_event(sta->wpa_sm, WPA_REAUTH);
3095 wpa_auth_sta_associated(hapd->wpa_auth, sta->wpa_sm);
3098 if (eloop_cancel_timeout(ap_handle_timer, hapd, sta) > 0) {
3103 MAC2STR(sta->addr));
3110 hapd->conf->iface, __func__, MAC2STR(sta->addr),
3112 eloop_cancel_timeout(ap_handle_timer, hapd, sta);
3114 ap_handle_timer, hapd, sta);
3120 ieee802_1x_create_preshared_mka_hapd(hapd, sta);
3122 ieee802_1x_alloc_kay_sm_hapd(hapd, sta);