iwlwifi: mvm: Refactor and fix max probe len computation
authorAndrei Otcheretianski <andrei.otcheretianski@intel.com>
Tue, 9 Sep 2014 07:58:49 +0000 (10:58 +0300)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Sun, 21 Sep 2014 19:20:15 +0000 (22:20 +0300)
commit48849a4150e353656dc5d207f2a56ebd00484ce6
tree440a2f3e717c4e615d39cbf22ff6752a4d6737bf
parent9b60bb6d86496af1adc753795de2c12c4499868a
iwlwifi: mvm: Refactor and fix max probe len computation

Move iwl_mvm_max_scan_ie_len function to scan.c and fix the
implementation to conform with the LMAC scan API.
Since the correct implementation would leave us with unacceptably
tiny probes, add a workaround which returns a larger value.
In current implementation it's possible that unified_scan_lmac and
unified_sched_scan_lmac would return -ENOBUFS.

Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski@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