drivers/nble: Fix GATT error response values
Change-Id: I18cc1788e429876702614ddb2810de53625e8791 Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
This commit is contained in:
parent
6b7ecc47c4
commit
7078efb1ae
1 changed files with 2 additions and 2 deletions
|
@ -228,7 +228,7 @@ int bt_gatt_attr_read(struct bt_conn *conn, const struct bt_gatt_attr *attr,
|
|||
}
|
||||
|
||||
if (offset > value_len) {
|
||||
return -EINVAL;
|
||||
return BT_GATT_ERR(BT_ATT_ERR_INVALID_OFFSET);
|
||||
}
|
||||
|
||||
len = min(buf_len, value_len - offset);
|
||||
|
@ -259,7 +259,7 @@ int bt_gatt_attr_read_included(struct bt_conn *conn,
|
|||
const struct bt_gatt_attr *attr,
|
||||
void *buf, uint16_t len, uint16_t offset)
|
||||
{
|
||||
return -ENOSYS;
|
||||
return BT_GATT_ERR(BT_ATT_ERR_NOT_SUPPORTED);
|
||||
}
|
||||
|
||||
struct gatt_chrc {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue