Lines Matching refs:sta
316 if (tx->sta) in ieee80211_tx_h_check_assoc()
317 assoc = test_sta_flag(tx->sta, WLAN_STA_ASSOC); in ieee80211_tx_h_check_assoc()
351 struct sta_info *sta; in purge_old_ps_buffers() local
375 list_for_each_entry_rcu(sta, &local->sta_list, list) { in purge_old_ps_buffers()
379 skb = skb_dequeue(&sta->ps_tx_buf[ac]); in purge_old_ps_buffers()
380 total += skb_queue_len(&sta->ps_tx_buf[ac]); in purge_old_ps_buffers()
458 static int ieee80211_use_mfp(__le16 fc, struct sta_info *sta, in ieee80211_use_mfp() argument
464 if (sta == NULL || !test_sta_flag(sta, WLAN_STA_MFP)) in ieee80211_use_mfp()
476 struct sta_info *sta = tx->sta; in ieee80211_tx_h_unicast_ps_buf() local
481 if (unlikely(!sta)) in ieee80211_tx_h_unicast_ps_buf()
484 if (unlikely((test_sta_flag(sta, WLAN_STA_PS_STA) || in ieee80211_tx_h_unicast_ps_buf()
485 test_sta_flag(sta, WLAN_STA_PS_DRIVER) || in ieee80211_tx_h_unicast_ps_buf()
486 test_sta_flag(sta, WLAN_STA_PS_DELIVER)) && in ieee80211_tx_h_unicast_ps_buf()
496 ps_dbg(sta->sdata, "STA %pM aid %d: PS buffer for AC %d\n", in ieee80211_tx_h_unicast_ps_buf()
497 sta->sta.addr, sta->sta.aid, ac); in ieee80211_tx_h_unicast_ps_buf()
502 spin_lock(&sta->ps_lock); in ieee80211_tx_h_unicast_ps_buf()
508 if (!test_sta_flag(sta, WLAN_STA_PS_STA) && in ieee80211_tx_h_unicast_ps_buf()
509 !test_sta_flag(sta, WLAN_STA_PS_DRIVER) && in ieee80211_tx_h_unicast_ps_buf()
510 !test_sta_flag(sta, WLAN_STA_PS_DELIVER)) { in ieee80211_tx_h_unicast_ps_buf()
511 spin_unlock(&sta->ps_lock); in ieee80211_tx_h_unicast_ps_buf()
515 if (skb_queue_len(&sta->ps_tx_buf[ac]) >= STA_MAX_TX_BUFFER) { in ieee80211_tx_h_unicast_ps_buf()
516 struct sk_buff *old = skb_dequeue(&sta->ps_tx_buf[ac]); in ieee80211_tx_h_unicast_ps_buf()
519 sta->sta.addr, ac); in ieee80211_tx_h_unicast_ps_buf()
528 skb_queue_tail(&sta->ps_tx_buf[ac], tx->skb); in ieee80211_tx_h_unicast_ps_buf()
529 spin_unlock(&sta->ps_lock); in ieee80211_tx_h_unicast_ps_buf()
540 sta_info_recalc_tim(sta); in ieee80211_tx_h_unicast_ps_buf()
543 } else if (unlikely(test_sta_flag(sta, WLAN_STA_PS_STA))) { in ieee80211_tx_h_unicast_ps_buf()
546 sta->sta.addr); in ieee80211_tx_h_unicast_ps_buf()
591 if (tx->sta && in ieee80211_tx_h_select_key()
592 (key = rcu_dereference(tx->sta->ptk[tx->sta->ptk_idx]))) in ieee80211_tx_h_select_key()
628 !ieee80211_use_mfp(hdr->frame_control, tx->sta, in ieee80211_tx_h_select_key()
653 } else if (ieee80211_is_data_present(hdr->frame_control) && tx->sta && in ieee80211_tx_h_select_key()
654 test_sta_flag(tx->sta, WLAN_STA_USES_ENCRYPTION)) { in ieee80211_tx_h_select_key()
713 (tx->sta && test_sta_flag(tx->sta, WLAN_STA_SHORT_PREAMBLE)))) in ieee80211_tx_h_rate_ctrl()
722 if (tx->sta) in ieee80211_tx_h_rate_ctrl()
723 assoc = test_sta_flag(tx->sta, WLAN_STA_ASSOC); in ieee80211_tx_h_rate_ctrl()
730 !rate_usable_index_exists(sband, &tx->sta->sta), in ieee80211_tx_h_rate_ctrl()
743 rate_control_get_rate(tx->sdata, tx->sta, &txrc); in ieee80211_tx_h_rate_ctrl()
745 if (tx->sta && !info->control.skip_table) in ieee80211_tx_h_rate_ctrl()
746 ratetbl = rcu_dereference(tx->sta->sta.rates); in ieee80211_tx_h_rate_ctrl()
769 if (tx->sta && ieee80211_is_tx_data(tx->skb)) in ieee80211_tx_h_rate_ctrl()
770 tx->sta->tx_stats.last_rate = txrc.reported_rate; in ieee80211_tx_h_rate_ctrl()
771 } else if (tx->sta) in ieee80211_tx_h_rate_ctrl()
772 tx->sta->tx_stats.last_rate = txrc.reported_rate; in ieee80211_tx_h_rate_ctrl()
787 static __le16 ieee80211_tx_next_seq(struct sta_info *sta, int tid) in ieee80211_tx_next_seq() argument
789 u16 *seq = &sta->tid_seq[tid]; in ieee80211_tx_next_seq()
838 if (tx->sta) in ieee80211_tx_h_sequence()
839 tx->sta->tx_stats.msdu[IEEE80211_NUM_TIDS]++; in ieee80211_tx_h_sequence()
848 if (!tx->sta) in ieee80211_tx_h_sequence()
853 tx->sta->tx_stats.msdu[tid]++; in ieee80211_tx_h_sequence()
855 hdr->seq_ctrl = ieee80211_tx_next_seq(tx->sta, tid); in ieee80211_tx_h_sequence()
1001 if (!tx->sta) in ieee80211_tx_h_stats()
1006 tx->sta->tx_stats.bytes[ac] += skb->len; in ieee80211_tx_h_stats()
1009 tx->sta->tx_stats.packets[ac]++; in ieee80211_tx_h_stats()
1095 } else if (!tx->sta->sta.txq[tid]) { in ieee80211_tx_prep_agg()
1096 spin_lock(&tx->sta->lock); in ieee80211_tx_prep_agg()
1115 tid_tx = rcu_dereference_protected_tid_tx(tx->sta, tid); in ieee80211_tx_prep_agg()
1125 clear_sta_flag(tx->sta, WLAN_STA_SP); in ieee80211_tx_prep_agg()
1126 ps_dbg(tx->sta->sdata, in ieee80211_tx_prep_agg()
1128 tx->sta->sta.addr, tx->sta->sta.aid); in ieee80211_tx_prep_agg()
1137 spin_unlock(&tx->sta->lock); in ieee80211_tx_prep_agg()
1152 struct sta_info *sta, in ieee80211_aggr_check() argument
1161 if (!sta || !sta->sta.ht_cap.ht_supported || in ieee80211_aggr_check()
1162 !sta->sta.wme || skb_get_queue_mapping(skb) == IEEE80211_AC_VO || in ieee80211_aggr_check()
1167 if (likely(sta->ampdu_mlme.tid_tx[tid])) in ieee80211_aggr_check()
1170 ieee80211_start_tx_ba_session(&sta->sta, tid, 0); in ieee80211_aggr_check()
1181 struct sta_info *sta, struct sk_buff *skb) in ieee80211_tx_prepare() argument
1204 if (likely(sta)) { in ieee80211_tx_prepare()
1205 if (!IS_ERR(sta)) in ieee80211_tx_prepare()
1206 tx->sta = sta; in ieee80211_tx_prepare()
1209 tx->sta = rcu_dereference(sdata->u.vlan.sta); in ieee80211_tx_prepare()
1210 if (!tx->sta && sdata->wdev.use_4addr) in ieee80211_tx_prepare()
1213 tx->sta = sta_info_get_bss(sdata, hdr->addr1); in ieee80211_tx_prepare()
1215 if (!tx->sta && !is_multicast_ether_addr(hdr->addr1)) { in ieee80211_tx_prepare()
1216 tx->sta = sta_info_get(sdata, hdr->addr1); in ieee80211_tx_prepare()
1221 if (tx->sta && ieee80211_is_data_qos(hdr->frame_control) && in ieee80211_tx_prepare()
1228 tid_tx = rcu_dereference(tx->sta->ampdu_mlme.tid_tx[tid]); in ieee80211_tx_prepare()
1230 ieee80211_aggr_check(sdata, tx->sta, skb); in ieee80211_tx_prepare()
1231 tid_tx = rcu_dereference(tx->sta->ampdu_mlme.tid_tx[tid]); in ieee80211_tx_prepare()
1258 if (!tx->sta) in ieee80211_tx_prepare()
1260 else if (test_and_clear_sta_flag(tx->sta, WLAN_STA_CLEAR_PS_FILT)) { in ieee80211_tx_prepare()
1262 ieee80211_check_fast_xmit(tx->sta); in ieee80211_tx_prepare()
1272 struct sta_info *sta, in ieee80211_get_txq() argument
1288 sta && sta->uploaded) { in ieee80211_get_txq()
1293 txq = sta->sta.txq[IEEE80211_NUM_TIDS]; in ieee80211_get_txq()
1295 } else if (sta) { in ieee80211_get_txq()
1298 if (!sta->uploaded) in ieee80211_get_txq()
1301 txq = sta->sta.txq[tid]; in ieee80211_get_txq()
1378 if (txqi->txq.sta) { in fq_tin_dequeue_func()
1379 struct sta_info *sta = container_of(txqi->txq.sta, in fq_tin_dequeue_func() local
1380 struct sta_info, sta); in fq_tin_dequeue_func()
1381 cparams = &sta->cparams; in fq_tin_dequeue_func()
1476 struct sta_info *sta, in ieee80211_txq_init() argument
1487 if (!sta) { in ieee80211_txq_init()
1511 txqi->txq.sta = &sta->sta; in ieee80211_txq_init()
1513 sta->sta.txq[tid] = &txqi->txq; in ieee80211_txq_init()
1619 struct sta_info *sta, in ieee80211_queue_skb() argument
1634 txqi = ieee80211_get_txq(local, vif, sta, skb); in ieee80211_queue_skb()
1648 struct sta_info *sta, in ieee80211_tx_frags() argument
1710 control.sta = sta ? &sta->sta : NULL; in ieee80211_tx_frags()
1724 struct sta_info *sta, bool txpending) in __ieee80211_tx() argument
1740 if (sta && !sta->uploaded) in __ieee80211_tx()
1741 sta = NULL; in __ieee80211_tx()
1769 result = ieee80211_tx_frags(local, vif, sta, skbs, txpending); in __ieee80211_tx()
1874 int band, struct ieee80211_sta **sta) in ieee80211_tx_prepare_skb() argument
1891 if (sta) { in ieee80211_tx_prepare_skb()
1892 if (tx.sta) in ieee80211_tx_prepare_skb()
1893 *sta = &tx.sta->sta; in ieee80211_tx_prepare_skb()
1895 *sta = NULL; in ieee80211_tx_prepare_skb()
1914 struct sta_info *sta, struct sk_buff *skb, in ieee80211_tx() argument
1931 res_prepare = ieee80211_tx_prepare(sdata, &tx, sta, skb); in ieee80211_tx()
1949 if (ieee80211_queue_skb(local, sdata, tx.sta, tx.skb)) in ieee80211_tx()
1954 tx.sta, txpending); in ieee80211_tx()
2005 struct sta_info *sta, struct sk_buff *skb) in ieee80211_xmit() argument
2046 ieee80211_tx(sdata, sta, skb, false); in ieee80211_xmit()
2438 struct sta_info *sta; in ieee80211_lookup_ra_sta() local
2442 sta = rcu_dereference(sdata->u.vlan.sta); in ieee80211_lookup_ra_sta()
2443 if (sta) { in ieee80211_lookup_ra_sta()
2444 *sta_out = sta; in ieee80211_lookup_ra_sta()
2457 sta = sta_info_get_bss(sdata, skb->data); in ieee80211_lookup_ra_sta()
2467 sta = sta_info_get(sdata, skb->data); in ieee80211_lookup_ra_sta()
2468 if (sta && test_sta_flag(sta, WLAN_STA_TDLS_PEER)) { in ieee80211_lookup_ra_sta()
2469 if (test_sta_flag(sta, in ieee80211_lookup_ra_sta()
2471 *sta_out = sta; in ieee80211_lookup_ra_sta()
2488 sta = sta_info_get(sdata, sdata->u.mgd.bssid); in ieee80211_lookup_ra_sta()
2489 if (!sta) in ieee80211_lookup_ra_sta()
2496 *sta_out = sta ?: ERR_PTR(-ENOENT); in ieee80211_lookup_ra_sta()
2560 struct sta_info *sta, u32 ctrl_flags, in ieee80211_build_hdr() argument
2582 if (IS_ERR(sta)) in ieee80211_build_hdr()
2583 sta = NULL; in ieee80211_build_hdr()
2600 memcpy(hdr.addr1, sta->sta.addr, ETH_ALEN); in ieee80211_build_hdr()
2605 authorized = test_sta_flag(sta, WLAN_STA_AUTHORIZED); in ieee80211_build_hdr()
2606 wme_sta = sta->sta.wme; in ieee80211_build_hdr()
2717 tdls_peer = test_sta_flag(sta, WLAN_STA_TDLS_PEER); in ieee80211_build_hdr()
2784 if (sta) { in ieee80211_build_hdr()
2785 authorized = test_sta_flag(sta, WLAN_STA_AUTHORIZED); in ieee80211_build_hdr()
2786 wme_sta = sta->sta.wme; in ieee80211_build_hdr()
2944 void ieee80211_check_fast_xmit(struct sta_info *sta) in ieee80211_check_fast_xmit() argument
2947 struct ieee80211_local *local = sta->local; in ieee80211_check_fast_xmit()
2948 struct ieee80211_sub_if_data *sdata = sta->sdata; in ieee80211_check_fast_xmit()
2968 spin_lock_bh(&sta->lock); in ieee80211_check_fast_xmit()
2974 if (!test_sta_flag(sta, WLAN_STA_AUTHORIZED)) in ieee80211_check_fast_xmit()
2977 if (test_sta_flag(sta, WLAN_STA_PS_STA) || in ieee80211_check_fast_xmit()
2978 test_sta_flag(sta, WLAN_STA_PS_DRIVER) || in ieee80211_check_fast_xmit()
2979 test_sta_flag(sta, WLAN_STA_PS_DELIVER) || in ieee80211_check_fast_xmit()
2980 test_sta_flag(sta, WLAN_STA_CLEAR_PS_FILT)) in ieee80211_check_fast_xmit()
3011 if (test_sta_flag(sta, WLAN_STA_TDLS_PEER)) { in ieee80211_check_fast_xmit()
3044 memcpy(hdr->addr1, sta->sta.addr, ETH_ALEN); in ieee80211_check_fast_xmit()
3065 if (sta->sta.wme) { in ieee80211_check_fast_xmit()
3075 build.key = rcu_access_pointer(sta->ptk[sta->ptk_idx]); in ieee80211_check_fast_xmit()
3164 old = rcu_dereference_protected(sta->fast_tx, in ieee80211_check_fast_xmit()
3165 lockdep_is_held(&sta->lock)); in ieee80211_check_fast_xmit()
3166 rcu_assign_pointer(sta->fast_tx, fast_tx); in ieee80211_check_fast_xmit()
3169 spin_unlock_bh(&sta->lock); in ieee80211_check_fast_xmit()
3174 struct sta_info *sta; in ieee80211_check_fast_xmit_all() local
3177 list_for_each_entry_rcu(sta, &local->sta_list, list) in ieee80211_check_fast_xmit_all()
3178 ieee80211_check_fast_xmit(sta); in ieee80211_check_fast_xmit_all()
3185 struct sta_info *sta; in ieee80211_check_fast_xmit_iface() local
3189 list_for_each_entry_rcu(sta, &local->sta_list, list) { in ieee80211_check_fast_xmit_iface()
3190 if (sdata != sta->sdata && in ieee80211_check_fast_xmit_iface()
3191 (!sta->sdata->bss || sta->sdata->bss != sdata->bss)) in ieee80211_check_fast_xmit_iface()
3193 ieee80211_check_fast_xmit(sta); in ieee80211_check_fast_xmit_iface()
3199 void ieee80211_clear_fast_xmit(struct sta_info *sta) in ieee80211_clear_fast_xmit() argument
3203 spin_lock_bh(&sta->lock); in ieee80211_clear_fast_xmit()
3204 fast_tx = rcu_dereference_protected(sta->fast_tx, in ieee80211_clear_fast_xmit()
3205 lockdep_is_held(&sta->lock)); in ieee80211_clear_fast_xmit()
3206 RCU_INIT_POINTER(sta->fast_tx, NULL); in ieee80211_clear_fast_xmit()
3207 spin_unlock_bh(&sta->lock); in ieee80211_clear_fast_xmit()
3297 struct sta_info *sta, in ieee80211_amsdu_aggregate() argument
3306 struct ieee80211_txq *txq = sta->sta.txq[tid]; in ieee80211_amsdu_aggregate()
3310 u8 max_subframes = sta->sta.max_amsdu_subframes; in ieee80211_amsdu_aggregate()
3312 int max_amsdu_len = sta->sta.max_amsdu_len; in ieee80211_amsdu_aggregate()
3338 if (sta->sta.max_rc_amsdu_len) in ieee80211_amsdu_aggregate()
3340 sta->sta.max_rc_amsdu_len); in ieee80211_amsdu_aggregate()
3342 if (sta->sta.max_tid_amsdu_len[tid]) in ieee80211_amsdu_aggregate()
3344 sta->sta.max_tid_amsdu_len[tid]); in ieee80211_amsdu_aggregate()
3443 struct sta_info *sta, u8 pn_offs, in ieee80211_xmit_fast_finish() argument
3463 hdr->seq_ctrl = ieee80211_tx_next_seq(sta, tid); in ieee80211_xmit_fast_finish()
3471 sta->tx_stats.msdu[tid] += in ieee80211_xmit_fast_finish()
3474 sta->tx_stats.msdu[tid]++; in ieee80211_xmit_fast_finish()
3481 sta->tx_stats.bytes[skb_get_queue_mapping(skb)] += skb->len; in ieee80211_xmit_fast_finish()
3482 sta->tx_stats.packets[skb_get_queue_mapping(skb)]++; in ieee80211_xmit_fast_finish()
3509 struct sta_info *sta, in ieee80211_xmit_fast() argument
3539 tid_tx = rcu_dereference(sta->ampdu_mlme.tid_tx[tid]); in ieee80211_xmit_fast()
3561 ieee80211_amsdu_aggregate(sdata, sta, fast_tx, skb)) in ieee80211_xmit_fast()
3606 tx.sta = sta; in ieee80211_xmit_fast()
3609 if (ieee80211_queue_skb(local, sdata, sta, skb)) in ieee80211_xmit_fast()
3613 r = ieee80211_xmit_fast_finish(sdata, sta, fast_tx->pn_offs, in ieee80211_xmit_fast()
3626 ieee80211_tx_frags(local, &sdata->vif, sta, &tx.skbs, false); in ieee80211_xmit_fast()
3687 if (txq->sta) { in ieee80211_tx_dequeue()
3688 tx.sta = container_of(txq->sta, struct sta_info, sta); in ieee80211_tx_dequeue()
3698 !test_sta_flag(tx.sta, WLAN_STA_AUTHORIZED) && in ieee80211_tx_dequeue()
3736 struct sta_info *sta = container_of(txq->sta, struct sta_info, in ieee80211_tx_dequeue() local
3737 sta); in ieee80211_tx_dequeue()
3744 r = ieee80211_xmit_fast_finish(sta->sdata, sta, pn_offs, in ieee80211_tx_dequeue()
3806 airtime = ieee80211_calc_expected_tx_airtime(hw, vif, txq->sta, in ieee80211_tx_dequeue()
3810 ieee80211_sta_update_pending_airtime(local, tx.sta, in ieee80211_tx_dequeue()
4090 if (!txq->sta) in ieee80211_txq_airtime_check()
4175 struct sta_info *sta; in __ieee80211_subif_start_xmit() local
4185 if (ieee80211_lookup_ra_sta(sdata, skb, &sta)) in __ieee80211_subif_start_xmit()
4188 if (IS_ERR(sta)) in __ieee80211_subif_start_xmit()
4189 sta = NULL; in __ieee80211_subif_start_xmit()
4192 u16 queue = __ieee80211_select_queue(sdata, sta, skb); in __ieee80211_subif_start_xmit()
4197 ieee80211_aggr_check(sdata, sta, skb); in __ieee80211_subif_start_xmit()
4199 if (sta) { in __ieee80211_subif_start_xmit()
4204 fast_tx = rcu_dereference(sta->fast_tx); in __ieee80211_subif_start_xmit()
4207 ieee80211_xmit_fast(sdata, sta, fast_tx, skb)) in __ieee80211_subif_start_xmit()
4247 sta, ctrl_flags, cookie); in __ieee80211_subif_start_xmit()
4255 ieee80211_xmit(sdata, sta, skb); in __ieee80211_subif_start_xmit()
4264 static int ieee80211_change_da(struct sk_buff *skb, struct sta_info *sta) in ieee80211_change_da() argument
4274 ether_addr_copy(eth->h_dest, sta->sta.addr); in ieee80211_change_da()
4292 if (sdata->u.vlan.sta) in ieee80211_multicast_to_unicast()
4329 struct sta_info *sta, *first = NULL; in ieee80211_convert_to_unicast() local
4334 list_for_each_entry_rcu(sta, &local->sta_list, list) { in ieee80211_convert_to_unicast()
4335 if (sdata != sta->sdata) in ieee80211_convert_to_unicast()
4338 if (unlikely(ether_addr_equal(eth->h_source, sta->sta.addr))) in ieee80211_convert_to_unicast()
4342 first = sta; in ieee80211_convert_to_unicast()
4348 if (unlikely(ieee80211_change_da(cloned_skb, sta))) { in ieee80211_convert_to_unicast()
4399 struct sta_info *sta, in ieee80211_tx_8023() argument
4409 if (sta) in ieee80211_tx_8023()
4412 if (ieee80211_queue_skb(local, sdata, sta, skb)) in ieee80211_tx_8023()
4431 if (sta && sta->uploaded) in ieee80211_tx_8023()
4432 pubsta = &sta->sta; in ieee80211_tx_8023()
4434 control.sta = pubsta; in ieee80211_tx_8023()
4442 struct net_device *dev, struct sta_info *sta, in ieee80211_8023_xmit() argument
4451 u16 queue = __ieee80211_select_queue(sdata, sta, skb); in ieee80211_8023_xmit()
4462 ieee80211_aggr_check(sdata, sta, skb); in ieee80211_8023_xmit()
4465 tid_tx = rcu_dereference(sta->ampdu_mlme.tid_tx[tid]); in ieee80211_8023_xmit()
4487 sta->tx_stats.bytes[skb_get_queue_mapping(skb)] += skb->len; in ieee80211_8023_xmit()
4488 sta->tx_stats.packets[skb_get_queue_mapping(skb)]++; in ieee80211_8023_xmit()
4500 ieee80211_tx_8023(sdata, skb, skb->len, sta, false); in ieee80211_8023_xmit()
4514 struct sta_info *sta; in ieee80211_subif_start_xmit_8023() local
4523 if (ieee80211_lookup_ra_sta(sdata, skb, &sta)) { in ieee80211_subif_start_xmit_8023()
4528 if (unlikely(IS_ERR_OR_NULL(sta) || !sta->uploaded || in ieee80211_subif_start_xmit_8023()
4529 !test_sta_flag(sta, WLAN_STA_AUTHORIZED) || in ieee80211_subif_start_xmit_8023()
4533 key = rcu_dereference(sta->ptk[sta->ptk_idx]); in ieee80211_subif_start_xmit_8023()
4541 ieee80211_8023_xmit(sdata, dev, sta, key, skb); in ieee80211_subif_start_xmit_8023()
4561 struct sta_info *sta; in ieee80211_build_data_template() local
4565 if (ieee80211_lookup_ra_sta(sdata, skb, &sta)) { in ieee80211_build_data_template()
4571 skb = ieee80211_build_hdr(sdata, skb, info_flags, sta, 0, NULL); in ieee80211_build_data_template()
4576 tx.sta = sta_info_get(sdata, hdr->addr1); in ieee80211_build_data_template()
4615 struct sta_info *sta; in ieee80211_tx_pending_skb() local
4631 if (ieee80211_lookup_ra_sta(sdata, skb, &sta)) { in ieee80211_tx_pending_skb()
4636 if (IS_ERR(sta) || (sta && !sta->uploaded)) in ieee80211_tx_pending_skb()
4637 sta = NULL; in ieee80211_tx_pending_skb()
4639 result = ieee80211_tx_8023(sdata, skb, skb->len, sta, true); in ieee80211_tx_pending_skb()
4647 sta = sta_info_get(sdata, hdr->addr1); in ieee80211_tx_pending_skb()
4649 result = __ieee80211_tx(local, &skbs, skb->len, sta, true); in ieee80211_tx_pending_skb()
5378 struct sta_info *sta; in ieee80211_nullfunc_get() local
5381 sta = sta_info_get(sdata, ifmgd->bssid); in ieee80211_nullfunc_get()
5382 qos = sta && sta->sta.wme; in ieee80211_nullfunc_get()
5563 struct sta_info *sta = container_of(pubsta, struct sta_info, sta); in ieee80211_reserve_tid() local
5564 struct ieee80211_sub_if_data *sdata = sta->sdata; in ieee80211_reserve_tid()
5585 if (sta->reserved_tid == tid) { in ieee80211_reserve_tid()
5590 if (sta->reserved_tid != IEEE80211_TID_UNRESERVED) { in ieee80211_reserve_tid()
5603 set_sta_flag(sta, WLAN_STA_BLOCK_BA); in ieee80211_reserve_tid()
5604 __ieee80211_stop_tx_ba_session(sta, tid, in ieee80211_reserve_tid()
5611 sta->reserved_tid = tid; in ieee80211_reserve_tid()
5617 clear_sta_flag(sta, WLAN_STA_BLOCK_BA); in ieee80211_reserve_tid()
5627 struct sta_info *sta = container_of(pubsta, struct sta_info, sta); in ieee80211_unreserve_tid() local
5628 struct ieee80211_sub_if_data *sdata = sta->sdata; in ieee80211_unreserve_tid()
5643 if (tid != sta->reserved_tid) { in ieee80211_unreserve_tid()
5648 sta->reserved_tid = IEEE80211_TID_UNRESERVED; in ieee80211_unreserve_tid()
5682 struct sta_info *sta; in ieee80211_tx_control_port() local
5732 if (ieee80211_lookup_ra_sta(sdata, skb, &sta) == 0 && !IS_ERR(sta)) { in ieee80211_tx_control_port()
5733 u16 queue = __ieee80211_select_queue(sdata, sta, skb); in ieee80211_tx_control_port()