Lines Matching refs:sta_priv
189 struct wcn36xx_sta *sta_priv) in get_sta_index() argument
192 sta_priv->bss_sta_index : in get_sta_index()
193 sta_priv->sta_index; in get_sta_index()
491 struct wcn36xx_sta *sta_priv = NULL; in wcn36xx_tx() local
494 sta_priv = wcn36xx_sta_to_priv(control->sta); in wcn36xx_tx()
496 if (wcn36xx_start_tx(wcn, sta_priv, skb)) in wcn36xx_tx()
507 struct wcn36xx_sta *sta_priv = sta ? wcn36xx_sta_to_priv(sta) : NULL; in wcn36xx_set_key() local
559 sta_priv->is_data_encrypted = true; in wcn36xx_set_key()
575 get_sta_index(vif, sta_priv)); in wcn36xx_set_key()
586 list_for_each_entry(sta_priv, in wcn36xx_set_key()
588 sta_priv->is_data_encrypted = true; in wcn36xx_set_key()
594 get_sta_index(vif, sta_priv)); in wcn36xx_set_key()
609 sta_priv->is_data_encrypted = false; in wcn36xx_set_key()
611 if (sta_priv->aid) in wcn36xx_set_key()
615 get_sta_index(vif, sta_priv)); in wcn36xx_set_key()
722 struct wcn36xx_sta *sta_priv = wcn36xx_sta_to_priv(sta); in wcn36xx_update_allowed_rates() local
725 memset(&sta_priv->supported_rates, 0, in wcn36xx_update_allowed_rates()
726 sizeof(sta_priv->supported_rates)); in wcn36xx_update_allowed_rates()
727 sta_priv->supported_rates.op_rate_mode = STA_11n; in wcn36xx_update_allowed_rates()
729 size = ARRAY_SIZE(sta_priv->supported_rates.dsss_rates); in wcn36xx_update_allowed_rates()
730 rates_table = sta_priv->supported_rates.dsss_rates; in wcn36xx_update_allowed_rates()
740 size = ARRAY_SIZE(sta_priv->supported_rates.ofdm_rates); in wcn36xx_update_allowed_rates()
741 rates_table = sta_priv->supported_rates.ofdm_rates; in wcn36xx_update_allowed_rates()
751 sizeof(sta_priv->supported_rates.supported_mcs_set)); in wcn36xx_update_allowed_rates()
752 memcpy(sta_priv->supported_rates.supported_mcs_set, in wcn36xx_update_allowed_rates()
758 sta_priv->supported_rates.op_rate_mode = STA_11ac; in wcn36xx_update_allowed_rates()
759 sta_priv->supported_rates.vht_rx_mcs_map = in wcn36xx_update_allowed_rates()
761 sta_priv->supported_rates.vht_tx_mcs_map = in wcn36xx_update_allowed_rates()
862 struct wcn36xx_sta *sta_priv; in wcn36xx_bss_info_changed() local
884 sta_priv = wcn36xx_sta_to_priv(sta); in wcn36xx_bss_info_changed()
894 sta_priv->aid = vif->cfg.aid; in wcn36xx_bss_info_changed()
1031 struct wcn36xx_sta *sta_priv = wcn36xx_sta_to_priv(sta); in wcn36xx_sta_add() local
1037 spin_lock_init(&sta_priv->ampdu_lock); in wcn36xx_sta_add()
1038 sta_priv->vif = vif_priv; in wcn36xx_sta_add()
1039 list_add(&sta_priv->list, &vif_priv->sta_list); in wcn36xx_sta_add()
1047 sta_priv->aid = sta->aid; in wcn36xx_sta_add()
1061 struct wcn36xx_sta *sta_priv = wcn36xx_sta_to_priv(sta); in wcn36xx_sta_remove() local
1064 vif, sta->addr, sta_priv->sta_index); in wcn36xx_sta_remove()
1068 list_del(&sta_priv->list); in wcn36xx_sta_remove()
1069 wcn36xx_smd_delete_sta(wcn, sta_priv->sta_index); in wcn36xx_sta_remove()
1070 sta_priv->vif = NULL; in wcn36xx_sta_remove()
1182 struct wcn36xx_sta *sta_priv = wcn36xx_sta_to_priv(params->sta); in wcn36xx_ampdu_action() local
1197 sta_priv->tid = tid; in wcn36xx_ampdu_action()
1199 get_sta_index(vif, sta_priv)); in wcn36xx_ampdu_action()
1207 wcn36xx_smd_del_ba(wcn, tid, 0, get_sta_index(vif, sta_priv)); in wcn36xx_ampdu_action()
1210 spin_lock_bh(&sta_priv->ampdu_lock); in wcn36xx_ampdu_action()
1211 sta_priv->ampdu_state[tid] = WCN36XX_AMPDU_START; in wcn36xx_ampdu_action()
1212 spin_unlock_bh(&sta_priv->ampdu_lock); in wcn36xx_ampdu_action()
1216 wcn36xx_smd_trigger_ba(wcn, get_sta_index(vif, sta_priv), tid, ssn); in wcn36xx_ampdu_action()
1221 get_sta_index(vif, sta_priv)); in wcn36xx_ampdu_action()
1229 spin_lock_bh(&sta_priv->ampdu_lock); in wcn36xx_ampdu_action()
1230 sta_priv->ampdu_state[tid] = WCN36XX_AMPDU_OPERATIONAL; in wcn36xx_ampdu_action()
1231 spin_unlock_bh(&sta_priv->ampdu_lock); in wcn36xx_ampdu_action()
1237 spin_lock_bh(&sta_priv->ampdu_lock); in wcn36xx_ampdu_action()
1238 sta_priv->ampdu_state[tid] = WCN36XX_AMPDU_NONE; in wcn36xx_ampdu_action()
1239 spin_unlock_bh(&sta_priv->ampdu_lock); in wcn36xx_ampdu_action()
1241 wcn36xx_smd_del_ba(wcn, tid, 1, get_sta_index(vif, sta_priv)); in wcn36xx_ampdu_action()