ath10k: change swap mail box check after htc ready
authorWen Gong <wgong@codeaurora.org>
Tue, 29 Jan 2019 12:03:12 +0000 (20:03 +0800)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 7 Feb 2019 14:51:58 +0000 (16:51 +0200)
commit40194e3b36bfd9e3972001f17c0171348d372c3d
treec9e4677727fe602aa25765c94e3e82d039bc8370
parentcdb78e5af49105917ba5694bc616d12b0a4f85f3
ath10k: change swap mail box check after htc ready

The swap box flag of firmware is not set before htc ready, then it
will not set swap box flag in ath10k driver, and it will let swap
box setting not same between firmware and ath10k driver, then it
will trigger firmware assert failure.

Check the flag and set swap box after htc ready will fix the firmware
assert failure.

Tested with QCA6174 SDIO with firmware
WLAN.RMH.4.4.1-00005-QCARMSWP-1.

Signed-off-by: Wen Gong <wgong@codeaurora.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ath/ath10k/core.c
drivers/net/wireless/ath/ath10k/hif.h
drivers/net/wireless/ath/ath10k/sdio.c