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 <emil.gydesen@nordicsemi.no>
This commit is contained in:
Emil Gydesen 2021-11-23 17:03:07 +01:00 committed by Anas Nashif
commit e7ec241fe7
2 changed files with 3 additions and 4 deletions

View file

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