From: Andrey Shevchenko <ashevche...@quantenna.com>

Add support of EBUSY error code for remote procedures over QLINK protocol.

Signed-off-by: Andrey Shevchenko <ashevche...@quantenna.com>
---
 drivers/net/wireless/quantenna/qtnfmac/commands.c | 2 ++
 drivers/net/wireless/quantenna/qtnfmac/qlink.h    | 1 +
 2 files changed, 3 insertions(+)

diff --git a/drivers/net/wireless/quantenna/qtnfmac/commands.c 
b/drivers/net/wireless/quantenna/qtnfmac/commands.c
index 659e7649fe22..c2f085589f54 100644
--- a/drivers/net/wireless/quantenna/qtnfmac/commands.c
+++ b/drivers/net/wireless/quantenna/qtnfmac/commands.c
@@ -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;
        }
diff --git a/drivers/net/wireless/quantenna/qtnfmac/qlink.h 
b/drivers/net/wireless/quantenna/qtnfmac/qlink.h
index 8d62addea895..f9c7f87afaf8 100644
--- a/drivers/net/wireless/quantenna/qtnfmac/qlink.h
+++ b/drivers/net/wireless/quantenna/qtnfmac/qlink.h
@@ -733,6 +733,7 @@ enum qlink_cmd_result {
        QLINK_CMD_RESULT_EALREADY,
        QLINK_CMD_RESULT_EADDRINUSE,
        QLINK_CMD_RESULT_EADDRNOTAVAIL,
+       QLINK_CMD_RESULT_EBUSY,
 };
 
 /**
-- 
2.11.0

Reply via email to