diff options
author | Wey-Yi Guy <wey-yi.w.guy@intel.com> | 2009-03-10 17:35:08 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-03-16 18:09:43 -0400 |
commit | adb7b5e62ba84b57692ebfa12f4b80d6cf0801a9 (patch) | |
tree | 84e6b2f722e227d33ab49498538974704dd937fa /drivers | |
parent | d8ae4f52d8244cc4a0f0983e65dfc31739739de9 (diff) |
iwlwifi: add rf information in rate_scale debugfs command
Adding more Radio information when displaying
rate_scale_table. This can help to understand how many antenna and the
current RF condition such as SISO, MIMO2, MIMO3.
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-agn-rs.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn-rs.c b/drivers/net/wireless/iwlwifi/iwl-agn-rs.c index 039ad5769d36..9bcebf2f4607 100644 --- a/drivers/net/wireless/iwlwifi/iwl-agn-rs.c +++ b/drivers/net/wireless/iwlwifi/iwl-agn-rs.c | |||
@@ -2527,6 +2527,7 @@ static ssize_t rs_sta_dbgfs_scale_table_read(struct file *file, | |||
2527 | 2527 | ||
2528 | struct iwl_lq_sta *lq_sta = file->private_data; | 2528 | struct iwl_lq_sta *lq_sta = file->private_data; |
2529 | struct iwl_priv *priv; | 2529 | struct iwl_priv *priv; |
2530 | struct iwl_scale_tbl_info *tbl = &(lq_sta->lq_info[lq_sta->active_tbl]); | ||
2530 | 2531 | ||
2531 | priv = lq_sta->drv; | 2532 | priv = lq_sta->drv; |
2532 | buff = kmalloc(1024, GFP_KERNEL); | 2533 | buff = kmalloc(1024, GFP_KERNEL); |
@@ -2543,6 +2544,16 @@ static ssize_t rs_sta_dbgfs_scale_table_read(struct file *file, | |||
2543 | (priv->hw_params.valid_tx_ant & ANT_A) ? "ANT_A," : "", | 2544 | (priv->hw_params.valid_tx_ant & ANT_A) ? "ANT_A," : "", |
2544 | (priv->hw_params.valid_tx_ant & ANT_B) ? "ANT_B," : "", | 2545 | (priv->hw_params.valid_tx_ant & ANT_B) ? "ANT_B," : "", |
2545 | (priv->hw_params.valid_tx_ant & ANT_C) ? "ANT_C" : ""); | 2546 | (priv->hw_params.valid_tx_ant & ANT_C) ? "ANT_C" : ""); |
2547 | desc += sprintf(buff+desc, "lq type %s\n", | ||
2548 | (is_legacy(tbl->lq_type)) ? "legacy" : "HT"); | ||
2549 | if (is_Ht(tbl->lq_type)) { | ||
2550 | desc += sprintf(buff+desc, " %s", | ||
2551 | (is_siso(tbl->lq_type)) ? "SISO" : | ||
2552 | ((is_mimo2(tbl->lq_type)) ? "MIMO2" : "MIMO3")); | ||
2553 | desc += sprintf(buff+desc, " %s", | ||
2554 | (tbl->is_fat) ? "40MHz" : "20MHz"); | ||
2555 | desc += sprintf(buff+desc, " %s\n", (tbl->is_SGI) ? "SGI" : ""); | ||
2556 | } | ||
2546 | desc += sprintf(buff+desc, "general:" | 2557 | desc += sprintf(buff+desc, "general:" |
2547 | "flags=0x%X mimo-d=%d s-ant0x%x d-ant=0x%x\n", | 2558 | "flags=0x%X mimo-d=%d s-ant0x%x d-ant=0x%x\n", |
2548 | lq_sta->lq.general_params.flags, | 2559 | lq_sta->lq.general_params.flags, |