]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc75d9651fc4faf38214aa54528b9aeca67f5096c
tree047345dc53a1f101da3cadb438c8dbab214418e3
parent1a358ae6a97e6d7d31b47b9f031ba7d69998847b
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: 524cca4cb37b ("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