wil6210: fix return code of wmi_mgmt_tx and wmi_mgmt_tx_ext
authorLior David <liord@codeaurora.org>
Thu, 28 Feb 2019 09:35:01 +0000 (11:35 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 31 May 2019 13:43:41 +0000 (06:43 -0700)
commit38e068cd4847dc0eaa0d73d8a56857c3d68cda4d
tree63e609bbc53ffff3a378af819ec4f6e2c4a736de
parent68cccec09c25cde0915482370b3b385008573148
wil6210: fix return code of wmi_mgmt_tx and wmi_mgmt_tx_ext

[ Upstream commit 49122ec42634f73babb1dc96f170023e5228d080 ]

The functions that send management TX frame have 3 possible
results: success and other side acknowledged receive (ACK=1),
success and other side did not acknowledge receive(ACK=0) and
failure to send the frame. The current implementation
incorrectly reports the ACK=0 case as failure.

Signed-off-by: Lior David <liord@codeaurora.org>
Signed-off-by: Maya Erez <merez@codeaurora.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/ath/wil6210/cfg80211.c
drivers/net/wireless/ath/wil6210/wmi.c