Lines Matching refs:sta
27 struct sta_info *sta = file->private_data; \
29 format_string, sta->field); \
54 STA_FILE(aid, sta.aid, D);
64 struct sta_info *sta = file->private_data; in sta_flags_read() local
67 test_sta_flag(sta, WLAN_STA_##flg) ? #flg "\n" : "" in sta_flags_read()
74 sta->sta.wme ? "WME\n" : "", in sta_flags_read()
92 struct sta_info *sta = file->private_data; in sta_num_ps_buf_frames_read() local
98 skb_queue_len(&sta->ps_tx_buf[ac]) + in sta_num_ps_buf_frames_read()
99 skb_queue_len(&sta->tx_filtered[ac])); in sta_num_ps_buf_frames_read()
107 struct sta_info *sta = file->private_data; in sta_inactive_ms_read() local
109 jiffies_to_msecs(jiffies - sta->last_rx)); in sta_inactive_ms_read()
117 struct sta_info *sta = file->private_data; in sta_connected_time_read() local
124 connected_time_secs = uptime.tv_sec - sta->last_connected; in sta_connected_time_read()
143 struct sta_info *sta = file->private_data; in sta_last_seq_ctrl_read() local
146 le16_to_cpu(sta->last_seq_ctrl[i])); in sta_last_seq_ctrl_read()
157 struct sta_info *sta = file->private_data; in sta_agg_status_read() local
164 sta->ampdu_mlme.dialog_token_allocator + 1); in sta_agg_status_read()
169 tid_rx = rcu_dereference(sta->ampdu_mlme.tid_rx[i]); in sta_agg_status_read()
170 tid_tx = rcu_dereference(sta->ampdu_mlme.tid_tx[i]); in sta_agg_status_read()
195 struct sta_info *sta = file->private_data; in sta_agg_status_write() local
237 ret = ieee80211_start_tx_ba_session(&sta->sta, tid, 5000); in sta_agg_status_write()
239 ret = ieee80211_stop_tx_ba_session(&sta->sta, tid); in sta_agg_status_write()
241 __ieee80211_stop_rx_ba_session(sta, tid, WLAN_BACK_RECIPIENT, in sta_agg_status_write()
260 struct sta_info *sta = file->private_data; in sta_ht_capa_read() local
261 struct ieee80211_sta_ht_cap *htc = &sta->sta.ht_cap; in sta_ht_capa_read()
336 struct sta_info *sta = file->private_data; in sta_vht_capa_read() local
337 struct ieee80211_sta_vht_cap *vhtc = &sta->sta.vht_cap; in sta_vht_capa_read()
365 struct sta_info *sta = file->private_data; in sta_current_tx_rate_read() local
368 sta_set_rate_info_tx(sta, &sta->last_tx_rate, &rinfo); in sta_current_tx_rate_read()
380 struct sta_info *sta = file->private_data; in sta_last_rx_rate_read() local
384 sta_set_rate_info_rx(sta, &rinfo); in sta_last_rx_rate_read()
396 sta->debugfs.dir, sta, &sta_ ##name## _ops);
399 if (sizeof(sta->field) == sizeof(u32)) \
400 debugfs_create_u32(#name, 0400, sta->debugfs.dir, \
401 (u32 *) &sta->field); \
403 debugfs_create_u64(#name, 0400, sta->debugfs.dir, \
404 (u64 *) &sta->field);
406 void ieee80211_sta_debugfs_add(struct sta_info *sta) in ieee80211_sta_debugfs_add() argument
408 struct ieee80211_local *local = sta->local; in ieee80211_sta_debugfs_add()
409 struct ieee80211_sub_if_data *sdata = sta->sdata; in ieee80211_sta_debugfs_add()
410 struct dentry *stations_dir = sta->sdata->debugfs.subdir_stations; in ieee80211_sta_debugfs_add()
413 sta->debugfs.add_has_run = true; in ieee80211_sta_debugfs_add()
418 snprintf(mac, sizeof(mac), "%pM", sta->sta.addr); in ieee80211_sta_debugfs_add()
429 sta->debugfs.dir = debugfs_create_dir(mac, stations_dir); in ieee80211_sta_debugfs_add()
430 if (!sta->debugfs.dir) in ieee80211_sta_debugfs_add()
460 if (sizeof(sta->driver_buffered_tids) == sizeof(u32)) in ieee80211_sta_debugfs_add()
462 sta->debugfs.dir, in ieee80211_sta_debugfs_add()
463 (u32 *)&sta->driver_buffered_tids); in ieee80211_sta_debugfs_add()
466 sta->debugfs.dir, in ieee80211_sta_debugfs_add()
467 (u64 *)&sta->driver_buffered_tids); in ieee80211_sta_debugfs_add()
469 drv_sta_add_debugfs(local, sdata, &sta->sta, sta->debugfs.dir); in ieee80211_sta_debugfs_add()
472 void ieee80211_sta_debugfs_remove(struct sta_info *sta) in ieee80211_sta_debugfs_remove() argument
474 struct ieee80211_local *local = sta->local; in ieee80211_sta_debugfs_remove()
475 struct ieee80211_sub_if_data *sdata = sta->sdata; in ieee80211_sta_debugfs_remove()
477 drv_sta_remove_debugfs(local, sdata, &sta->sta, sta->debugfs.dir); in ieee80211_sta_debugfs_remove()
478 debugfs_remove_recursive(sta->debugfs.dir); in ieee80211_sta_debugfs_remove()
479 sta->debugfs.dir = NULL; in ieee80211_sta_debugfs_remove()