Bluetooth: btintel: Fix the legacy bootloader returns tlv based version
authorTedd Ho-Jeong An <tedd.an@intel.com>
Thu, 5 Aug 2021 00:32:18 +0000 (17:32 -0700)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 5 Aug 2021 14:03:30 +0000 (16:03 +0200)
commitc86c7285bb087b709e31f46e1aedeebb7e2a40d7
treef662ba64f1f21186f9201ca2cb905d69f588c2d8
parent0d8603b4ee0ce8b572da6de776172bf235dce1bd
Bluetooth: btintel: Fix the legacy bootloader returns tlv based version

From the ThP, it supports both legacy and TLV based HCI_Intel_Read_Version
command after downloading the operational firmware, and it causes the
driver to choose the wrong setup routines and missing firmware/ddc file.

So, as a workaround, this patch checks the fw variant from the TLV based
version, and if the device is legacy bootloader device, the legacy
HCI_Intel_Read_Version command is used to get the legacy version
information and run the legacy bootloader setup with it.

Signed-off-by: Tedd Ho-Jeong An <tedd.an@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/bluetooth/btintel.c