• Home
  • Raw
  • Download

Lines Matching refs:sta

142 void ieee80211_assign_tid_tx(struct sta_info *sta, int tid,  in ieee80211_assign_tid_tx()  argument
145 lockdep_assert_held(&sta->ampdu_mlme.mtx); in ieee80211_assign_tid_tx()
146 lockdep_assert_held(&sta->lock); in ieee80211_assign_tid_tx()
147 rcu_assign_pointer(sta->ampdu_mlme.tid_tx[tid], tid_tx); in ieee80211_assign_tid_tx()
190 ieee80211_agg_stop_txq(struct sta_info *sta, int tid) in ieee80211_agg_stop_txq() argument
192 struct ieee80211_txq *txq = sta->sta.txq[tid]; in ieee80211_agg_stop_txq()
211 ieee80211_agg_start_txq(struct sta_info *sta, int tid, bool enable) in ieee80211_agg_start_txq() argument
213 struct ieee80211_txq *txq = sta->sta.txq[tid]; in ieee80211_agg_start_txq()
216 lockdep_assert_held(&sta->ampdu_mlme.mtx); in ieee80211_agg_start_txq()
231 schedule_and_wake_txq(sta->sdata->local, txqi); in ieee80211_agg_start_txq()
270 static void ieee80211_remove_tid_tx(struct sta_info *sta, int tid) in ieee80211_remove_tid_tx() argument
274 lockdep_assert_held(&sta->ampdu_mlme.mtx); in ieee80211_remove_tid_tx()
275 lockdep_assert_held(&sta->lock); in ieee80211_remove_tid_tx()
277 tid_tx = rcu_dereference_protected_tid_tx(sta, tid); in ieee80211_remove_tid_tx()
289 ieee80211_agg_splice_packets(sta->sdata, tid_tx, tid); in ieee80211_remove_tid_tx()
292 ieee80211_assign_tid_tx(sta, tid, NULL); in ieee80211_remove_tid_tx()
294 ieee80211_agg_splice_finish(sta->sdata, tid); in ieee80211_remove_tid_tx()
299 int ___ieee80211_stop_tx_ba_session(struct sta_info *sta, u16 tid, in ___ieee80211_stop_tx_ba_session() argument
302 struct ieee80211_local *local = sta->local; in ___ieee80211_stop_tx_ba_session()
305 .sta = &sta->sta, in ___ieee80211_stop_tx_ba_session()
314 lockdep_assert_held(&sta->ampdu_mlme.mtx); in ___ieee80211_stop_tx_ba_session()
330 spin_lock_bh(&sta->lock); in ___ieee80211_stop_tx_ba_session()
333 tid_tx = sta->ampdu_mlme.tid_start_tx[tid]; in ___ieee80211_stop_tx_ba_session()
335 sta->ampdu_mlme.tid_start_tx[tid] = NULL; in ___ieee80211_stop_tx_ba_session()
337 tid_tx = rcu_dereference_protected_tid_tx(sta, tid); in ___ieee80211_stop_tx_ba_session()
339 spin_unlock_bh(&sta->lock); in ___ieee80211_stop_tx_ba_session()
348 spin_unlock_bh(&sta->lock); in ___ieee80211_stop_tx_ba_session()
352 ret = drv_ampdu_action(local, sta->sdata, &params); in ___ieee80211_stop_tx_ba_session()
359 ieee80211_assign_tid_tx(sta, tid, NULL); in ___ieee80211_stop_tx_ba_session()
360 spin_unlock_bh(&sta->lock); in ___ieee80211_stop_tx_ba_session()
367 ieee80211_agg_stop_txq(sta, tid); in ___ieee80211_stop_tx_ba_session()
369 spin_unlock_bh(&sta->lock); in ___ieee80211_stop_tx_ba_session()
371 ht_dbg(sta->sdata, "Tx BA session stop requested for %pM tid %u\n", in ___ieee80211_stop_tx_ba_session()
372 sta->sta.addr, tid); in ___ieee80211_stop_tx_ba_session()
404 ret = drv_ampdu_action(local, sta->sdata, &params); in ___ieee80211_stop_tx_ba_session()
435 struct sta_info *sta = tid_tx->sta; in sta_addba_resp_timer_expired() local
440 ht_dbg(sta->sdata, in sta_addba_resp_timer_expired()
442 sta->sta.addr, tid); in sta_addba_resp_timer_expired()
446 ht_dbg(sta->sdata, "addBA response timer expired on %pM tid %d\n", in sta_addba_resp_timer_expired()
447 sta->sta.addr, tid); in sta_addba_resp_timer_expired()
449 ieee80211_stop_tx_ba_session(&sta->sta, tid); in sta_addba_resp_timer_expired()
452 static void ieee80211_send_addba_with_timeout(struct sta_info *sta, in ieee80211_send_addba_with_timeout() argument
455 struct ieee80211_sub_if_data *sdata = sta->sdata; in ieee80211_send_addba_with_timeout()
456 struct ieee80211_local *local = sta->local; in ieee80211_send_addba_with_timeout()
463 sta->sta.addr, tid); in ieee80211_send_addba_with_timeout()
465 spin_lock_bh(&sta->lock); in ieee80211_send_addba_with_timeout()
466 sta->ampdu_mlme.last_addba_req_time[tid] = jiffies; in ieee80211_send_addba_with_timeout()
467 sta->ampdu_mlme.addba_req_num[tid]++; in ieee80211_send_addba_with_timeout()
468 spin_unlock_bh(&sta->lock); in ieee80211_send_addba_with_timeout()
470 if (sta->sta.he_cap.has_he) { in ieee80211_send_addba_with_timeout()
483 ieee80211_send_addba_request(sdata, sta->sta.addr, tid, in ieee80211_send_addba_with_timeout()
490 void ieee80211_tx_ba_session_handle_start(struct sta_info *sta, int tid) in ieee80211_tx_ba_session_handle_start() argument
493 struct ieee80211_local *local = sta->local; in ieee80211_tx_ba_session_handle_start()
494 struct ieee80211_sub_if_data *sdata = sta->sdata; in ieee80211_tx_ba_session_handle_start()
496 .sta = &sta->sta, in ieee80211_tx_ba_session_handle_start()
505 tid_tx = rcu_dereference_protected_tid_tx(sta, tid); in ieee80211_tx_ba_session_handle_start()
514 ieee80211_agg_stop_txq(sta, tid); in ieee80211_tx_ba_session_handle_start()
524 params.ssn = sta->tid_seq[tid] >> 4; in ieee80211_tx_ba_session_handle_start()
539 sta->sta.addr, tid); in ieee80211_tx_ba_session_handle_start()
540 spin_lock_bh(&sta->lock); in ieee80211_tx_ba_session_handle_start()
542 ieee80211_assign_tid_tx(sta, tid, NULL); in ieee80211_tx_ba_session_handle_start()
544 spin_unlock_bh(&sta->lock); in ieee80211_tx_ba_session_handle_start()
546 ieee80211_agg_start_txq(sta, tid, false); in ieee80211_tx_ba_session_handle_start()
552 ieee80211_send_addba_with_timeout(sta, tid_tx); in ieee80211_tx_ba_session_handle_start()
562 struct sta_info *sta = tid_tx->sta; in sta_tx_agg_session_timer_expired() local
576 ht_dbg(sta->sdata, "tx session timer expired on %pM tid %d\n", in sta_tx_agg_session_timer_expired()
577 sta->sta.addr, tid); in sta_tx_agg_session_timer_expired()
579 ieee80211_stop_tx_ba_session(&sta->sta, tid); in sta_tx_agg_session_timer_expired()
585 struct sta_info *sta = container_of(pubsta, struct sta_info, sta); in ieee80211_start_tx_ba_session() local
586 struct ieee80211_sub_if_data *sdata = sta->sdata; in ieee80211_start_tx_ba_session()
593 if (WARN(sta->reserved_tid == tid, in ieee80211_start_tx_ba_session()
598 sta->sdata->vif.bss_conf.chandef.chan->band != NL80211_BAND_6GHZ) in ieee80211_start_tx_ba_session()
622 if (test_sta_flag(sta, WLAN_STA_BLOCK_BA)) { in ieee80211_start_tx_ba_session()
625 sta->sta.addr, tid); in ieee80211_start_tx_ba_session()
641 if (sta->sdata->vif.type == NL80211_IFTYPE_ADHOC && in ieee80211_start_tx_ba_session()
642 !sta->sta.ht_cap.ht_supported) { in ieee80211_start_tx_ba_session()
649 spin_lock_bh(&sta->lock); in ieee80211_start_tx_ba_session()
652 if (sta->ampdu_mlme.addba_req_num[tid] > HT_AGG_MAX_RETRIES) { in ieee80211_start_tx_ba_session()
662 if (sta->ampdu_mlme.addba_req_num[tid] > HT_AGG_BURST_RETRIES && in ieee80211_start_tx_ba_session()
663 time_before(jiffies, sta->ampdu_mlme.last_addba_req_time[tid] + in ieee80211_start_tx_ba_session()
667 sta->ampdu_mlme.addba_req_num[tid], sta->sta.addr, tid); in ieee80211_start_tx_ba_session()
672 tid_tx = rcu_dereference_protected_tid_tx(sta, tid); in ieee80211_start_tx_ba_session()
674 if (tid_tx || sta->ampdu_mlme.tid_start_tx[tid]) { in ieee80211_start_tx_ba_session()
677 sta->sta.addr, tid); in ieee80211_start_tx_ba_session()
693 tid_tx->sta = sta; in ieee80211_start_tx_ba_session()
704 sta->ampdu_mlme.dialog_token_allocator++; in ieee80211_start_tx_ba_session()
705 tid_tx->dialog_token = sta->ampdu_mlme.dialog_token_allocator; in ieee80211_start_tx_ba_session()
711 sta->ampdu_mlme.tid_start_tx[tid] = tid_tx; in ieee80211_start_tx_ba_session()
713 ieee80211_queue_work(&local->hw, &sta->ampdu_mlme.work); in ieee80211_start_tx_ba_session()
717 spin_unlock_bh(&sta->lock); in ieee80211_start_tx_ba_session()
723 struct sta_info *sta, u16 tid) in ieee80211_agg_tx_operational() argument
727 .sta = &sta->sta, in ieee80211_agg_tx_operational()
734 lockdep_assert_held(&sta->ampdu_mlme.mtx); in ieee80211_agg_tx_operational()
736 tid_tx = rcu_dereference_protected_tid_tx(sta, tid); in ieee80211_agg_tx_operational()
740 ht_dbg(sta->sdata, "Aggregation is on for %pM tid %d\n", in ieee80211_agg_tx_operational()
741 sta->sta.addr, tid); in ieee80211_agg_tx_operational()
743 drv_ampdu_action(local, sta->sdata, &params); in ieee80211_agg_tx_operational()
749 spin_lock_bh(&sta->lock); in ieee80211_agg_tx_operational()
751 ieee80211_agg_splice_packets(sta->sdata, tid_tx, tid); in ieee80211_agg_tx_operational()
758 ieee80211_agg_splice_finish(sta->sdata, tid); in ieee80211_agg_tx_operational()
760 spin_unlock_bh(&sta->lock); in ieee80211_agg_tx_operational()
762 ieee80211_agg_start_txq(sta, tid, true); in ieee80211_agg_tx_operational()
765 void ieee80211_start_tx_ba_cb(struct sta_info *sta, int tid, in ieee80211_start_tx_ba_cb() argument
768 struct ieee80211_sub_if_data *sdata = sta->sdata; in ieee80211_start_tx_ba_cb()
775 ieee80211_send_addba_with_timeout(sta, tid_tx); in ieee80211_start_tx_ba_cb()
781 ieee80211_agg_tx_operational(local, sta, tid); in ieee80211_start_tx_ba_cb()
786 const u8 *ra, u16 tid, struct sta_info **sta) in ieee80211_lookup_tid_tx() argument
796 *sta = sta_info_get_bss(sdata, ra); in ieee80211_lookup_tid_tx()
797 if (!*sta) { in ieee80211_lookup_tid_tx()
802 tid_tx = rcu_dereference((*sta)->ampdu_mlme.tid_tx[tid]); in ieee80211_lookup_tid_tx()
815 struct sta_info *sta; in ieee80211_start_tx_ba_cb_irqsafe() local
821 tid_tx = ieee80211_lookup_tid_tx(sdata, ra, tid, &sta); in ieee80211_start_tx_ba_cb_irqsafe()
826 ieee80211_queue_work(&local->hw, &sta->ampdu_mlme.work); in ieee80211_start_tx_ba_cb_irqsafe()
832 int __ieee80211_stop_tx_ba_session(struct sta_info *sta, u16 tid, in __ieee80211_stop_tx_ba_session() argument
837 mutex_lock(&sta->ampdu_mlme.mtx); in __ieee80211_stop_tx_ba_session()
839 ret = ___ieee80211_stop_tx_ba_session(sta, tid, reason); in __ieee80211_stop_tx_ba_session()
841 mutex_unlock(&sta->ampdu_mlme.mtx); in __ieee80211_stop_tx_ba_session()
848 struct sta_info *sta = container_of(pubsta, struct sta_info, sta); in ieee80211_stop_tx_ba_session() local
849 struct ieee80211_sub_if_data *sdata = sta->sdata; in ieee80211_stop_tx_ba_session()
862 spin_lock_bh(&sta->lock); in ieee80211_stop_tx_ba_session()
863 tid_tx = rcu_dereference_protected_tid_tx(sta, tid); in ieee80211_stop_tx_ba_session()
870 WARN(sta->reserved_tid == tid, in ieee80211_stop_tx_ba_session()
880 ieee80211_queue_work(&local->hw, &sta->ampdu_mlme.work); in ieee80211_stop_tx_ba_session()
883 spin_unlock_bh(&sta->lock); in ieee80211_stop_tx_ba_session()
888 void ieee80211_stop_tx_ba_cb(struct sta_info *sta, int tid, in ieee80211_stop_tx_ba_cb() argument
891 struct ieee80211_sub_if_data *sdata = sta->sdata; in ieee80211_stop_tx_ba_cb()
896 sta->sta.addr, tid); in ieee80211_stop_tx_ba_cb()
898 spin_lock_bh(&sta->lock); in ieee80211_stop_tx_ba_cb()
903 sta->sta.addr, tid); in ieee80211_stop_tx_ba_cb()
910 ieee80211_remove_tid_tx(sta, tid); in ieee80211_stop_tx_ba_cb()
914 spin_unlock_bh(&sta->lock); in ieee80211_stop_tx_ba_cb()
917 ieee80211_agg_start_txq(sta, tid, false); in ieee80211_stop_tx_ba_cb()
920 ieee80211_send_delba(sdata, sta->sta.addr, tid, in ieee80211_stop_tx_ba_cb()
929 struct sta_info *sta; in ieee80211_stop_tx_ba_cb_irqsafe() local
935 tid_tx = ieee80211_lookup_tid_tx(sdata, ra, tid, &sta); in ieee80211_stop_tx_ba_cb_irqsafe()
940 ieee80211_queue_work(&local->hw, &sta->ampdu_mlme.work); in ieee80211_stop_tx_ba_cb_irqsafe()
948 struct sta_info *sta, in ieee80211_process_addba_resp() argument
963 txq = sta->sta.txq[tid]; in ieee80211_process_addba_resp()
967 mutex_lock(&sta->ampdu_mlme.mtx); in ieee80211_process_addba_resp()
969 tid_tx = rcu_dereference_protected_tid_tx(sta, tid); in ieee80211_process_addba_resp()
974 ht_dbg(sta->sdata, "wrong addBA response token, %pM tid %d\n", in ieee80211_process_addba_resp()
975 sta->sta.addr, tid); in ieee80211_process_addba_resp()
981 ht_dbg(sta->sdata, "switched off addBA timer for %pM tid %d\n", in ieee80211_process_addba_resp()
982 sta->sta.addr, tid); in ieee80211_process_addba_resp()
991 ht_dbg(sta->sdata, in ieee80211_process_addba_resp()
993 sta->sta.addr, tid); in ieee80211_process_addba_resp()
1015 ieee80211_agg_tx_operational(local, sta, tid); in ieee80211_process_addba_resp()
1017 sta->ampdu_mlme.addba_req_num[tid] = 0; in ieee80211_process_addba_resp()
1029 ___ieee80211_stop_tx_ba_session(sta, tid, AGG_STOP_DECLINED); in ieee80211_process_addba_resp()
1033 mutex_unlock(&sta->ampdu_mlme.mtx); in ieee80211_process_addba_resp()