Lines Matching defs:sta

30 void rate_control_rate_init(struct sta_info *sta)
32 struct ieee80211_local *local = sta->sdata->local;
33 struct rate_control_ref *ref = sta->rate_ctrl;
34 struct ieee80211_sta *ista = &sta->sta;
35 void *priv_sta = sta->rate_ctrl_priv;
39 ieee80211_sta_set_rx_nss(sta);
46 chanctx_conf = rcu_dereference(sta->sdata->vif.chanctx_conf);
56 ieee80211_s1g_sta_rate_init(sta);
61 spin_lock_bh(&sta->rate_ctrl_lock);
64 spin_unlock_bh(&sta->rate_ctrl_lock);
66 set_sta_flag(sta, WLAN_STA_RATE_CONTROL);
74 struct sta_info *sta = container_of(st->sta, struct sta_info, sta);
75 void *priv_sta = sta->rate_ctrl_priv;
77 if (!ref || !test_sta_flag(sta, WLAN_STA_RATE_CONTROL))
80 spin_lock_bh(&sta->rate_ctrl_lock);
84 ref->ops->tx_status(ref->priv, sband, st->sta, priv_sta, st->skb);
88 spin_unlock_bh(&sta->rate_ctrl_lock);
93 struct sta_info *sta, u32 changed)
96 struct ieee80211_sta *ista = &sta->sta;
97 void *priv_sta = sta->rate_ctrl_priv;
103 chanctx_conf = rcu_dereference(sta->sdata->vif.chanctx_conf);
109 spin_lock_bh(&sta->rate_ctrl_lock);
112 spin_unlock_bh(&sta->rate_ctrl_lock);
115 drv_sta_rc_update(local, sta->sdata, &sta->sta, changed);
343 struct ieee80211_sta *sta,
369 if (!rate_supported(sta, sband->band, i))
376 "no supported rates for sta %pM (0x%x, band %d) in rate_mask 0x%x with flags 0x%x\n",
377 sta ? sta->addr : NULL,
378 sta ? sta->supp_rates[sband->band] : -1,
395 struct sta_info *sta;
411 sta = container_of(pubsta, struct sta_info, sta);
412 if (ieee80211_vif_is_mesh(&sta->sdata->vif))
713 static void rate_control_fill_sta_table(struct ieee80211_sta *sta,
721 if (sta && !info->control.skip_table)
722 ratetbl = rcu_dereference(sta->rates);
724 /* Fill remaining rate slots with data from the sta rate table. */
753 struct ieee80211_sta *sta, u32 *mask,
783 if (sta) {
788 *mask &= sta->supp_rates[sband->band];
790 mcs_mask[i] &= sta->ht_cap.mcs.rx_mask[i];
792 sta_vht_cap = sta->vht_cap.vht_mcs.rx_mcs_map;
802 rate_control_apply_mask_ratetbl(struct sta_info *sta,
812 if (!rate_control_cap_mask(sta->sdata, sband, &sta->sta, &mask,
816 chan_width = sta->sdata->vif.bss_conf.chandef.width;
828 struct ieee80211_sta *sta,
844 if (!rate_control_cap_mask(sdata, sband, sta, &mask, mcs_mask,
867 struct ieee80211_sta *sta,
877 rate_control_fill_sta_table(sta, info, dest, max_rates);
886 rate_control_apply_mask(sdata, sta, sband, dest, max_rates);
889 __rate_control_send_low(&sdata->local->hw, sband, sta, info,
892 if (sta)
898 struct sta_info *sta,
913 if (rate_control_send_low(sta ? &sta->sta : NULL, txrc))
919 if (sta && test_sta_flag(sta, WLAN_STA_RATE_CONTROL)) {
920 ista = &sta->sta;
921 priv_sta = sta->rate_ctrl_priv;
925 spin_lock_bh(&sta->rate_ctrl_lock);
927 spin_unlock_bh(&sta->rate_ctrl_lock);
944 struct sta_info *sta = container_of(pubsta, struct sta_info, sta);
948 sband = ieee80211_get_sband(sta->sdata);
951 rate_control_apply_mask_ratetbl(sta, sband, rates);
963 if (sta->uploaded)
964 drv_sta_rate_tbl_update(hw_to_local(hw), sta->sdata, pubsta);
966 ieee80211_sta_set_expected_throughput(pubsta, sta_get_expected_throughput(sta));