mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-05 12:16:29 -04:00
wcn36xx: add debug prints for sw_scan start/complete
Add some MAC debug prints for more easily demarcating a software scan when parsing logs. Signed-off-by: Benjamin Li <benl@squareup.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org> Link: https://lore.kernel.org/r/20211027170306.555535-2-benl@squareup.com
This commit is contained in:
@@ -707,6 +707,8 @@ static void wcn36xx_sw_scan_start(struct ieee80211_hw *hw,
|
||||
struct wcn36xx *wcn = hw->priv;
|
||||
struct wcn36xx_vif *vif_priv = wcn36xx_vif_to_priv(vif);
|
||||
|
||||
wcn36xx_dbg(WCN36XX_DBG_MAC, "sw_scan_start");
|
||||
|
||||
wcn->sw_scan = true;
|
||||
wcn->sw_scan_vif = vif;
|
||||
wcn->sw_scan_channel = 0;
|
||||
@@ -721,6 +723,8 @@ static void wcn36xx_sw_scan_complete(struct ieee80211_hw *hw,
|
||||
{
|
||||
struct wcn36xx *wcn = hw->priv;
|
||||
|
||||
wcn36xx_dbg(WCN36XX_DBG_MAC, "sw_scan_complete");
|
||||
|
||||
/* ensure that any scan session is finished */
|
||||
wcn36xx_smd_finish_scan(wcn, HAL_SYS_MODE_SCAN, wcn->sw_scan_vif);
|
||||
wcn->sw_scan = false;
|
||||
|
||||
Reference in New Issue
Block a user