iwlwifi: mvm: fix old scan version sizes
authorLuca Coelho <luciano.coelho@intel.com>
Mon, 23 Apr 2018 13:01:31 +0000 (16:01 +0300)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 24 Apr 2018 10:13:08 +0000 (13:13 +0300)
commita083429e133df63bf2e618f51e4061649fb3c65e
tree047345dc53a1f101da3cadb438c8dbab214418e3
parent77e30e10ee28a53c8af95809866ee8493583e29a
iwlwifi: mvm: fix old scan version sizes

When version 8 of the scan command API was introduced, only the size
of version 7 was updated, causing older versions of the firmware to
throw BAD_COMMAND errors.

Calculating the old version based on the size of the latest version
got too complicated and the size of the older versions will never
change anyway, so it's better to just hardcoded the sizes.

Fixes: 66fa2424df16 ("iwlwifi: fw api: support the new scan request FW API version")
Reported-by: Scott Register <sreg@sreg.io>
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