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: Luciano Coelho <luciano.coelho@intel.com>
Reviewed-by: Alexander Bondar <alexander.bondar@intel.com>
Reviewed-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
This commit is contained in:
Luciano Coelho 2015-04-09 12:18:56 +03:00 committed by Emmanuel Grumbach
parent fcc5e8512a
commit 0616c62c16
1 changed files with 15 additions and 0 deletions

View File

@ -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)