diff options
Diffstat (limited to 'drivers/net/wireless/iwlwifi')
-rw-r--r-- | drivers/net/wireless/iwlwifi/mvm/rs.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/net/wireless/iwlwifi/mvm/rs.c b/drivers/net/wireless/iwlwifi/mvm/rs.c index 1f06450007ba..d6d28d7b442b 100644 --- a/drivers/net/wireless/iwlwifi/mvm/rs.c +++ b/drivers/net/wireless/iwlwifi/mvm/rs.c | |||
@@ -2718,12 +2718,10 @@ static ssize_t rs_sta_dbgfs_scale_table_read(struct file *file, | |||
2718 | lq_sta->lq.initial_rate_index[3]); | 2718 | lq_sta->lq.initial_rate_index[3]); |
2719 | 2719 | ||
2720 | for (i = 0; i < LINK_QUAL_MAX_RETRY_NUM; i++) { | 2720 | for (i = 0; i < LINK_QUAL_MAX_RETRY_NUM; i++) { |
2721 | u32 rate = le32_to_cpu(lq_sta->lq.rs_table[i]); | 2721 | u32 r = le32_to_cpu(lq_sta->lq.rs_table[i]); |
2722 | desc += sprintf(buff+desc, | ||
2723 | " rate[%d] 0x%X ", | ||
2724 | i, rate); | ||
2725 | 2722 | ||
2726 | desc += rs_pretty_print_rate(buff+desc, rate); | 2723 | desc += sprintf(buff+desc, " rate[%d] 0x%X ", i, r); |
2724 | desc += rs_pretty_print_rate(buff+desc, r); | ||
2727 | } | 2725 | } |
2728 | 2726 | ||
2729 | ret = simple_read_from_buffer(user_buf, count, ppos, buff, desc); | 2727 | ret = simple_read_from_buffer(user_buf, count, ppos, buff, desc); |