diff options
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-agn-rs.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn-rs.c b/drivers/net/wireless/iwlwifi/iwl-agn-rs.c index 99da40678878..039ad5769d36 100644 --- a/drivers/net/wireless/iwlwifi/iwl-agn-rs.c +++ b/drivers/net/wireless/iwlwifi/iwl-agn-rs.c | |||
@@ -2526,7 +2526,9 @@ static ssize_t rs_sta_dbgfs_scale_table_read(struct file *file, | |||
2526 | ssize_t ret; | 2526 | ssize_t ret; |
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 | 2530 | ||
2531 | priv = lq_sta->drv; | ||
2530 | buff = kmalloc(1024, GFP_KERNEL); | 2532 | buff = kmalloc(1024, GFP_KERNEL); |
2531 | if (!buff) | 2533 | if (!buff) |
2532 | return -ENOMEM; | 2534 | return -ENOMEM; |
@@ -2537,6 +2539,10 @@ static ssize_t rs_sta_dbgfs_scale_table_read(struct file *file, | |||
2537 | lq_sta->active_legacy_rate); | 2539 | lq_sta->active_legacy_rate); |
2538 | desc += sprintf(buff+desc, "fixed rate 0x%X\n", | 2540 | desc += sprintf(buff+desc, "fixed rate 0x%X\n", |
2539 | lq_sta->dbg_fixed_rate); | 2541 | lq_sta->dbg_fixed_rate); |
2542 | desc += sprintf(buff+desc, "valid_tx_ant %s%s%s\n", | ||
2543 | (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_C) ? "ANT_C" : ""); | ||
2540 | desc += sprintf(buff+desc, "general:" | 2546 | desc += sprintf(buff+desc, "general:" |
2541 | "flags=0x%X mimo-d=%d s-ant0x%x d-ant=0x%x\n", | 2547 | "flags=0x%X mimo-d=%d s-ant0x%x d-ant=0x%x\n", |
2542 | lq_sta->lq.general_params.flags, | 2548 | lq_sta->lq.general_params.flags, |