Lines Matching refs:tx

50 static __le16 ieee80211_duration(struct ieee80211_tx_data *tx,  in ieee80211_duration()  argument
56 struct ieee80211_local *local = tx->local; in ieee80211_duration()
64 chanctx_conf = rcu_dereference(tx->sdata->vif.chanctx_conf); in ieee80211_duration()
72 if (tx->rate.flags & (IEEE80211_TX_RC_MCS | IEEE80211_TX_RC_VHT_MCS)) in ieee80211_duration()
76 if (WARN_ON_ONCE(tx->rate.idx < 0)) in ieee80211_duration()
80 txrate = &sband->bitrates[tx->rate.idx]; in ieee80211_duration()
149 if (tx->sdata->vif.bss_conf.basic_rates & BIT(i)) in ieee80211_duration()
155 if (tx->sdata->flags & IEEE80211_SDATA_OPERATING_GMODE) in ieee80211_duration()
189 tx->sdata->vif.bss_conf.use_short_preamble, in ieee80211_duration()
199 tx->sdata->vif.bss_conf.use_short_preamble, in ieee80211_duration()
208 ieee80211_tx_h_dynamic_ps(struct ieee80211_tx_data *tx) in ieee80211_tx_h_dynamic_ps() argument
210 struct ieee80211_local *local = tx->local; in ieee80211_tx_h_dynamic_ps()
237 if (tx->sdata->vif.type != NL80211_IFTYPE_STATION) in ieee80211_tx_h_dynamic_ps()
240 ifmgd = &tx->sdata->u.mgd; in ieee80211_tx_h_dynamic_ps()
257 skb_get_queue_mapping(tx->skb) == IEEE80211_AC_VO) in ieee80211_tx_h_dynamic_ps()
281 ieee80211_tx_h_check_assoc(struct ieee80211_tx_data *tx) in ieee80211_tx_h_check_assoc() argument
284 struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)tx->skb->data; in ieee80211_tx_h_check_assoc()
285 struct ieee80211_tx_info *info = IEEE80211_SKB_CB(tx->skb); in ieee80211_tx_h_check_assoc()
291 if (unlikely(test_bit(SCAN_SW_SCANNING, &tx->local->scanning)) && in ieee80211_tx_h_check_assoc()
292 test_bit(SDATA_STATE_OFFCHANNEL, &tx->sdata->state) && in ieee80211_tx_h_check_assoc()
308 if (tx->sdata->vif.type == NL80211_IFTYPE_OCB) in ieee80211_tx_h_check_assoc()
311 if (tx->sdata->vif.type == NL80211_IFTYPE_WDS) in ieee80211_tx_h_check_assoc()
314 if (tx->flags & IEEE80211_TX_PS_BUFFERED) in ieee80211_tx_h_check_assoc()
317 if (tx->sta) in ieee80211_tx_h_check_assoc()
318 assoc = test_sta_flag(tx->sta, WLAN_STA_ASSOC); in ieee80211_tx_h_check_assoc()
320 if (likely(tx->flags & IEEE80211_TX_UNICAST)) { in ieee80211_tx_h_check_assoc()
324 sdata_info(tx->sdata, in ieee80211_tx_h_check_assoc()
328 I802_DEBUG_INC(tx->local->tx_handlers_drop_not_assoc); in ieee80211_tx_h_check_assoc()
331 } else if (unlikely(tx->sdata->vif.type == NL80211_IFTYPE_AP && in ieee80211_tx_h_check_assoc()
333 !atomic_read(&tx->sdata->u.ap.num_mcast_sta))) { in ieee80211_tx_h_check_assoc()
396 ieee80211_tx_h_multicast_ps_buf(struct ieee80211_tx_data *tx) in ieee80211_tx_h_multicast_ps_buf() argument
398 struct ieee80211_tx_info *info = IEEE80211_SKB_CB(tx->skb); in ieee80211_tx_h_multicast_ps_buf()
399 struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)tx->skb->data; in ieee80211_tx_h_multicast_ps_buf()
411 if (tx->sdata->vif.type == NL80211_IFTYPE_AP || in ieee80211_tx_h_multicast_ps_buf()
412 tx->sdata->vif.type == NL80211_IFTYPE_AP_VLAN) { in ieee80211_tx_h_multicast_ps_buf()
413 if (!tx->sdata->bss) in ieee80211_tx_h_multicast_ps_buf()
416 ps = &tx->sdata->bss->ps; in ieee80211_tx_h_multicast_ps_buf()
417 } else if (ieee80211_vif_is_mesh(&tx->sdata->vif)) { in ieee80211_tx_h_multicast_ps_buf()
418 ps = &tx->sdata->u.mesh.ps; in ieee80211_tx_h_multicast_ps_buf()
431 if (ieee80211_hw_check(&tx->local->hw, QUEUE_CONTROL)) in ieee80211_tx_h_multicast_ps_buf()
432 info->hw_queue = tx->sdata->vif.cab_queue; in ieee80211_tx_h_multicast_ps_buf()
441 if (!ieee80211_hw_check(&tx->local->hw, HOST_BROADCAST_PS_BUFFERING)) in ieee80211_tx_h_multicast_ps_buf()
445 if (tx->local->total_ps_buffered >= TOTAL_MAX_TX_BUFFER) in ieee80211_tx_h_multicast_ps_buf()
446 purge_old_ps_buffers(tx->local); in ieee80211_tx_h_multicast_ps_buf()
449 ps_dbg(tx->sdata, in ieee80211_tx_h_multicast_ps_buf()
453 tx->local->total_ps_buffered++; in ieee80211_tx_h_multicast_ps_buf()
455 skb_queue_tail(&ps->bc_buf, tx->skb); in ieee80211_tx_h_multicast_ps_buf()
476 ieee80211_tx_h_unicast_ps_buf(struct ieee80211_tx_data *tx) in ieee80211_tx_h_unicast_ps_buf() argument
478 struct sta_info *sta = tx->sta; in ieee80211_tx_h_unicast_ps_buf()
479 struct ieee80211_tx_info *info = IEEE80211_SKB_CB(tx->skb); in ieee80211_tx_h_unicast_ps_buf()
480 struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)tx->skb->data; in ieee80211_tx_h_unicast_ps_buf()
481 struct ieee80211_local *local = tx->local; in ieee80211_tx_h_unicast_ps_buf()
490 int ac = skb_get_queue_mapping(tx->skb); in ieee80211_tx_h_unicast_ps_buf()
500 if (tx->local->total_ps_buffered >= TOTAL_MAX_TX_BUFFER) in ieee80211_tx_h_unicast_ps_buf()
501 purge_old_ps_buffers(tx->local); in ieee80211_tx_h_unicast_ps_buf()
519 ps_dbg(tx->sdata, in ieee80211_tx_h_unicast_ps_buf()
524 tx->local->total_ps_buffered++; in ieee80211_tx_h_unicast_ps_buf()
527 info->control.vif = &tx->sdata->vif; in ieee80211_tx_h_unicast_ps_buf()
530 skb_queue_tail(&sta->ps_tx_buf[ac], tx->skb); in ieee80211_tx_h_unicast_ps_buf()
546 ps_dbg(tx->sdata, in ieee80211_tx_h_unicast_ps_buf()
555 ieee80211_tx_h_ps_buf(struct ieee80211_tx_data *tx) in ieee80211_tx_h_ps_buf() argument
557 if (unlikely(tx->flags & IEEE80211_TX_PS_BUFFERED)) in ieee80211_tx_h_ps_buf()
560 if (tx->flags & IEEE80211_TX_UNICAST) in ieee80211_tx_h_ps_buf()
561 return ieee80211_tx_h_unicast_ps_buf(tx); in ieee80211_tx_h_ps_buf()
563 return ieee80211_tx_h_multicast_ps_buf(tx); in ieee80211_tx_h_ps_buf()
567 ieee80211_tx_h_check_control_port_protocol(struct ieee80211_tx_data *tx) in ieee80211_tx_h_check_control_port_protocol() argument
569 struct ieee80211_tx_info *info = IEEE80211_SKB_CB(tx->skb); in ieee80211_tx_h_check_control_port_protocol()
571 if (unlikely(tx->sdata->control_port_protocol == tx->skb->protocol)) { in ieee80211_tx_h_check_control_port_protocol()
572 if (tx->sdata->control_port_no_encrypt) in ieee80211_tx_h_check_control_port_protocol()
582 ieee80211_tx_h_select_key(struct ieee80211_tx_data *tx) in ieee80211_tx_h_select_key() argument
585 struct ieee80211_tx_info *info = IEEE80211_SKB_CB(tx->skb); in ieee80211_tx_h_select_key()
586 struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)tx->skb->data; in ieee80211_tx_h_select_key()
589 tx->key = NULL; in ieee80211_tx_h_select_key()
590 else if (tx->sta && in ieee80211_tx_h_select_key()
591 (key = rcu_dereference(tx->sta->ptk[tx->sta->ptk_idx]))) in ieee80211_tx_h_select_key()
592 tx->key = key; in ieee80211_tx_h_select_key()
595 ieee80211_is_robust_mgmt_frame(tx->skb) && in ieee80211_tx_h_select_key()
596 (key = rcu_dereference(tx->sdata->default_mgmt_key))) in ieee80211_tx_h_select_key()
597 tx->key = key; in ieee80211_tx_h_select_key()
599 (key = rcu_dereference(tx->sdata->default_multicast_key))) in ieee80211_tx_h_select_key()
600 tx->key = key; in ieee80211_tx_h_select_key()
602 (key = rcu_dereference(tx->sdata->default_unicast_key))) in ieee80211_tx_h_select_key()
603 tx->key = key; in ieee80211_tx_h_select_key()
605 tx->key = NULL; in ieee80211_tx_h_select_key()
607 if (tx->key) { in ieee80211_tx_h_select_key()
612 switch (tx->key->conf.cipher) { in ieee80211_tx_h_select_key()
617 tx->key = NULL; in ieee80211_tx_h_select_key()
624 !ieee80211_use_mfp(hdr->frame_control, tx->sta, in ieee80211_tx_h_select_key()
625 tx->skb)) in ieee80211_tx_h_select_key()
626 tx->key = NULL; in ieee80211_tx_h_select_key()
628 skip_hw = (tx->key->conf.flags & in ieee80211_tx_h_select_key()
637 tx->key = NULL; in ieee80211_tx_h_select_key()
641 if (unlikely(tx->key && tx->key->flags & KEY_FLAG_TAINTED && in ieee80211_tx_h_select_key()
645 if (!skip_hw && tx->key && in ieee80211_tx_h_select_key()
646 tx->key->flags & KEY_FLAG_UPLOADED_TO_HARDWARE) in ieee80211_tx_h_select_key()
647 info->control.hw_key = &tx->key->conf; in ieee80211_tx_h_select_key()
654 ieee80211_tx_h_rate_ctrl(struct ieee80211_tx_data *tx) in ieee80211_tx_h_rate_ctrl() argument
656 struct ieee80211_tx_info *info = IEEE80211_SKB_CB(tx->skb); in ieee80211_tx_h_rate_ctrl()
657 struct ieee80211_hdr *hdr = (void *)tx->skb->data; in ieee80211_tx_h_rate_ctrl()
666 sband = tx->local->hw.wiphy->bands[info->band]; in ieee80211_tx_h_rate_ctrl()
668 len = min_t(u32, tx->skb->len + FCS_LEN, in ieee80211_tx_h_rate_ctrl()
669 tx->local->hw.wiphy->frag_threshold); in ieee80211_tx_h_rate_ctrl()
672 txrc.hw = &tx->local->hw; in ieee80211_tx_h_rate_ctrl()
674 txrc.bss_conf = &tx->sdata->vif.bss_conf; in ieee80211_tx_h_rate_ctrl()
675 txrc.skb = tx->skb; in ieee80211_tx_h_rate_ctrl()
677 txrc.rate_idx_mask = tx->sdata->rc_rateidx_mask[info->band]; in ieee80211_tx_h_rate_ctrl()
683 if (tx->sdata->rc_has_mcs_mask[info->band]) in ieee80211_tx_h_rate_ctrl()
685 tx->sdata->rc_rateidx_mcs_mask[info->band]; in ieee80211_tx_h_rate_ctrl()
687 txrc.bss = (tx->sdata->vif.type == NL80211_IFTYPE_AP || in ieee80211_tx_h_rate_ctrl()
688 tx->sdata->vif.type == NL80211_IFTYPE_MESH_POINT || in ieee80211_tx_h_rate_ctrl()
689 tx->sdata->vif.type == NL80211_IFTYPE_ADHOC || in ieee80211_tx_h_rate_ctrl()
690 tx->sdata->vif.type == NL80211_IFTYPE_OCB); in ieee80211_tx_h_rate_ctrl()
693 if (len > tx->local->hw.wiphy->rts_threshold) { in ieee80211_tx_h_rate_ctrl()
698 info->control.use_cts_prot = tx->sdata->vif.bss_conf.use_cts_prot; in ieee80211_tx_h_rate_ctrl()
706 if (tx->sdata->vif.bss_conf.use_short_preamble && in ieee80211_tx_h_rate_ctrl()
708 (tx->sta && test_sta_flag(tx->sta, WLAN_STA_SHORT_PREAMBLE)))) in ieee80211_tx_h_rate_ctrl()
713 if (tx->sta) in ieee80211_tx_h_rate_ctrl()
714 assoc = test_sta_flag(tx->sta, WLAN_STA_ASSOC); in ieee80211_tx_h_rate_ctrl()
720 if (WARN(test_bit(SCAN_SW_SCANNING, &tx->local->scanning) && assoc && in ieee80211_tx_h_rate_ctrl()
721 !rate_usable_index_exists(sband, &tx->sta->sta), in ieee80211_tx_h_rate_ctrl()
725 tx->sdata->name, hdr->addr1, in ieee80211_tx_h_rate_ctrl()
733 rate_control_get_rate(tx->sdata, tx->sta, &txrc); in ieee80211_tx_h_rate_ctrl()
735 if (tx->sta && !info->control.skip_table) in ieee80211_tx_h_rate_ctrl()
736 ratetbl = rcu_dereference(tx->sta->sta.rates); in ieee80211_tx_h_rate_ctrl()
749 tx->rate = rate; in ieee80211_tx_h_rate_ctrl()
754 tx->rate = info->control.rates[0]; in ieee80211_tx_h_rate_ctrl()
758 txrc.reported_rate = tx->rate; in ieee80211_tx_h_rate_ctrl()
759 if (tx->sta && ieee80211_is_data(hdr->frame_control)) in ieee80211_tx_h_rate_ctrl()
760 tx->sta->tx_stats.last_rate = txrc.reported_rate; in ieee80211_tx_h_rate_ctrl()
761 } else if (tx->sta) in ieee80211_tx_h_rate_ctrl()
762 tx->sta->tx_stats.last_rate = txrc.reported_rate; in ieee80211_tx_h_rate_ctrl()
789 ieee80211_tx_h_sequence(struct ieee80211_tx_data *tx) in ieee80211_tx_h_sequence() argument
791 struct ieee80211_tx_info *info = IEEE80211_SKB_CB(tx->skb); in ieee80211_tx_h_sequence()
792 struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)tx->skb->data; in ieee80211_tx_h_sequence()
824 hdr->seq_ctrl = cpu_to_le16(tx->sdata->sequence_number); in ieee80211_tx_h_sequence()
825 tx->sdata->sequence_number += 0x10; in ieee80211_tx_h_sequence()
826 if (tx->sta) in ieee80211_tx_h_sequence()
827 tx->sta->tx_stats.msdu[IEEE80211_NUM_TIDS]++; in ieee80211_tx_h_sequence()
836 if (!tx->sta) in ieee80211_tx_h_sequence()
843 tx->sta->tx_stats.msdu[tid]++; in ieee80211_tx_h_sequence()
845 if (!tx->sta->sta.txq[0]) in ieee80211_tx_h_sequence()
846 hdr->seq_ctrl = ieee80211_tx_next_seq(tx->sta, tid); in ieee80211_tx_h_sequence()
851 static int ieee80211_fragment(struct ieee80211_tx_data *tx, in ieee80211_fragment() argument
855 struct ieee80211_local *local = tx->local; in ieee80211_fragment()
875 tx->sdata->encrypt_headroom + in ieee80211_fragment()
880 __skb_queue_tail(&tx->skbs, tmp); in ieee80211_fragment()
883 local->tx_headroom + tx->sdata->encrypt_headroom); in ieee80211_fragment()
912 ieee80211_tx_h_fragment(struct ieee80211_tx_data *tx) in ieee80211_tx_h_fragment() argument
914 struct sk_buff *skb = tx->skb; in ieee80211_tx_h_fragment()
917 int frag_threshold = tx->local->hw.wiphy->frag_threshold; in ieee80211_tx_h_fragment()
922 __skb_queue_tail(&tx->skbs, skb); in ieee80211_tx_h_fragment()
923 tx->skb = NULL; in ieee80211_tx_h_fragment()
928 if (tx->local->ops->set_frag_threshold) in ieee80211_tx_h_fragment()
953 if (ieee80211_fragment(tx, skb, hdrlen, frag_threshold)) in ieee80211_tx_h_fragment()
959 skb_queue_walk(&tx->skbs, skb) { in ieee80211_tx_h_fragment()
965 if (!skb_queue_is_last(&tx->skbs, skb)) { in ieee80211_tx_h_fragment()
987 ieee80211_tx_h_stats(struct ieee80211_tx_data *tx) in ieee80211_tx_h_stats() argument
992 if (!tx->sta) in ieee80211_tx_h_stats()
995 skb_queue_walk(&tx->skbs, skb) { in ieee80211_tx_h_stats()
997 tx->sta->tx_stats.bytes[ac] += skb->len; in ieee80211_tx_h_stats()
1000 tx->sta->tx_stats.packets[ac]++; in ieee80211_tx_h_stats()
1006 ieee80211_tx_h_encrypt(struct ieee80211_tx_data *tx) in ieee80211_tx_h_encrypt() argument
1008 if (!tx->key) in ieee80211_tx_h_encrypt()
1011 switch (tx->key->conf.cipher) { in ieee80211_tx_h_encrypt()
1014 return ieee80211_crypto_wep_encrypt(tx); in ieee80211_tx_h_encrypt()
1016 return ieee80211_crypto_tkip_encrypt(tx); in ieee80211_tx_h_encrypt()
1019 tx, IEEE80211_CCMP_MIC_LEN); in ieee80211_tx_h_encrypt()
1022 tx, IEEE80211_CCMP_256_MIC_LEN); in ieee80211_tx_h_encrypt()
1024 return ieee80211_crypto_aes_cmac_encrypt(tx); in ieee80211_tx_h_encrypt()
1026 return ieee80211_crypto_aes_cmac_256_encrypt(tx); in ieee80211_tx_h_encrypt()
1029 return ieee80211_crypto_aes_gmac_encrypt(tx); in ieee80211_tx_h_encrypt()
1032 return ieee80211_crypto_gcmp_encrypt(tx); in ieee80211_tx_h_encrypt()
1034 return ieee80211_crypto_hw_encrypt(tx); in ieee80211_tx_h_encrypt()
1041 ieee80211_tx_h_calculate_duration(struct ieee80211_tx_data *tx) in ieee80211_tx_h_calculate_duration() argument
1048 skb_queue_walk(&tx->skbs, skb) { in ieee80211_tx_h_calculate_duration()
1052 if (!skb_queue_is_last(&tx->skbs, skb)) { in ieee80211_tx_h_calculate_duration()
1053 struct sk_buff *next = skb_queue_next(&tx->skbs, skb); in ieee80211_tx_h_calculate_duration()
1060 ieee80211_duration(tx, skb, group_addr, next_len); in ieee80211_tx_h_calculate_duration()
1068 static bool ieee80211_tx_prep_agg(struct ieee80211_tx_data *tx, in ieee80211_tx_prep_agg() argument
1086 } else if (!tx->sta->sta.txq[tid]) { in ieee80211_tx_prep_agg()
1087 spin_lock(&tx->sta->lock); in ieee80211_tx_prep_agg()
1106 tid_tx = rcu_dereference_protected_tid_tx(tx->sta, tid); in ieee80211_tx_prep_agg()
1115 info->control.vif = &tx->sdata->vif; in ieee80211_tx_prep_agg()
1124 spin_unlock(&tx->sta->lock); in ieee80211_tx_prep_agg()
1127 ieee80211_free_txskb(&tx->local->hw, purge_skb); in ieee80211_tx_prep_agg()
1144 struct ieee80211_tx_data *tx, in ieee80211_tx_prepare() argument
1153 memset(tx, 0, sizeof(*tx)); in ieee80211_tx_prepare()
1154 tx->skb = skb; in ieee80211_tx_prepare()
1155 tx->local = local; in ieee80211_tx_prepare()
1156 tx->sdata = sdata; in ieee80211_tx_prepare()
1157 __skb_queue_head_init(&tx->skbs); in ieee80211_tx_prepare()
1170 tx->sta = sta; in ieee80211_tx_prepare()
1173 tx->sta = rcu_dereference(sdata->u.vlan.sta); in ieee80211_tx_prepare()
1174 if (!tx->sta && sdata->wdev.use_4addr) in ieee80211_tx_prepare()
1178 tx->sdata->control_port_protocol == tx->skb->protocol) { in ieee80211_tx_prepare()
1179 tx->sta = sta_info_get_bss(sdata, hdr->addr1); in ieee80211_tx_prepare()
1181 if (!tx->sta && !is_multicast_ether_addr(hdr->addr1)) in ieee80211_tx_prepare()
1182 tx->sta = sta_info_get(sdata, hdr->addr1); in ieee80211_tx_prepare()
1185 if (tx->sta && ieee80211_is_data_qos(hdr->frame_control) && in ieee80211_tx_prepare()
1194 tid_tx = rcu_dereference(tx->sta->ampdu_mlme.tid_tx[tid]); in ieee80211_tx_prepare()
1198 queued = ieee80211_tx_prep_agg(tx, skb, info, in ieee80211_tx_prepare()
1207 tx->flags &= ~IEEE80211_TX_UNICAST; in ieee80211_tx_prepare()
1210 tx->flags |= IEEE80211_TX_UNICAST; in ieee80211_tx_prepare()
1213 if (!(tx->flags & IEEE80211_TX_UNICAST) || in ieee80211_tx_prepare()
1219 if (!tx->sta) in ieee80211_tx_prepare()
1221 else if (test_and_clear_sta_flag(tx->sta, WLAN_STA_CLEAR_PS_FILT)) { in ieee80211_tx_prepare()
1223 ieee80211_check_fast_xmit(tx->sta); in ieee80211_tx_prepare()
1462 static int invoke_tx_handlers(struct ieee80211_tx_data *tx) in invoke_tx_handlers() argument
1464 struct ieee80211_tx_info *info = IEEE80211_SKB_CB(tx->skb); in invoke_tx_handlers()
1469 res = txh(tx); \ in invoke_tx_handlers()
1479 if (!ieee80211_hw_check(&tx->local->hw, HAS_RATE_CONTROL)) in invoke_tx_handlers()
1483 __skb_queue_tail(&tx->skbs, tx->skb); in invoke_tx_handlers()
1484 tx->skb = NULL; in invoke_tx_handlers()
1494 if (!ieee80211_hw_check(&tx->local->hw, HAS_RATE_CONTROL)) in invoke_tx_handlers()
1500 I802_DEBUG_INC(tx->local->tx_handlers_drop); in invoke_tx_handlers()
1501 if (tx->skb) in invoke_tx_handlers()
1502 ieee80211_free_txskb(&tx->local->hw, tx->skb); in invoke_tx_handlers()
1504 ieee80211_purge_tx_queue(&tx->local->hw, &tx->skbs); in invoke_tx_handlers()
1507 I802_DEBUG_INC(tx->local->tx_handlers_queued); in invoke_tx_handlers()
1520 struct ieee80211_tx_data tx; in ieee80211_tx_prepare_skb() local
1523 if (ieee80211_tx_prepare(sdata, &tx, NULL, skb) == TX_DROP) in ieee80211_tx_prepare_skb()
1530 if (invoke_tx_handlers(&tx)) in ieee80211_tx_prepare_skb()
1534 if (tx.sta) in ieee80211_tx_prepare_skb()
1535 *sta = &tx.sta->sta; in ieee80211_tx_prepare_skb()
1541 skb2 = __skb_dequeue(&tx.skbs); in ieee80211_tx_prepare_skb()
1542 if (WARN_ON(skb2 != skb || !skb_queue_empty(&tx.skbs))) { in ieee80211_tx_prepare_skb()
1544 ieee80211_purge_tx_queue(hw, &tx.skbs); in ieee80211_tx_prepare_skb()
1560 struct ieee80211_tx_data tx; in ieee80211_tx() local
1573 res_prepare = ieee80211_tx_prepare(sdata, &tx, sta, skb); in ieee80211_tx()
1588 if (!invoke_tx_handlers(&tx)) in ieee80211_tx()
1589 result = __ieee80211_tx(local, &tx.skbs, led_len, in ieee80211_tx()
1590 tx.sta, txpending); in ieee80211_tx()
2704 struct ieee80211_tx_data tx; in ieee80211_xmit_fast() local
2789 __skb_queue_head_init(&tx.skbs); in ieee80211_xmit_fast()
2791 tx.flags = IEEE80211_TX_UNICAST; in ieee80211_xmit_fast()
2792 tx.local = local; in ieee80211_xmit_fast()
2793 tx.sdata = sdata; in ieee80211_xmit_fast()
2794 tx.sta = sta; in ieee80211_xmit_fast()
2795 tx.key = fast_tx->key; in ieee80211_xmit_fast()
2801 tx.skb = skb; in ieee80211_xmit_fast()
2802 r = ieee80211_tx_h_rate_ctrl(&tx); in ieee80211_xmit_fast()
2803 skb = tx.skb; in ieee80211_xmit_fast()
2804 tx.skb = NULL; in ieee80211_xmit_fast()
2843 __skb_queue_tail(&tx.skbs, skb); in ieee80211_xmit_fast()
2844 ieee80211_tx_frags(local, &sdata->vif, &sta->sta, &tx.skbs, false); in ieee80211_xmit_fast()
2947 struct ieee80211_tx_data tx = { in ieee80211_build_data_template() local
2966 tx.sta = sta_info_get(sdata, hdr->addr1); in ieee80211_build_data_template()
2967 tx.skb = skb; in ieee80211_build_data_template()
2969 if (ieee80211_tx_h_select_key(&tx) != TX_CONTINUE) { in ieee80211_build_data_template()
3733 struct ieee80211_tx_data tx; in ieee80211_get_buffered_bc() local
3782 if (!ieee80211_tx_prepare(sdata, &tx, NULL, skb)) in ieee80211_get_buffered_bc()
3789 tx.flags |= IEEE80211_TX_PS_BUFFERED; in ieee80211_get_buffered_bc()
3792 if (invoke_tx_handlers(&tx)) in ieee80211_get_buffered_bc()