ath11k: support loading ELF board files
authorBen Greear <greearb@candelatech.com>
Tue, 29 Sep 2020 17:15:29 +0000 (20:15 +0300)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 1 Oct 2020 19:30:53 +0000 (22:30 +0300)
commit616c16a4b26a9f136cf8a1ad0b8c4d03a72d4328
treed1020bf68b94ade3d24d0bdc54222992ec13e373
parent476c1d3c2e61648ff675f175875740d84e4fa691
ath11k: support loading ELF board files

The QCA6390 board I have, model 8291M-PR comes with an ELF board file.  To get
this to at least somewhat work, I renamed bdwlan.e04 to 'board.bin' and then
added this patch to check for ELF magic string in the beginning of the file.
If that is found, use type ELF.  After this the driver loads.

Tested-on: QCA6390 hw2.0 PCI WLAN.HST.1.0.1-01740-QCAHSTSWPLZ_V2_TO_X86-1

Signed-off-by: Ben Greear <greearb@candelatech.com>
[kvalo@codeaurora.org: use elf.h, minor cleanup]
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/1601399736-3210-2-git-send-email-kvalo@codeaurora.org
drivers/net/wireless/ath/ath11k/qmi.c