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