aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/mvm/mac80211.c
diff options
context:
space:
mode:
authorLuciano Coelho <luciano.coelho@intel.com>2015-03-27 03:28:26 -0400
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>2015-04-29 06:13:15 -0400
commit999d2568ee0c2bbdf71a414e85fffe5d58fe766a (patch)
treeee0c7caf61ed62adeb605c3b7f2c806070f6b576 /drivers/net/wireless/iwlwifi/mvm/mac80211.c
parent83c415fd89486ab2992f728337c812b7264f7459 (diff)
iwlwifi: mvm: combine scan size checks into a common function
Instead of repeating the same code in 4 different places, combine the comparisons into a new function. Additionally, this change fixes UMAC scans where the RRM IEs were not taken into consideration when calculating the IE length. Signed-off-by: Luciano Coelho <luciano.coelho@intel.com> Reviewed-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/mvm/mac80211.c')
-rw-r--r--drivers/net/wireless/iwlwifi/mvm/mac80211.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/iwlwifi/mvm/mac80211.c b/drivers/net/wireless/iwlwifi/mvm/mac80211.c
index 249d02079a48..8d9e5da1db3c 100644
--- a/drivers/net/wireless/iwlwifi/mvm/mac80211.c
+++ b/drivers/net/wireless/iwlwifi/mvm/mac80211.c
@@ -505,7 +505,7 @@ int iwl_mvm_mac_setup_register(struct iwl_mvm *mvm)
505 505
506 iwl_mvm_reset_phy_ctxts(mvm); 506 iwl_mvm_reset_phy_ctxts(mvm);
507 507
508 hw->wiphy->max_scan_ie_len = iwl_mvm_max_scan_ie_len(mvm, false); 508 hw->wiphy->max_scan_ie_len = iwl_mvm_max_scan_ie_len(mvm);
509 509
510 hw->wiphy->max_scan_ssids = PROBE_OPTION_MAX; 510 hw->wiphy->max_scan_ssids = PROBE_OPTION_MAX;
511 511