OSDN Git Service

iwlwifi: mvm: support version 7 of the SCAN_REQ_UMAC FW command
authorLuca Coelho <luciano.coelho@intel.com>
Fri, 10 Nov 2017 12:03:36 +0000 (14:03 +0200)
committerLuca Coelho <luciano.coelho@intel.com>
Wed, 15 Nov 2017 16:38:42 +0000 (18:38 +0200)
commitdac4df1c5f2c34903f61b1bc4fc722e31b4199e7
tree27a2a7c8ca5eb4f3839c2c0691884ed3b329d775
parentfdd0bd88ceaecf729db103ac8836af5805dd2dc1
iwlwifi: mvm: support version 7 of the SCAN_REQ_UMAC FW command

Newer firmware versions (such as iwlwifi-8000C-34.ucode) have
introduced an API change in the SCAN_REQ_UMAC command that is not
backwards compatible.  The driver needs to detect and use the new API
format when the firmware reports it, otherwise the scan command will
not work properly, causing a command timeout.

Fix this by adding a TLV that tells the driver that the new API is in
use and use the correct structures for it.

This fixes https://bugzilla.kernel.org/show_bug.cgi?id=197591

Fixes: d7a5b3e9e42e ("iwlwifi: mvm: bump API to 34 for 8000 and up")
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
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