Lines Matching refs:sta
45 struct sta_info *sta, in ieee80211_handle_filtered_frame() argument
70 info->control.vif = &sta->sdata->vif; in ieee80211_handle_filtered_frame()
75 sta->deflink.status_stats.filtered++; in ieee80211_handle_filtered_frame()
108 set_sta_flag(sta, WLAN_STA_CLEAR_PS_FILT); in ieee80211_handle_filtered_frame()
109 ieee80211_clear_fast_xmit(sta); in ieee80211_handle_filtered_frame()
145 if (test_sta_flag(sta, WLAN_STA_PS_STA) && in ieee80211_handle_filtered_frame()
146 skb_queue_len(&sta->tx_filtered[ac]) < STA_MAX_TX_BUFFER) { in ieee80211_handle_filtered_frame()
147 skb_queue_tail(&sta->tx_filtered[ac], skb); in ieee80211_handle_filtered_frame()
148 sta_info_recalc_tim(sta); in ieee80211_handle_filtered_frame()
157 if (!test_sta_flag(sta, WLAN_STA_PS_STA) && in ieee80211_handle_filtered_frame()
165 ps_dbg_ratelimited(sta->sdata, in ieee80211_handle_filtered_frame()
167 skb_queue_len(&sta->tx_filtered[ac]), in ieee80211_handle_filtered_frame()
168 !!test_sta_flag(sta, WLAN_STA_PS_STA), jiffies); in ieee80211_handle_filtered_frame()
172 static void ieee80211_check_pending_bar(struct sta_info *sta, u8 *addr, u8 tid) in ieee80211_check_pending_bar() argument
176 tid_tx = rcu_dereference(sta->ampdu_mlme.tid_tx[tid]); in ieee80211_check_pending_bar()
181 ieee80211_send_bar(&sta->sdata->vif, addr, tid, tid_tx->failed_bar_ssn); in ieee80211_check_pending_bar()
184 static void ieee80211_frame_acked(struct sta_info *sta, struct sk_buff *skb) in ieee80211_frame_acked() argument
193 ieee80211_check_pending_bar(sta, hdr->addr1, tid); in ieee80211_frame_acked()
197 static void ieee80211_set_bar_pending(struct sta_info *sta, u8 tid, u16 ssn) in ieee80211_set_bar_pending() argument
201 tid_tx = rcu_dereference(sta->ampdu_mlme.tid_tx[tid]); in ieee80211_set_bar_pending()
729 struct sta_info *sta; in ieee80211_report_used_skb() local
733 sta = sta_info_get_by_addrs(local, hdr->addr1, hdr->addr2); in ieee80211_report_used_skb()
734 ieee80211_sta_update_pending_airtime(local, sta, in ieee80211_report_used_skb()
824 static void ieee80211_lost_packet(struct sta_info *sta, in ieee80211_lost_packet() argument
833 if (ieee80211_hw_check(&sta->local->hw, REPORTS_LOW_ACK)) in ieee80211_lost_packet()
841 sta->deflink.status_stats.lost_packets++; in ieee80211_lost_packet()
842 if (sta->sta.tdls) { in ieee80211_lost_packet()
854 if (sta->deflink.status_stats.lost_packets < pkt_thr || in ieee80211_lost_packet()
855 !time_after(jiffies, sta->deflink.status_stats.last_pkt_time + pkt_time)) in ieee80211_lost_packet()
858 cfg80211_cqm_pktloss_notify(sta->sdata->dev, sta->sta.addr, in ieee80211_lost_packet()
859 sta->deflink.status_stats.lost_packets, in ieee80211_lost_packet()
861 sta->deflink.status_stats.lost_packets = 0; in ieee80211_lost_packet()
962 struct sta_info *sta; in __ieee80211_tx_status() local
972 if (status->sta) { in __ieee80211_tx_status()
973 sta = container_of(status->sta, struct sta_info, sta); in __ieee80211_tx_status()
976 clear_sta_flag(sta, WLAN_STA_SP); in __ieee80211_tx_status()
983 if (ieee80211_vif_is_mesh(&sta->sdata->vif) && in __ieee80211_tx_status()
986 ieee80211_get_qos_ctl(hdr), sta, true, acked); in __ieee80211_tx_status()
991 sta->deflink.tx_stats.last_rate = in __ieee80211_tx_status()
1003 ieee80211_send_bar(&sta->sdata->vif, hdr->addr1, in __ieee80211_tx_status()
1028 ieee80211_set_bar_pending(sta, tid, ssn); in __ieee80211_tx_status()
1033 ieee80211_handle_filtered_frame(local, sta, skb); in __ieee80211_tx_status()
1037 sta->deflink.status_stats.msdu_failed[tid]++; in __ieee80211_tx_status()
1039 sta->deflink.status_stats.msdu_retries[tid] += in __ieee80211_tx_status()
1044 ieee80211_frame_acked(sta, skb); in __ieee80211_tx_status()
1123 struct sta_info *sta; in ieee80211_tx_status_skb() local
1127 sta = sta_info_get_by_addrs(local, hdr->addr1, hdr->addr2); in ieee80211_tx_status_skb()
1128 if (sta) in ieee80211_tx_status_skb()
1129 status.sta = &sta->sta; in ieee80211_tx_status_skb()
1141 struct ieee80211_sta *pubsta = status->sta; in ieee80211_tx_status_ext()
1143 struct sta_info *sta = NULL; in ieee80211_tx_status_ext() local
1149 sta = container_of(pubsta, struct sta_info, sta); in ieee80211_tx_status_ext()
1152 sta->deflink.tx_stats.last_rate_info = in ieee80211_tx_status_ext()
1161 ieee80211_sta_update_pending_airtime(local, sta, in ieee80211_tx_status_ext()
1179 struct ieee80211_sub_if_data *sdata = sta->sdata; in ieee80211_tx_status_ext()
1182 sta->deflink.status_stats.retry_failed++; in ieee80211_tx_status_ext()
1183 sta->deflink.status_stats.retry_count += retry_count; in ieee80211_tx_status_ext()
1192 sta->deflink.status_stats.last_ack = jiffies; in ieee80211_tx_status_ext()
1194 if (sta->deflink.status_stats.lost_packets) in ieee80211_tx_status_ext()
1195 sta->deflink.status_stats.lost_packets = 0; in ieee80211_tx_status_ext()
1198 sta->deflink.status_stats.last_pkt_time = jiffies; in ieee80211_tx_status_ext()
1206 sta->deflink.status_stats.last_ack_signal = in ieee80211_tx_status_ext()
1208 sta->deflink.status_stats.ack_signal_filled = true; in ieee80211_tx_status_ext()
1209 ewma_avg_signal_add(&sta->deflink.status_stats.avg_ack_signal, in ieee80211_tx_status_ext()
1212 } else if (test_sta_flag(sta, WLAN_STA_PS_STA)) { in ieee80211_tx_status_ext()
1218 ieee80211_handle_filtered_frame(local, sta, skb); in ieee80211_tx_status_ext()
1223 ieee80211_lost_packet(sta, info); in ieee80211_tx_status_ext()
1228 if (ieee80211_vif_is_mesh(&sta->sdata->vif)) in ieee80211_tx_status_ext()
1229 ieee80211s_update_metric(local, sta, status); in ieee80211_tx_status_ext()
1265 struct sta_info *sta = container_of(pubsta, struct sta_info, sta); in ieee80211_tx_rate_update() local
1268 .sta = pubsta, in ieee80211_tx_rate_update()
1274 sta->deflink.tx_stats.last_rate = info->status.rates[0]; in ieee80211_tx_rate_update()
1280 struct sta_info *sta = container_of(pubsta, struct sta_info, sta); in ieee80211_report_low_ack() local
1281 cfg80211_cqm_pktloss_notify(sta->sdata->dev, sta->sta.addr, in ieee80211_report_low_ack()