iwlwifi: mvm: clean up scan capability checks
authorJohannes Berg <johannes.berg@intel.com>
Thu, 8 Jun 2017 07:07:11 +0000 (09:07 +0200)
committerLuca Coelho <luciano.coelho@intel.com>
Fri, 20 Apr 2018 07:57:16 +0000 (10:57 +0300)
commit622111a2d21baca39bb8d5cf56c2d509e50fe278
treee98994d7c4a0bc8c48525b0431d6cbd394885aeb
parentb66b5817a0ce0e5653f4f60ab583c19cb5dab546
iwlwifi: mvm: clean up scan capability checks

Introduce and use iwl_mvm_cdb_scan_api(), which checks the family.
Most of this will go away once the 22000 firmware supports adaptive
dwell, after which the V6 scan API won't be used, but the V3 scan
*config* API will still need to be distinguished.

In any case, this gets rid of the completely bogus has_new_tx_api()
checks.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/mvm.h
drivers/net/wireless/intel/iwlwifi/mvm/scan.c