mirror of https://gitee.com/openkylin/linux.git
iwlwifi: mvm: rs: print single stream params via debugfs
Add this to the info printed when reading rate_scale_table. Useful for debugging. Signed-off-by: Eyal Shapira <eyalx.shapira@intel.com> Reviewed-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
This commit is contained in:
parent
878985ce7e
commit
16c426ff9e
|
@ -3323,6 +3323,7 @@ static ssize_t rs_sta_dbgfs_scale_table_read(struct file *file,
|
||||||
struct iwl_mvm *mvm;
|
struct iwl_mvm *mvm;
|
||||||
struct iwl_scale_tbl_info *tbl = &(lq_sta->lq_info[lq_sta->active_tbl]);
|
struct iwl_scale_tbl_info *tbl = &(lq_sta->lq_info[lq_sta->active_tbl]);
|
||||||
struct rs_rate *rate = &tbl->rate;
|
struct rs_rate *rate = &tbl->rate;
|
||||||
|
u32 ss_params;
|
||||||
mvm = lq_sta->pers.drv;
|
mvm = lq_sta->pers.drv;
|
||||||
buff = kmalloc(2048, GFP_KERNEL);
|
buff = kmalloc(2048, GFP_KERNEL);
|
||||||
if (!buff)
|
if (!buff)
|
||||||
|
@ -3369,6 +3370,16 @@ static ssize_t rs_sta_dbgfs_scale_table_read(struct file *file,
|
||||||
lq_sta->lq.agg_frame_cnt_limit);
|
lq_sta->lq.agg_frame_cnt_limit);
|
||||||
|
|
||||||
desc += sprintf(buff+desc, "reduced tpc=%d\n", lq_sta->lq.reduced_tpc);
|
desc += sprintf(buff+desc, "reduced tpc=%d\n", lq_sta->lq.reduced_tpc);
|
||||||
|
ss_params = le32_to_cpu(lq_sta->lq.ss_params);
|
||||||
|
desc += sprintf(buff+desc, "single stream params: %s%s%s%s\n",
|
||||||
|
(ss_params & LQ_SS_PARAMS_VALID) ?
|
||||||
|
"VALID," : "INVALID",
|
||||||
|
(ss_params & LQ_SS_BFER_ALLOWED) ?
|
||||||
|
"BFER," : "",
|
||||||
|
(ss_params & LQ_SS_STBC_1SS_ALLOWED) ?
|
||||||
|
"STBC," : "",
|
||||||
|
(ss_params & LQ_SS_FORCE) ?
|
||||||
|
"FORCE" : "");
|
||||||
desc += sprintf(buff+desc,
|
desc += sprintf(buff+desc,
|
||||||
"Start idx [0]=0x%x [1]=0x%x [2]=0x%x [3]=0x%x\n",
|
"Start idx [0]=0x%x [1]=0x%x [2]=0x%x [3]=0x%x\n",
|
||||||
lq_sta->lq.initial_rate_index[0],
|
lq_sta->lq.initial_rate_index[0],
|
||||||
|
|
Loading…
Reference in New Issue