aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-debugfs.c
diff options
context:
space:
mode:
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>2011-08-26 02:11:18 -0400
committerJohn W. Linville <linville@tuxdriver.com>2011-08-29 15:30:31 -0400
commit5f85a7890cbfd2be8f4c6620b2a6774d6b5ac647 (patch)
tree66eaa03491a20c343b1000e7ad4de4f5f282e0de /drivers/net/wireless/iwlwifi/iwl-debugfs.c
parent1603dd495f87ae97763870d57237744d90bc2bab (diff)
iwlagn: iwl_tid_data moves to iwl-shared
The rate scaling and the transport need to access the data in iwl_tid_data, hence the move. Note that the only component in the upper layer that needs this data is the rate scaling. Refactoring the rate scaling may help to move iwl_tid_data from the shared area to the transport area. Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com> Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-debugfs.c')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-debugfs.c25
1 files changed, 11 insertions, 14 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-debugfs.c b/drivers/net/wireless/iwlwifi/iwl-debugfs.c
index a01beb31d994..e320cc10167e 100644
--- a/drivers/net/wireless/iwlwifi/iwl-debugfs.c
+++ b/drivers/net/wireless/iwlwifi/iwl-debugfs.c
@@ -340,6 +340,7 @@ static ssize_t iwl_dbgfs_stations_read(struct file *file, char __user *user_buf,
340{ 340{
341 struct iwl_priv *priv = file->private_data; 341 struct iwl_priv *priv = file->private_data;
342 struct iwl_station_entry *station; 342 struct iwl_station_entry *station;
343 struct iwl_tid_data *tid_data;
343 int max_sta = hw_params(priv).max_stations; 344 int max_sta = hw_params(priv).max_stations;
344 char *buf; 345 char *buf;
345 int i, j, pos = 0; 346 int i, j, pos = 0;
@@ -363,22 +364,18 @@ static ssize_t iwl_dbgfs_stations_read(struct file *file, char __user *user_buf,
363 i, station->sta.sta.addr, 364 i, station->sta.sta.addr,
364 station->sta.station_flags_msk); 365 station->sta.station_flags_msk);
365 pos += scnprintf(buf + pos, bufsz - pos, 366 pos += scnprintf(buf + pos, bufsz - pos,
366 "TID\tseq_num\ttxq_id\tframes\ttfds\t"); 367 "TID\tseq_num\ttxq_id\ttfds\trate_n_flags\n");
367 pos += scnprintf(buf + pos, bufsz - pos,
368 "start_idx\tbitmap\t\t\trate_n_flags\n");
369 368
370 for (j = 0; j < MAX_TID_COUNT; j++) { 369 for (j = 0; j < IWL_MAX_TID_COUNT; j++) {
370 tid_data = &priv->shrd->tid_data[i][j];
371 pos += scnprintf(buf + pos, bufsz - pos, 371 pos += scnprintf(buf + pos, bufsz - pos,
372 "%d:\t%#x\t%#x\t%u\t%u\t%u\t\t%#.16llx\t%#x", 372 "%d:\t%#x\t%#x\t%u\t%#x",
373 j, station->tid[j].seq_number, 373 j, tid_data->seq_number,
374 station->tid[j].agg.txq_id, 374 tid_data->agg.txq_id,
375 station->tid[j].agg.frame_count, 375 tid_data->tfds_in_queue,
376 station->tid[j].tfds_in_queue, 376 tid_data->agg.rate_n_flags);
377 station->tid[j].agg.start_idx, 377
378 station->tid[j].agg.bitmap, 378 if (tid_data->agg.wait_for_ba)
379 station->tid[j].agg.rate_n_flags);
380
381 if (station->tid[j].agg.wait_for_ba)
382 pos += scnprintf(buf + pos, bufsz - pos, 379 pos += scnprintf(buf + pos, bufsz - pos,
383 " - waitforba"); 380 " - waitforba");
384 pos += scnprintf(buf + pos, bufsz - pos, "\n"); 381 pos += scnprintf(buf + pos, bufsz - pos, "\n");