Lines Matching refs:sta_priv

181 			       struct wcn36xx_sta *sta_priv)  in get_sta_index()  argument
184 sta_priv->bss_sta_index : in get_sta_index()
185 sta_priv->sta_index; in get_sta_index()
480 struct wcn36xx_sta *sta_priv = NULL; in wcn36xx_tx() local
483 sta_priv = wcn36xx_sta_to_priv(control->sta); in wcn36xx_tx()
485 if (wcn36xx_start_tx(wcn, sta_priv, skb)) in wcn36xx_tx()
496 struct wcn36xx_sta *sta_priv = sta ? wcn36xx_sta_to_priv(sta) : NULL; in wcn36xx_set_key() local
548 sta_priv->is_data_encrypted = true; in wcn36xx_set_key()
562 get_sta_index(vif, sta_priv)); in wcn36xx_set_key()
573 list_for_each_entry(sta_priv, in wcn36xx_set_key()
575 sta_priv->is_data_encrypted = true; in wcn36xx_set_key()
581 get_sta_index(vif, sta_priv)); in wcn36xx_set_key()
596 sta_priv->is_data_encrypted = false; in wcn36xx_set_key()
598 if (sta_priv->aid) in wcn36xx_set_key()
602 get_sta_index(vif, sta_priv)); in wcn36xx_set_key()
714 struct wcn36xx_sta *sta_priv = wcn36xx_sta_to_priv(sta); in wcn36xx_update_allowed_rates() local
717 memset(&sta_priv->supported_rates, 0, in wcn36xx_update_allowed_rates()
718 sizeof(sta_priv->supported_rates)); in wcn36xx_update_allowed_rates()
719 sta_priv->supported_rates.op_rate_mode = STA_11n; in wcn36xx_update_allowed_rates()
721 size = ARRAY_SIZE(sta_priv->supported_rates.dsss_rates); in wcn36xx_update_allowed_rates()
722 rates_table = sta_priv->supported_rates.dsss_rates; in wcn36xx_update_allowed_rates()
732 size = ARRAY_SIZE(sta_priv->supported_rates.ofdm_rates); in wcn36xx_update_allowed_rates()
733 rates_table = sta_priv->supported_rates.ofdm_rates; in wcn36xx_update_allowed_rates()
743 sizeof(sta_priv->supported_rates.supported_mcs_set)); in wcn36xx_update_allowed_rates()
744 memcpy(sta_priv->supported_rates.supported_mcs_set, in wcn36xx_update_allowed_rates()
837 struct wcn36xx_sta *sta_priv; in wcn36xx_bss_info_changed() local
859 sta_priv = wcn36xx_sta_to_priv(sta); in wcn36xx_bss_info_changed()
869 sta_priv->aid = bss_conf->aid; in wcn36xx_bss_info_changed()
1005 struct wcn36xx_sta *sta_priv = wcn36xx_sta_to_priv(sta); in wcn36xx_sta_add() local
1011 spin_lock_init(&sta_priv->ampdu_lock); in wcn36xx_sta_add()
1012 sta_priv->vif = vif_priv; in wcn36xx_sta_add()
1013 list_add(&sta_priv->list, &vif_priv->sta_list); in wcn36xx_sta_add()
1021 sta_priv->aid = sta->aid; in wcn36xx_sta_add()
1035 struct wcn36xx_sta *sta_priv = wcn36xx_sta_to_priv(sta); in wcn36xx_sta_remove() local
1038 vif, sta->addr, sta_priv->sta_index); in wcn36xx_sta_remove()
1042 list_del(&sta_priv->list); in wcn36xx_sta_remove()
1043 wcn36xx_smd_delete_sta(wcn, sta_priv->sta_index); in wcn36xx_sta_remove()
1044 sta_priv->vif = NULL; in wcn36xx_sta_remove()
1082 struct wcn36xx_sta *sta_priv = wcn36xx_sta_to_priv(params->sta); in wcn36xx_ampdu_action() local
1095 sta_priv->tid = tid; in wcn36xx_ampdu_action()
1097 get_sta_index(vif, sta_priv)); in wcn36xx_ampdu_action()
1099 wcn36xx_smd_trigger_ba(wcn, get_sta_index(vif, sta_priv)); in wcn36xx_ampdu_action()
1102 wcn36xx_smd_del_ba(wcn, tid, get_sta_index(vif, sta_priv)); in wcn36xx_ampdu_action()
1105 spin_lock_bh(&sta_priv->ampdu_lock); in wcn36xx_ampdu_action()
1106 sta_priv->ampdu_state[tid] = WCN36XX_AMPDU_START; in wcn36xx_ampdu_action()
1107 spin_unlock_bh(&sta_priv->ampdu_lock); in wcn36xx_ampdu_action()
1112 spin_lock_bh(&sta_priv->ampdu_lock); in wcn36xx_ampdu_action()
1113 sta_priv->ampdu_state[tid] = WCN36XX_AMPDU_OPERATIONAL; in wcn36xx_ampdu_action()
1114 spin_unlock_bh(&sta_priv->ampdu_lock); in wcn36xx_ampdu_action()
1117 get_sta_index(vif, sta_priv)); in wcn36xx_ampdu_action()
1122 spin_lock_bh(&sta_priv->ampdu_lock); in wcn36xx_ampdu_action()
1123 sta_priv->ampdu_state[tid] = WCN36XX_AMPDU_NONE; in wcn36xx_ampdu_action()
1124 spin_unlock_bh(&sta_priv->ampdu_lock); in wcn36xx_ampdu_action()