mirror of
https://github.com/torvalds/linux.git
synced 2026-10-13 13:51:03 +02:00
wifi: iwlwifi: mvm/mld: fix PPE threshold debug print loop
The loop should print all bandwidths, the extra * results in calculating the wrong ARRAY_SIZE() here (of the array inside the per-bandwidth, not the per-bandwidth array.) Fix that, and also clarify the array variable assignment. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com> Link: https://patch.msgid.link/20260715220243.5e1d3448bfca.I6919627382d46605b41b0c6a6f34deedfd45523c@changeid
This commit is contained in:
parent
7e16dad5d4
commit
bbe2d2fa87
|
|
@ -355,10 +355,9 @@ static void iwl_mld_fill_pkt_ext(struct iwl_mld *mld,
|
|||
|
||||
for (int i = 0; i < MAX_HE_SUPP_NSS; i++) {
|
||||
for (int bw = 0;
|
||||
bw < ARRAY_SIZE(*pkt_ext->pkt_ext_qam_th[i]);
|
||||
bw < ARRAY_SIZE(pkt_ext->pkt_ext_qam_th[i]);
|
||||
bw++) {
|
||||
u8 *qam_th =
|
||||
&pkt_ext->pkt_ext_qam_th[i][bw][0];
|
||||
u8 *qam_th = pkt_ext->pkt_ext_qam_th[i][bw];
|
||||
|
||||
IWL_DEBUG_HT(mld,
|
||||
"PPE table: nss[%d] bw[%d] PPET8 = %d, PPET16 = %d\n",
|
||||
|
|
|
|||
|
|
@ -2352,10 +2352,9 @@ int iwl_mvm_set_sta_pkt_ext(struct iwl_mvm *mvm,
|
|||
int bw;
|
||||
|
||||
for (bw = 0;
|
||||
bw < ARRAY_SIZE(*pkt_ext->pkt_ext_qam_th[i]);
|
||||
bw < ARRAY_SIZE(pkt_ext->pkt_ext_qam_th[i]);
|
||||
bw++) {
|
||||
u8 *qam_th =
|
||||
&pkt_ext->pkt_ext_qam_th[i][bw][0];
|
||||
u8 *qam_th = pkt_ext->pkt_ext_qam_th[i][bw];
|
||||
|
||||
IWL_DEBUG_HT(mvm,
|
||||
"PPE table: nss[%d] bw[%d] PPET8 = %d, PPET16 = %d\n",
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user