Lines Matching refs:sdata
61 static void ieee80211_send_addba_request(struct ieee80211_sub_if_data *sdata, in ieee80211_send_addba_request() argument
66 struct ieee80211_local *local = sdata->local; in ieee80211_send_addba_request()
79 memcpy(mgmt->sa, sdata->vif.addr, ETH_ALEN); in ieee80211_send_addba_request()
80 if (sdata->vif.type == NL80211_IFTYPE_AP || in ieee80211_send_addba_request()
81 sdata->vif.type == NL80211_IFTYPE_AP_VLAN || in ieee80211_send_addba_request()
82 sdata->vif.type == NL80211_IFTYPE_MESH_POINT) in ieee80211_send_addba_request()
83 memcpy(mgmt->bssid, sdata->vif.addr, ETH_ALEN); in ieee80211_send_addba_request()
84 else if (sdata->vif.type == NL80211_IFTYPE_STATION) in ieee80211_send_addba_request()
85 memcpy(mgmt->bssid, sdata->deflink.u.mgd.bssid, ETH_ALEN); in ieee80211_send_addba_request()
86 else if (sdata->vif.type == NL80211_IFTYPE_ADHOC) in ieee80211_send_addba_request()
87 memcpy(mgmt->bssid, sdata->u.ibss.bssid, ETH_ALEN); in ieee80211_send_addba_request()
109 ieee80211_tx_skb_tid(sdata, skb, tid, -1); in ieee80211_send_addba_request()
114 struct ieee80211_sub_if_data *sdata = vif_to_sdata(vif); in ieee80211_send_bar() local
115 struct ieee80211_local *local = sdata->local; in ieee80211_send_bar()
129 memcpy(bar->ta, sdata->vif.addr, ETH_ALEN); in ieee80211_send_bar()
138 ieee80211_tx_skb_tid(sdata, skb, tid, -1); in ieee80211_send_bar()
162 ieee80211_stop_queue_agg(struct ieee80211_sub_if_data *sdata, int tid) in __acquires()
164 int queue = sdata->vif.hw_queue[ieee80211_ac_from_tid(tid)]; in __acquires()
168 if (atomic_inc_return(&sdata->local->agg_queue_stop[queue]) == 1) in __acquires()
170 &sdata->local->hw, queue, in __acquires()
177 ieee80211_wake_queue_agg(struct ieee80211_sub_if_data *sdata, int tid) in __releases()
179 int queue = sdata->vif.hw_queue[ieee80211_ac_from_tid(tid)]; in __releases()
181 if (atomic_dec_return(&sdata->local->agg_queue_stop[queue]) == 0) in __releases()
183 &sdata->local->hw, queue, in __releases()
193 struct ieee80211_sub_if_data *sdata; in ieee80211_agg_stop_txq() local
201 sdata = vif_to_sdata(txq->vif); in ieee80211_agg_stop_txq()
202 fq = &sdata->local->fq; in ieee80211_agg_stop_txq()
231 schedule_and_wake_txq(sta->sdata->local, txqi); in ieee80211_agg_start_txq()
241 ieee80211_agg_splice_packets(struct ieee80211_sub_if_data *sdata, in __acquires()
244 struct ieee80211_local *local = sdata->local; in __acquires()
245 int queue = sdata->vif.hw_queue[ieee80211_ac_from_tid(tid)]; in __acquires()
248 ieee80211_stop_queue_agg(sdata, tid); in __acquires()
265 ieee80211_agg_splice_finish(struct ieee80211_sub_if_data *sdata, u16 tid) in __releases()
267 ieee80211_wake_queue_agg(sdata, tid); in __releases()
289 ieee80211_agg_splice_packets(sta->sdata, tid_tx, tid); in ieee80211_remove_tid_tx()
294 ieee80211_agg_splice_finish(sta->sdata, tid); in ieee80211_remove_tid_tx()
352 ret = drv_ampdu_action(local, sta->sdata, ¶ms); 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()
404 ret = drv_ampdu_action(local, sta->sdata, ¶ms); in ___ieee80211_stop_tx_ba_session()
440 ht_dbg(sta->sdata, 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()
455 struct ieee80211_sub_if_data *sdata = sta->sdata; in ieee80211_send_addba_with_timeout() local
462 ht_dbg(sdata, "activated addBA response timer on %pM tid %d\n", in ieee80211_send_addba_with_timeout()
483 ieee80211_send_addba_request(sdata, sta->sta.addr, tid, in ieee80211_send_addba_with_timeout()
494 struct ieee80211_sub_if_data *sdata; in ieee80211_tx_ba_session_handle_start() local
522 sdata = sta->sdata; in ieee80211_tx_ba_session_handle_start()
524 ret = drv_ampdu_action(local, sdata, ¶ms); in ieee80211_tx_ba_session_handle_start()
536 if (!sdata) in ieee80211_tx_ba_session_handle_start()
539 ht_dbg(sdata, in ieee80211_tx_ba_session_handle_start()
543 ieee80211_agg_splice_packets(sdata, tid_tx, tid); in ieee80211_tx_ba_session_handle_start()
545 ieee80211_agg_splice_finish(sdata, tid); in ieee80211_tx_ba_session_handle_start()
578 ht_dbg(sta->sdata, "tx session timer expired on %pM tid %d\n", in sta_tx_agg_session_timer_expired()
588 struct ieee80211_sub_if_data *sdata = sta->sdata; in ieee80211_start_tx_ba_session() local
589 struct ieee80211_local *local = sdata->local; in ieee80211_start_tx_ba_session()
600 sta->sdata->vif.bss_conf.chandef.chan->band != NL80211_BAND_6GHZ) in ieee80211_start_tx_ba_session()
614 ht_dbg(sdata, "Open BA session requested for %pM tid %u\n", in ieee80211_start_tx_ba_session()
617 if (sdata->vif.type != NL80211_IFTYPE_STATION && in ieee80211_start_tx_ba_session()
618 sdata->vif.type != NL80211_IFTYPE_MESH_POINT && in ieee80211_start_tx_ba_session()
619 sdata->vif.type != NL80211_IFTYPE_AP_VLAN && in ieee80211_start_tx_ba_session()
620 sdata->vif.type != NL80211_IFTYPE_AP && in ieee80211_start_tx_ba_session()
621 sdata->vif.type != NL80211_IFTYPE_ADHOC) in ieee80211_start_tx_ba_session()
625 ht_dbg(sdata, in ieee80211_start_tx_ba_session()
633 ht_dbg(sdata, in ieee80211_start_tx_ba_session()
651 if (sta->sdata->vif.type == NL80211_IFTYPE_ADHOC && in ieee80211_start_tx_ba_session()
653 ht_dbg(sdata, in ieee80211_start_tx_ba_session()
675 ht_dbg(sdata, in ieee80211_start_tx_ba_session()
685 ht_dbg(sdata, in ieee80211_start_tx_ba_session()
750 ht_dbg(sta->sdata, "Aggregation is on for %pM tid %d\n", in ieee80211_agg_tx_operational()
753 drv_ampdu_action(local, sta->sdata, ¶ms); in ieee80211_agg_tx_operational()
761 ieee80211_agg_splice_packets(sta->sdata, tid_tx, tid); in ieee80211_agg_tx_operational()
768 ieee80211_agg_splice_finish(sta->sdata, tid); in ieee80211_agg_tx_operational()
778 struct ieee80211_sub_if_data *sdata = sta->sdata; in ieee80211_start_tx_ba_cb() local
779 struct ieee80211_local *local = sdata->local; in ieee80211_start_tx_ba_cb()
795 ieee80211_lookup_tid_tx(struct ieee80211_sub_if_data *sdata, in ieee80211_lookup_tid_tx() argument
801 ht_dbg(sdata, "Bad TID value: tid = %d (>= %d)\n", in ieee80211_lookup_tid_tx()
806 *sta = sta_info_get_bss(sdata, ra); in ieee80211_lookup_tid_tx()
808 ht_dbg(sdata, "Could not find station: %pM\n", ra); in ieee80211_lookup_tid_tx()
815 ht_dbg(sdata, "addBA was not requested!\n"); in ieee80211_lookup_tid_tx()
823 struct ieee80211_sub_if_data *sdata = vif_to_sdata(vif); in ieee80211_start_tx_ba_cb_irqsafe() local
824 struct ieee80211_local *local = sdata->local; in ieee80211_start_tx_ba_cb_irqsafe()
828 trace_api_start_tx_ba_cb(sdata, ra, tid); in ieee80211_start_tx_ba_cb_irqsafe()
831 tid_tx = ieee80211_lookup_tid_tx(sdata, ra, tid, &sta); in ieee80211_start_tx_ba_cb_irqsafe()
859 struct ieee80211_sub_if_data *sdata = sta->sdata; in ieee80211_stop_tx_ba_session() local
860 struct ieee80211_local *local = sdata->local; in ieee80211_stop_tx_ba_session()
901 struct ieee80211_sub_if_data *sdata = sta->sdata; in ieee80211_stop_tx_ba_cb() local
905 ht_dbg(sdata, "Stopping Tx BA session for %pM tid %d\n", in ieee80211_stop_tx_ba_cb()
911 ht_dbg(sdata, in ieee80211_stop_tx_ba_cb()
930 ieee80211_send_delba(sdata, sta->sta.addr, tid, in ieee80211_stop_tx_ba_cb()
937 struct ieee80211_sub_if_data *sdata = vif_to_sdata(vif); in ieee80211_stop_tx_ba_cb_irqsafe() local
938 struct ieee80211_local *local = sdata->local; in ieee80211_stop_tx_ba_cb_irqsafe()
942 trace_api_stop_tx_ba_cb(sdata, ra, tid); in ieee80211_stop_tx_ba_cb_irqsafe()
945 tid_tx = ieee80211_lookup_tid_tx(sdata, ra, tid, &sta); in ieee80211_stop_tx_ba_cb_irqsafe()
984 ht_dbg(sta->sdata, "wrong addBA response token, %pM tid %d\n", in ieee80211_process_addba_resp()
991 ht_dbg(sta->sdata, "switched off addBA timer for %pM tid %d\n", in ieee80211_process_addba_resp()
1001 ht_dbg(sta->sdata, in ieee80211_process_addba_resp()