From: greearb@candelatech.com
To: linux-wireless@vger.kernel.org
Cc: Ben Greear <greearb@candelatech.com>
Subject: [PATCH] wifi: iwlwifi: Add debugging around scan failure warning.
Date: Tue, 14 Nov 2023 13:23:09 -0800 [thread overview]
Message-ID: <20231114212309.2180281-1-greearb@candelatech.com> (raw)
From: Ben Greear <greearb@candelatech.com>
Provide additional information that may help debugging why
the WARN_ON is seen.
Signed-off-by: Ben Greear <greearb@candelatech.com>
---
drivers/net/wireless/intel/iwlwifi/mvm/scan.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/scan.c b/drivers/net/wireless/intel/iwlwifi/mvm/scan.c
index 75c5c58e14a5..ec24ece7c877 100644
--- a/drivers/net/wireless/intel/iwlwifi/mvm/scan.c
+++ b/drivers/net/wireless/intel/iwlwifi/mvm/scan.c
@@ -2356,7 +2356,10 @@ iwl_mvm_scan_umac_fill_general_p_v12(struct iwl_mvm *mvm,
link_id = ffs(vif->active_links) - 1;
link_info = scan_vif->link[link_id];
- if (!WARN_ON(!link_info))
+ if (WARN_ON(!link_info))
+ IWL_ERR(mvm, "scan failure: Cannot find link info for link-id: %d active-links: 0x%x\n",
+ link_id, vif->active_links);
+ else
gp->scan_start_mac_or_link_id = link_info->fw_link_id;
}
}
--
2.41.0
next reply other threads:[~2023-11-14 21:23 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-14 21:23 greearb [this message]
2023-11-15 8:57 ` [PATCH] wifi: iwlwifi: Add debugging around scan failure warning Johannes Berg
2023-11-15 16:01 ` Ben Greear
2023-11-15 16:10 ` Johannes Berg
2023-11-16 17:51 ` Ben Greear
2023-11-16 20:05 ` Johannes Berg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20231114212309.2180281-1-greearb@candelatech.com \
--to=greearb@candelatech.com \
--cc=linux-wireless@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox