iwlwifi: mvm: be more forgiving if num of channels is too big
authorShaul Triebitz <shaul.triebitz@intel.com>
Sun, 3 Feb 2019 08:59:08 +0000 (10:59 +0200)
committerLuca Coelho <luciano.coelho@intel.com>
Fri, 22 Mar 2019 10:59:40 +0000 (12:59 +0200)
commit8636ca769cabe8452626fb1fa804e79422a1c254
treee79f121a270000910f6def37a6e497fc1c33750c
parente47df5bd515ca53c910958b04067527a46cfd6f8
iwlwifi: mvm: be more forgiving if num of channels is too big

If number of channels in the driver is greater than
number of scan channels given by firmware TLV, do not
fail scan config, but adjust to firmware's number of channels.
This is helpful for supporting in driver new channels before
it being supported by firmware scan.

Signed-off-by: Shaul Triebitz <shaul.triebitz@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/scan.c