From e7ec241fe7f562befc03a0f459719ce96ca500d4 Mon Sep 17 00:00:00 2001 From: Emil Gydesen Date: Tue, 23 Nov 2021 17:03:07 +0100 Subject: [PATCH] Bluetooth: CSIS: Remove BT_CSIS_ERROR_SIRK_ACCESS_REJECTED Remove the error code BT_CSIS_ERROR_SIRK_ACCESS_REJECTED as it no longer exists in the specification. Signed-off-by: Emil Gydesen --- include/bluetooth/audio/csis.h | 5 ++--- subsys/bluetooth/audio/csis.c | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/include/bluetooth/audio/csis.h b/include/bluetooth/audio/csis.h index d609ef74089..54f60a0a186 100644 --- a/include/bluetooth/audio/csis.h +++ b/include/bluetooth/audio/csis.h @@ -53,9 +53,8 @@ extern "C" { #define BT_CSIS_ERROR_LOCK_DENIED 0x80 #define BT_CSIS_ERROR_LOCK_RELEASE_DENIED 0x81 #define BT_CSIS_ERROR_LOCK_INVAL_VALUE 0x82 -#define BT_CSIS_ERROR_SIRK_ACCESS_REJECTED 0x83 -#define BT_CSIS_ERROR_SIRK_OOB_ONLY 0x84 -#define BT_CSIS_ERROR_LOCK_ALREADY_GRANTED 0x85 +#define BT_CSIS_ERROR_SIRK_OOB_ONLY 0x83 +#define BT_CSIS_ERROR_LOCK_ALREADY_GRANTED 0x84 #define BT_CSIS_RELEASE_VALUE 0x01 #define BT_CSIS_LOCK_VALUE 0x02 diff --git a/subsys/bluetooth/audio/csis.c b/subsys/bluetooth/audio/csis.c index 97882633fc6..9b1ed98942c 100644 --- a/subsys/bluetooth/audio/csis.c +++ b/subsys/bluetooth/audio/csis.c @@ -327,7 +327,7 @@ static ssize_t read_set_sirk(struct bt_conn *conn, BT_HEXDUMP_DBG(enc_sirk.value, sizeof(enc_sirk.value), "Encrypted Set SIRK"); } else if (cb_rsp == BT_CSIS_READ_SIRK_REQ_RSP_REJECT) { - return BT_GATT_ERR(BT_CSIS_ERROR_SIRK_ACCESS_REJECTED); + return BT_GATT_ERR(BT_ATT_ERR_AUTHORIZATION); } else if (cb_rsp == BT_CSIS_READ_SIRK_REQ_RSP_OOB_ONLY) { return BT_GATT_ERR(BT_CSIS_ERROR_SIRK_OOB_ONLY); }