qtnfmac: support EBUSY errcode for QLINK protocol
authorAndrey Shevchenko <ashevchenko@quantenna.com>
Mon, 14 Jan 2019 09:39:35 +0000 (09:39 +0000)
committerKalle Valo <kvalo@codeaurora.org>
Fri, 1 Feb 2019 12:11:52 +0000 (14:11 +0200)
Add support of EBUSY error code for remote procedures over QLINK protocol.

Signed-off-by: Andrey Shevchenko <ashevchenko@quantenna.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/quantenna/qtnfmac/commands.c
drivers/net/wireless/quantenna/qtnfmac/qlink.h

index cf386f579060d7673feedc68737c55b90d29ba00..6575247c8b6ba9e9d83741c21998d2b46e666ce8 100644 (file)
@@ -72,6 +72,8 @@ static int qtnf_cmd_resp_result_decode(enum qlink_cmd_result qcode)
                return -EADDRINUSE;
        case QLINK_CMD_RESULT_EADDRNOTAVAIL:
                return -EADDRNOTAVAIL;
+       case QLINK_CMD_RESULT_EBUSY:
+               return -EBUSY;
        default:
                return -EFAULT;
        }
index 8d62addea895fbf35871f89ec6c0c33917ff8b21..f9c7f87afaf87e242641bf5c32d506de283e1642 100644 (file)
@@ -733,6 +733,7 @@ enum qlink_cmd_result {
        QLINK_CMD_RESULT_EALREADY,
        QLINK_CMD_RESULT_EADDRINUSE,
        QLINK_CMD_RESULT_EADDRNOTAVAIL,
+       QLINK_CMD_RESULT_EBUSY,
 };
 
 /**