Lines Matching refs:sta
152 struct ieee80211_sta *sta,
397 struct ieee80211_sta *sta) in rs_tl_turn_on_agg_for_tid() argument
416 sta->addr, tid); in rs_tl_turn_on_agg_for_tid()
417 ret = ieee80211_start_tx_ba_session(sta, tid, 5000); in rs_tl_turn_on_agg_for_tid()
426 ieee80211_stop_tx_ba_session(sta, tid); in rs_tl_turn_on_agg_for_tid()
433 struct ieee80211_sta *sta) in rs_tl_turn_on_agg() argument
436 rs_tl_turn_on_agg_for_tid(priv, lq_data, tid, sta); in rs_tl_turn_on_agg()
697 static bool rs_use_green(struct ieee80211_sta *sta) in rs_use_green() argument
892 struct ieee80211_sta *sta, void *priv_sta, in rs_tx_status() argument
908 struct iwl_station_priv *sta_priv = (void *)sta->drv_priv; in rs_tx_status()
1071 if (sta && sta->supp_rates[sband->band]) in rs_tx_status()
1072 rs_rate_scale_perform(priv, skb, sta, lq_sta); in rs_tx_status()
1262 struct ieee80211_sta *sta, in rs_switch_to_mimo2() argument
1268 struct iwl_station_priv *sta_priv = (void *)sta->drv_priv; in rs_switch_to_mimo2()
1271 if (!conf_is_ht(conf) || !sta->ht_cap.ht_supported) in rs_switch_to_mimo2()
1274 if (sta->smps_mode == IEEE80211_SMPS_STATIC) in rs_switch_to_mimo2()
1289 if (iwl_is_ht40_tx_allowed(priv, ctx, sta)) in rs_switch_to_mimo2()
1317 struct ieee80211_sta *sta, in rs_switch_to_mimo3() argument
1323 struct iwl_station_priv *sta_priv = (void *)sta->drv_priv; in rs_switch_to_mimo3()
1326 if (!conf_is_ht(conf) || !sta->ht_cap.ht_supported) in rs_switch_to_mimo3()
1329 if (sta->smps_mode == IEEE80211_SMPS_STATIC) in rs_switch_to_mimo3()
1344 if (iwl_is_ht40_tx_allowed(priv, ctx, sta)) in rs_switch_to_mimo3()
1373 struct ieee80211_sta *sta, in rs_switch_to_siso() argument
1379 struct iwl_station_priv *sta_priv = (void *)sta->drv_priv; in rs_switch_to_siso()
1382 if (!conf_is_ht(conf) || !sta->ht_cap.ht_supported) in rs_switch_to_siso()
1393 if (iwl_is_ht40_tx_allowed(priv, ctx, sta)) in rs_switch_to_siso()
1422 struct ieee80211_sta *sta, in rs_move_legacy_other() argument
1514 ret = rs_switch_to_siso(priv, lq_sta, conf, sta, in rs_move_legacy_other()
1541 ret = rs_switch_to_mimo2(priv, lq_sta, conf, sta, in rs_move_legacy_other()
1561 ret = rs_switch_to_mimo3(priv, lq_sta, conf, sta, in rs_move_legacy_other()
1597 struct ieee80211_sta *sta, int index) in rs_move_siso_to_other() argument
1604 struct ieee80211_sta_ht_cap *ht_cap = &sta->ht_cap; in rs_move_siso_to_other()
1692 ret = rs_switch_to_mimo2(priv, lq_sta, conf, sta, in rs_move_siso_to_other()
1736 ret = rs_switch_to_mimo3(priv, lq_sta, conf, sta, in rs_move_siso_to_other()
1769 struct ieee80211_sta *sta, int index) in rs_move_mimo2_to_other() argument
1776 struct ieee80211_sta_ht_cap *ht_cap = &sta->ht_cap; in rs_move_mimo2_to_other()
1858 ret = rs_switch_to_siso(priv, lq_sta, conf, sta, in rs_move_mimo2_to_other()
1905 ret = rs_switch_to_mimo3(priv, lq_sta, conf, sta, in rs_move_mimo2_to_other()
1939 struct ieee80211_sta *sta, int index) in rs_move_mimo3_to_other() argument
1946 struct ieee80211_sta_ht_cap *ht_cap = &sta->ht_cap; in rs_move_mimo3_to_other()
2026 ret = rs_switch_to_siso(priv, lq_sta, conf, sta, in rs_move_mimo3_to_other()
2050 ret = rs_switch_to_mimo2(priv, lq_sta, conf, sta, in rs_move_mimo3_to_other()
2214 struct ieee80211_sta *sta, in rs_rate_scale_perform() argument
2242 struct iwl_station_priv *sta_priv = (void *)sta->drv_priv; in rs_rate_scale_perform()
2253 lq_sta->supp_rates = sta->supp_rates[lq_sta->band]; in rs_rate_scale_perform()
2280 lq_sta->is_green = rs_use_green(sta); in rs_rate_scale_perform()
2581 rs_move_legacy_other(priv, lq_sta, conf, sta, index); in rs_rate_scale_perform()
2583 rs_move_siso_to_other(priv, lq_sta, conf, sta, index); in rs_rate_scale_perform()
2585 rs_move_mimo2_to_other(priv, lq_sta, conf, sta, index); in rs_rate_scale_perform()
2587 rs_move_mimo3_to_other(priv, lq_sta, conf, sta, index); in rs_rate_scale_perform()
2636 lq_sta, sta); in rs_rate_scale_perform()
2663 struct ieee80211_sta *sta, in rs_initialize_lq() argument
2670 u8 use_green = rs_use_green(sta); in rs_initialize_lq()
2676 if (!sta || !lq_sta) in rs_initialize_lq()
2679 sta_priv = (void *)sta->drv_priv; in rs_initialize_lq()
2715 static void rs_get_rate(void *priv_r, struct ieee80211_sta *sta, void *priv_sta, in rs_get_rate() argument
2748 if (rate_control_send_low(sta, priv_sta, txrc)) in rs_get_rate()
2777 rate_idx = rate_lowest_index(sband, sta); in rs_get_rate()
2787 static void *rs_alloc_sta(void *priv_rate, struct ieee80211_sta *sta, in rs_alloc_sta() argument
2790 struct iwl_station_priv *sta_priv = (struct iwl_station_priv *) sta->drv_priv; in rs_alloc_sta()
2803 void iwl_rs_rate_init(struct iwl_priv *priv, struct ieee80211_sta *sta, u8 sta_id) in iwl_rs_rate_init() argument
2808 struct ieee80211_sta_ht_cap *ht_cap = &sta->ht_cap; in iwl_rs_rate_init()
2814 sta_priv = (struct iwl_station_priv *) sta->drv_priv; in iwl_rs_rate_init()
2826 lq_sta->supp_rates = sta->supp_rates[sband->band]; in iwl_rs_rate_init()
2838 lq_sta->is_green = rs_use_green(sta); in iwl_rs_rate_init()
2843 supp = sta->supp_rates[sband->band]; in iwl_rs_rate_init()
2891 lq_sta->last_txrate_idx = rate_lowest_index(sband, sta); in iwl_rs_rate_init()
2899 rs_initialize_lq(priv, sta, lq_sta); in iwl_rs_rate_init()
3060 static void rs_free_sta(void *priv_r, struct ieee80211_sta *sta, in rs_free_sta() argument
3319 struct ieee80211_sta *sta, void *priv_sta) in rs_rate_init_stub() argument