Lines Matching refs:sta

27 	struct sta_info *sta = file->private_data;			\
29 format_string, sta->field); \
52 STA_FILE(aid, sta.aid, D);
58 struct sta_info *sta = file->private_data; in sta_flags_read() local
61 test_sta_flag(sta, WLAN_STA_##flg) ? #flg "\n" : "" in sta_flags_read()
68 sta->sta.wme ? "WME\n" : "", in sta_flags_read()
86 struct sta_info *sta = file->private_data; in sta_num_ps_buf_frames_read() local
92 skb_queue_len(&sta->ps_tx_buf[ac]) + in sta_num_ps_buf_frames_read()
93 skb_queue_len(&sta->tx_filtered[ac])); in sta_num_ps_buf_frames_read()
103 struct sta_info *sta = file->private_data; in sta_last_seq_ctrl_read() local
106 le16_to_cpu(sta->last_seq_ctrl[i])); in sta_last_seq_ctrl_read()
117 struct sta_info *sta = file->private_data; in sta_agg_status_read() local
124 sta->ampdu_mlme.dialog_token_allocator + 1); in sta_agg_status_read()
129 tid_rx = rcu_dereference(sta->ampdu_mlme.tid_rx[i]); in sta_agg_status_read()
130 tid_tx = rcu_dereference(sta->ampdu_mlme.tid_tx[i]); in sta_agg_status_read()
155 struct sta_info *sta = file->private_data; in sta_agg_status_write() local
197 ret = ieee80211_start_tx_ba_session(&sta->sta, tid, 5000); in sta_agg_status_write()
199 ret = ieee80211_stop_tx_ba_session(&sta->sta, tid); in sta_agg_status_write()
201 __ieee80211_stop_rx_ba_session(sta, tid, WLAN_BACK_RECIPIENT, in sta_agg_status_write()
220 struct sta_info *sta = file->private_data; in sta_ht_capa_read() local
221 struct ieee80211_sta_ht_cap *htc = &sta->sta.ht_cap; in sta_ht_capa_read()
296 struct sta_info *sta = file->private_data; in sta_vht_capa_read() local
297 struct ieee80211_sta_vht_cap *vhtc = &sta->sta.vht_cap; in sta_vht_capa_read()
325 sta->debugfs.dir, sta, &sta_ ##name## _ops);
328 if (sizeof(sta->field) == sizeof(u32)) \
329 debugfs_create_u32(#name, 0400, sta->debugfs.dir, \
330 (u32 *) &sta->field); \
332 debugfs_create_u64(#name, 0400, sta->debugfs.dir, \
333 (u64 *) &sta->field);
335 void ieee80211_sta_debugfs_add(struct sta_info *sta) in ieee80211_sta_debugfs_add() argument
337 struct ieee80211_local *local = sta->local; in ieee80211_sta_debugfs_add()
338 struct ieee80211_sub_if_data *sdata = sta->sdata; in ieee80211_sta_debugfs_add()
339 struct dentry *stations_dir = sta->sdata->debugfs.subdir_stations; in ieee80211_sta_debugfs_add()
342 sta->debugfs.add_has_run = true; in ieee80211_sta_debugfs_add()
347 snprintf(mac, sizeof(mac), "%pM", sta->sta.addr); in ieee80211_sta_debugfs_add()
358 sta->debugfs.dir = debugfs_create_dir(mac, stations_dir); in ieee80211_sta_debugfs_add()
359 if (!sta->debugfs.dir) in ieee80211_sta_debugfs_add()
373 if (sizeof(sta->driver_buffered_tids) == sizeof(u32)) in ieee80211_sta_debugfs_add()
375 sta->debugfs.dir, in ieee80211_sta_debugfs_add()
376 (u32 *)&sta->driver_buffered_tids); in ieee80211_sta_debugfs_add()
379 sta->debugfs.dir, in ieee80211_sta_debugfs_add()
380 (u64 *)&sta->driver_buffered_tids); in ieee80211_sta_debugfs_add()
382 drv_sta_add_debugfs(local, sdata, &sta->sta, sta->debugfs.dir); in ieee80211_sta_debugfs_add()
385 void ieee80211_sta_debugfs_remove(struct sta_info *sta) in ieee80211_sta_debugfs_remove() argument
387 struct ieee80211_local *local = sta->local; in ieee80211_sta_debugfs_remove()
388 struct ieee80211_sub_if_data *sdata = sta->sdata; in ieee80211_sta_debugfs_remove()
390 drv_sta_remove_debugfs(local, sdata, &sta->sta, sta->debugfs.dir); in ieee80211_sta_debugfs_remove()
391 debugfs_remove_recursive(sta->debugfs.dir); in ieee80211_sta_debugfs_remove()
392 sta->debugfs.dir = NULL; in ieee80211_sta_debugfs_remove()