Lines Matching refs:sta
28 struct sta_info *sta = file->private_data; \
30 format_string, sta->field); \
53 STA_FILE(aid, sta.aid, D);
91 struct sta_info *sta = file->private_data; in sta_flags_read() local
97 if (test_sta_flag(sta, flg)) in sta_flags_read()
110 struct sta_info *sta = file->private_data; in sta_num_ps_buf_frames_read() local
116 skb_queue_len(&sta->ps_tx_buf[ac]) + in sta_num_ps_buf_frames_read()
117 skb_queue_len(&sta->tx_filtered[ac])); in sta_num_ps_buf_frames_read()
127 struct sta_info *sta = file->private_data; in sta_last_seq_ctrl_read() local
130 le16_to_cpu(sta->last_seq_ctrl[i])); in sta_last_seq_ctrl_read()
141 struct sta_info *sta = file->private_data; in sta_aqm_read() local
142 struct ieee80211_local *local = sta->local; in sta_aqm_read()
158 codel_time_to_us(sta->cparams.target), in sta_aqm_read()
159 codel_time_to_us(sta->cparams.interval), in sta_aqm_read()
160 sta->cparams.ecn ? "yes" : "no"); in sta_aqm_read()
166 txqi = to_txq_info(sta->sta.txq[i]); in sta_aqm_read()
200 struct sta_info *sta = file->private_data; in sta_agg_status_read() local
207 sta->ampdu_mlme.dialog_token_allocator + 1); in sta_agg_status_read()
214 tid_rx = rcu_dereference(sta->ampdu_mlme.tid_rx[i]); in sta_agg_status_read()
215 tid_tx = rcu_dereference(sta->ampdu_mlme.tid_tx[i]); in sta_agg_status_read()
216 tid_rx_valid = test_bit(i, sta->ampdu_mlme.agg_session_valid); in sta_agg_status_read()
223 sta->ampdu_mlme.tid_rx_token[i] : 0); in sta_agg_status_read()
243 struct sta_info *sta = file->private_data; in sta_agg_status_write() local
296 ret = ieee80211_start_tx_ba_session(&sta->sta, tid, in sta_agg_status_write()
299 ret = ieee80211_stop_tx_ba_session(&sta->sta, tid); in sta_agg_status_write()
301 __ieee80211_stop_rx_ba_session(sta, tid, WLAN_BACK_RECIPIENT, in sta_agg_status_write()
320 struct sta_info *sta = file->private_data; in sta_ht_capa_read() local
321 struct ieee80211_sta_ht_cap *htc = &sta->sta.ht_cap; in sta_ht_capa_read()
396 struct sta_info *sta = file->private_data; in sta_vht_capa_read() local
397 struct ieee80211_sta_vht_cap *vhtc = &sta->sta.vht_cap; in sta_vht_capa_read()
499 sta->debugfs_dir, sta, &sta_ ##name## _ops);
502 if (sizeof(sta->field) == sizeof(u32)) \
503 debugfs_create_u32(#name, 0400, sta->debugfs_dir, \
504 (u32 *) &sta->field); \
506 debugfs_create_u64(#name, 0400, sta->debugfs_dir, \
507 (u64 *) &sta->field);
509 void ieee80211_sta_debugfs_add(struct sta_info *sta) in ieee80211_sta_debugfs_add() argument
511 struct ieee80211_local *local = sta->local; in ieee80211_sta_debugfs_add()
512 struct ieee80211_sub_if_data *sdata = sta->sdata; in ieee80211_sta_debugfs_add()
513 struct dentry *stations_dir = sta->sdata->debugfs.subdir_stations; in ieee80211_sta_debugfs_add()
519 snprintf(mac, sizeof(mac), "%pM", sta->sta.addr); in ieee80211_sta_debugfs_add()
530 sta->debugfs_dir = debugfs_create_dir(mac, stations_dir); in ieee80211_sta_debugfs_add()
531 if (!sta->debugfs_dir) in ieee80211_sta_debugfs_add()
549 if (sizeof(sta->driver_buffered_tids) == sizeof(u32)) in ieee80211_sta_debugfs_add()
551 sta->debugfs_dir, in ieee80211_sta_debugfs_add()
552 (u32 *)&sta->driver_buffered_tids); in ieee80211_sta_debugfs_add()
555 sta->debugfs_dir, in ieee80211_sta_debugfs_add()
556 (u64 *)&sta->driver_buffered_tids); in ieee80211_sta_debugfs_add()
558 drv_sta_add_debugfs(local, sdata, &sta->sta, sta->debugfs_dir); in ieee80211_sta_debugfs_add()
561 void ieee80211_sta_debugfs_remove(struct sta_info *sta) in ieee80211_sta_debugfs_remove() argument
563 debugfs_remove_recursive(sta->debugfs_dir); in ieee80211_sta_debugfs_remove()
564 sta->debugfs_dir = NULL; in ieee80211_sta_debugfs_remove()