]> git.itanic.dy.fi Git - linux-stable/commit
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:46:27 +0000 (06:46 -0700)
commitda30c277c4fdbec0fe792b39e51bcc6a04c7f202
treeedf1c6f9c0f78342ff97f85fbb1f1c37176b3beb
parente667aef54f8a3d0a8ceb9111b68d5122b91b6531
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