]> 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)
commit2aaefa86e69969b86d790371ef369920c8587b43
tree047345dc53a1f101da3cadb438c8dbab214418e3
parentba1530184611258ae05ac357e49fd2097b86a22e
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: 78db253e3bc4 ("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