diff options
author | Mohammed Shafi Shajakhan <mohammed@qca.qualcomm.com> | 2011-08-09 12:03:43 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-08-10 14:07:43 -0400 |
commit | 32359e30a6d0b1ee57e0da6cc71713becdde0b39 (patch) | |
tree | f7b72dd6ae11904c0fc109b7f6f8e4f584d455a5 /drivers/net/wireless/ath/ath9k/rc.c | |
parent | 1b1de7aa9966f44560614c94b3940f685e79a7cb (diff) |
ath9k: optimize rate control statistics
for the ease of debugging, we display only the rate control statistics
for currently operating mode and bandwidth
Cc: Vasanthakumar Thiagarajan <vthiagar@qca.qualcomm.com>
Cc: "Balasubramanian, senthilkumar" <senthilb@qca.qualcomm.com>
Signed-off-by: Mohammed Shafi Shajakhan <mohammed@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/rc.c')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/rc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/ath/ath9k/rc.c b/drivers/net/wireless/ath/ath9k/rc.c index c04a6c3cac7f..9e3649a3d5ca 100644 --- a/drivers/net/wireless/ath/ath9k/rc.c +++ b/drivers/net/wireless/ath/ath9k/rc.c | |||
@@ -1484,7 +1484,7 @@ static ssize_t read_file_rcstat(struct file *file, char __user *user_buf, | |||
1484 | if (rc->rate_table == NULL) | 1484 | if (rc->rate_table == NULL) |
1485 | return 0; | 1485 | return 0; |
1486 | 1486 | ||
1487 | max = 80 + rc->rate_table->rate_cnt * 1024 + 1; | 1487 | max = 80 + rc->rate_table_size * 1024 + 1; |
1488 | buf = kmalloc(max, GFP_KERNEL); | 1488 | buf = kmalloc(max, GFP_KERNEL); |
1489 | if (buf == NULL) | 1489 | if (buf == NULL) |
1490 | return -ENOMEM; | 1490 | return -ENOMEM; |
@@ -1494,7 +1494,7 @@ static ssize_t read_file_rcstat(struct file *file, char __user *user_buf, | |||
1494 | "HT", "MCS", "Rate", | 1494 | "HT", "MCS", "Rate", |
1495 | "Success", "Retries", "XRetries", "PER"); | 1495 | "Success", "Retries", "XRetries", "PER"); |
1496 | 1496 | ||
1497 | for (i = 0; i < rc->rate_table->rate_cnt; i++) { | 1497 | for (i = 0; i < rc->rate_table_size; i++) { |
1498 | u32 ratekbps = rc->rate_table->info[i].ratekbps; | 1498 | u32 ratekbps = rc->rate_table->info[i].ratekbps; |
1499 | struct ath_rc_stats *stats = &rc->rcstats[i]; | 1499 | struct ath_rc_stats *stats = &rc->rcstats[i]; |
1500 | char mcs[5]; | 1500 | char mcs[5]; |