ath10k: fix dma unmap direction for management frames
authorRakesh Pillai <pillair@codeaurora.org>
Fri, 25 Jan 2019 04:21:06 +0000 (09:51 +0530)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 7 Feb 2019 14:44:03 +0000 (16:44 +0200)
commit6e8a8991e2103dcb6a9cff28f460390e8e360848
treed9ebc43b48c205b89b663176e3bbf829b4ac604d
parent543271334483f23f8118f5b1bae919134010714f
ath10k: fix dma unmap direction for management frames

The management frames transmitted are dma mapped with
direction TO_DEVICE, but incorrectly mapped with
direction FROM_DEVICE during tx complete and error cases.

Fix the direction of dma during dma unmap of the
transmitted management frames.

Tested HW: WCN3990
Tested FW: WLAN.HL.2.0-01188-QCAHLSWMTPLZ-1

Fixes: 38a1390e02b7 ("ath10k: dma unmap mgmt tx buffer if wmi cmd send fails")
Signed-off-by: Rakesh Pillai <pillair@codeaurora.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ath/ath10k/mac.c
drivers/net/wireless/ath/ath10k/wmi.c