ath10k: fix HTT op backwards compatibility for QCA6174
authorKalle Valo <kvalo@qca.qualcomm.com>
Mon, 30 Mar 2015 11:14:28 +0000 (14:14 +0300)
committerKalle Valo <kvalo@qca.qualcomm.com>
Mon, 30 Mar 2015 11:56:06 +0000 (14:56 +0300)
commitdc3632a1adf51d34dcaf708a4f686d9ce29d53b3
tree55d0a5613f97f547677788ff5b87f4fba87ba8bc
parent23d6660d7f0feacb4c0e24c5cb8f29674aa38567
ath10k: fix HTT op backwards compatibility for QCA6174

Commit 8348db298496 ("ath10k: add ATH10K_FW_IE_HTT_OP_VERSION") broke QCA6174
receive side as the HTT ids from ATH10K_FW_HTT_OP_VERSION_MAIN don't have
HTT_TLV_T2H_MSG_TYPE_RX_IN_ORD_PADDR_IND set. Fix this by adding a backwards
compatibility code which sets HTT op version if it's not set by the firmware
image.

Fixes: 8348db298496 ("ath10k: add ATH10K_FW_IE_HTT_OP_VERSION")
Reported-by: Michal Kazior <michal.kazior@tieto.com>
Tested-by: Michal Kazior <michal.kazior@tieto.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath10k/core.c
drivers/net/wireless/ath/ath10k/htt.c