summaryrefslogtreecommitdiff
path: root/attrib/att.c
diff options
context:
space:
mode:
authorClaudio Takahasi <claudio.takahasi@openbossa.org>2014-03-24 16:25:36 -0300
committerJohan Hedberg <johan.hedberg@intel.com>2014-03-24 22:08:02 +0200
commit3f03ab5766de008f008fdd7cfb8679849accc51f (patch)
tree96059836c66a64c40bf15b0eabc2cb53391a0069 /attrib/att.c
parent0461b9d99c896657bb0265ae2b97af5221e48259 (diff)
downloadbluez-3f03ab5766de008f008fdd7cfb8679849accc51f.tar.gz
Replace att_get_uuid16() by get_le16()
Diffstat (limited to 'attrib/att.c')
-rw-r--r--attrib/att.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/attrib/att.c b/attrib/att.c
index c408568b6..b35349991 100644
--- a/attrib/att.c
+++ b/attrib/att.c
@@ -168,7 +168,7 @@ uint16_t dec_read_by_grp_req(const uint8_t *pdu, size_t len, uint16_t *start,
*start = att_get_u16(&pdu[1]);
*end = att_get_u16(&pdu[3]);
if (len == min_len + 2)
- *uuid = att_get_uuid16(&pdu[5]);
+ bt_uuid16_create(uuid, get_le16(&pdu[5]));
else
*uuid = att_get_uuid128(&pdu[5]);
@@ -297,7 +297,7 @@ uint16_t dec_find_by_type_req(const uint8_t *pdu, size_t len, uint16_t *start,
/* Last requested handle number (2 octets) */
*end = att_get_u16(&pdu[3]);
/* 16-bit UUID to find (2 octets) */
- *uuid = att_get_uuid16(&pdu[5]);
+ bt_uuid16_create(uuid, get_le16(&pdu[5]));
/* Attribute value to find */
*vlen = len - 7;
@@ -411,7 +411,7 @@ uint16_t dec_read_by_type_req(const uint8_t *pdu, size_t len, uint16_t *start,
*end = att_get_u16(&pdu[3]);
if (len == min_len + 2)
- *uuid = att_get_uuid16(&pdu[5]);
+ bt_uuid16_create(uuid, get_le16(&pdu[5]));
else
*uuid = att_get_uuid128(&pdu[5]);