]> git.baikalelectronics.ru Git - kernel.git/commit
qtnfmac: cleanup and unify command error handling
authorSergey Matyukevich <sergey.matyukevich.os@quantenna.com>
Fri, 5 Oct 2018 10:11:33 +0000 (10:11 +0000)
committerKalle Valo <kvalo@codeaurora.org>
Fri, 5 Oct 2018 11:01:18 +0000 (14:01 +0300)
commit45a47bde858807a94f8e412aa0065dde1c86f873
tree8762c20156839a4b213eebc9ea61d62254ed14f2
parent6d7a1294f6820fd2ddb5743a0462716d1d0ab359
qtnfmac: cleanup and unify command error handling

Unify command error handling using qtnf_cmd_resp_result_decode
function. Do not duplicate error messages in command handlers
and cfg80211 callbacks: report 'cmd exec fail' only on control
path internal failure. Remove redundant 'unlikely' macros.

Signed-off-by: Sergey Matyukevich <sergey.matyukevich.os@quantenna.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/quantenna/qtnfmac/cfg80211.c
drivers/net/wireless/quantenna/qtnfmac/commands.c