diff options
author | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2022-08-02 09:31:04 -0700 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2022-08-02 09:33:01 -0700 |
commit | 7adb3aa7efc3d70381c411c031f579ff63786994 (patch) | |
tree | 0a6c195abd5ea2283f52311efb9c9295d587ff94 /src/gatt-database.c | |
parent | d06b4a6b74d4da0b997c981e1d506bf051f1a84d (diff) | |
download | bluez-7adb3aa7efc3d70381c411c031f579ff63786994.tar.gz |
device: Add btd_ prefix to device_is_trusted
This adds btd_ prefix to device_is_trusted so it can be used by
plugins.
Diffstat (limited to 'src/gatt-database.c')
-rw-r--r-- | src/gatt-database.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gatt-database.c b/src/gatt-database.c index cf651b5f5..db8432c6b 100644 --- a/src/gatt-database.c +++ b/src/gatt-database.c @@ -2989,7 +2989,7 @@ static void desc_write_cb(struct gatt_db_attribute *attrib, } if (opcode == BT_ATT_OP_PREP_WRITE_REQ) { - if (!device_is_trusted(device) && !desc->prep_authorized && + if (!btd_device_is_trusted(device) && !desc->prep_authorized && desc->req_prep_authorization) send_write(att, attrib, desc->proxy, desc->pending_writes, id, value, len, @@ -3120,7 +3120,7 @@ static void chrc_write_cb(struct gatt_db_attribute *attrib, queue = NULL; if (opcode == BT_ATT_OP_PREP_WRITE_REQ) { - if (!device_is_trusted(device) && !chrc->prep_authorized && + if (!btd_device_is_trusted(device) && !chrc->prep_authorized && chrc->req_prep_authorization) send_write(att, attrib, chrc->proxy, queue, id, value, len, offset, |