Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0616c62c authored by Luciano Coelho's avatar Luciano Coelho Committed by Emmanuel Grumbach
Browse files

iwlwifi: mvm: add scan parameters debugging info



Add scan parameters information to make it easier to debug scan dwell
times and fragmentation.

Signed-off-by: default avatarLuciano Coelho <luciano.coelho@intel.com>
Reviewed-by: default avatarAlexander Bondar <alexander.bondar@intel.com>
Reviewed-by: default avatarJohannes Berg <johannes.berg@intel.com>
Signed-off-by: default avatarEmmanuel Grumbach <emmanuel.grumbach@intel.com>
parent fcc5e851
Loading
Loading
Loading
Loading
+15 −0
Original line number Diff line number Diff line
@@ -271,6 +271,21 @@ static void iwl_mvm_scan_calc_params(struct iwl_mvm *mvm,
		params->dwell[band].active = iwl_mvm_get_active_dwell(mvm, band,
								      n_ssids);
	}

	IWL_DEBUG_SCAN(mvm,
		       "scan parameters: max_out_time %d, suspend_time %d, passive_fragmented %d\n",
		       params->max_out_time, params->suspend_time,
		       params->passive_fragmented);
	IWL_DEBUG_SCAN(mvm,
		       "dwell[IEEE80211_BAND_2GHZ]: passive %d, active %d, fragmented %d\n",
		       params->dwell[IEEE80211_BAND_2GHZ].passive,
		       params->dwell[IEEE80211_BAND_2GHZ].active,
		       params->dwell[IEEE80211_BAND_2GHZ].fragmented);
	IWL_DEBUG_SCAN(mvm,
		       "dwell[IEEE80211_BAND_5GHZ]: passive %d, active %d, fragmented %d\n",
		       params->dwell[IEEE80211_BAND_5GHZ].passive,
		       params->dwell[IEEE80211_BAND_5GHZ].active,
		       params->dwell[IEEE80211_BAND_5GHZ].fragmented);
}

static inline bool iwl_mvm_rrm_scan_needed(struct iwl_mvm *mvm)