iwlwifi: mvm: add scan parameters debugging info
authorLuciano Coelho <luciano.coelho@intel.com>
Thu, 9 Apr 2015 09:18:56 +0000 (12:18 +0300)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Wed, 29 Apr 2015 10:12:47 +0000 (13:12 +0300)
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>
drivers/net/wireless/iwlwifi/mvm/scan.c

index 1075a213bd6a87156e44ab410ac566cf18bdacc3..9f725058539359732974f29abb9d77df9f94393d 100644 (file)
@@ -271,6 +271,21 @@ not_bound:
                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)
This page took 0.026856 seconds and 5 git commands to generate.