qtnfmac: support EBUSY errcode for QLINK protocol

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>
This commit is contained in:
Andrey Shevchenko 2019-01-14 09:39:35 +00:00 committed by Kalle Valo
parent 1a0f547831
commit 126824f5ce
2 changed files with 3 additions and 0 deletions

View 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;
}

View 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,
};
/**