OSDN Git Service

iwlwifi: mvm: combine scan size checks into a common function
authorLuciano Coelho <luciano.coelho@intel.com>
Fri, 27 Mar 2015 07:28:26 +0000 (10:28 +0300)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Wed, 29 Apr 2015 10:13:15 +0000 (13:13 +0300)
commit999d2568ee0c2bbdf71a414e85fffe5d58fe766a
treeee0c7caf61ed62adeb605c3b7f2c806070f6b576
parent83c415fd89486ab2992f728337c812b7264f7459
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>
drivers/net/wireless/iwlwifi/mvm/mac80211.c
drivers/net/wireless/iwlwifi/mvm/mvm.h
drivers/net/wireless/iwlwifi/mvm/scan.c