iwlwifi: fw api: support new API for scan config cmd
authorAyala Beker <ayala.beker@intel.com>
Tue, 29 Oct 2019 15:47:20 +0000 (17:47 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 30 Oct 2019 15:00:26 +0000 (17:00 +0200)
commit3d206e6899a07fe853f703f7e68f84b48b919129
tree8edadd5fa15a4a6f31078e921ad5b5af06882fbd
parent7bd0650be63cbb9e45e394d689c81365fe48e495
iwlwifi: fw api: support new API for scan config cmd

The API was reduced to include only knowledge currently needed by the
FW scan logic, the rest is legacy.  Support the new, reduced version.

Using the old API with newer firmwares (starting from
iwlwifi-*-50.ucode, which implements and requires the new API version)
causes an assertion failure similar to this one:

[    2.854505] iwlwifi 0000:00:14.3: 0x20000038 | BAD_COMMAND

Signed-off-by: Ayala Beker <ayala.beker@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/intel/iwlwifi/fw/api/scan.h
drivers/net/wireless/intel/iwlwifi/fw/file.h
drivers/net/wireless/intel/iwlwifi/mvm/mvm.h
drivers/net/wireless/intel/iwlwifi/mvm/scan.c