drivers/nble: Fix GATT error response values

Change-Id: I18cc1788e429876702614ddb2810de53625e8791
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
This commit is contained in:
Johan Hedberg 2016-02-19 12:52:07 +02:00
commit 7078efb1ae

View file

@ -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 {