aboutsummaryrefslogtreecommitdiffstats
path: root/src/adapter.c
diff options
context:
space:
mode:
authorSantiago Carot-Nemesio <sancane@gmail.com>2011-12-28 11:24:47 +0100
committerJohan Hedberg <johan.hedberg@intel.com>2011-12-30 13:01:28 +0200
commit86980984dd9ddeffe8124d3b0193f5a2d4ad3605 (patch)
treee7c39a5b32aaac2d3ac5212df5dcd44585077ae0 /src/adapter.c
parent99156a2444129c25892b9cf026d7beaebeea9b52 (diff)
downloadbluez-86980984dd9ddeffe8124d3b0193f5a2d4ad3605.tar.gz
bluez-86980984dd9ddeffe8124d3b0193f5a2d4ad3605.tar.xz
bluez-86980984dd9ddeffe8124d3b0193f5a2d4ad3605.zip
attrib-server: Add adapter in attrib_gap_set function
Diffstat (limited to 'src/adapter.c')
-rw-r--r--src/adapter.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/adapter.c b/src/adapter.c
index 6a7d7d75..e65780e5 100644
--- a/src/adapter.c
+++ b/src/adapter.c
@@ -766,7 +766,7 @@ void btd_adapter_class_changed(struct btd_adapter *adapter, uint32_t new_class)
if (main_opts.attrib_server) {
/* Removes service class */
class[1] = class[1] & 0x1f;
- attrib_gap_set(GATT_CHARAC_APPEARANCE, class, 2);
+ attrib_gap_set(adapter, GATT_CHARAC_APPEARANCE, class, 2);
}
emit_property_changed(connection, adapter->path,
@@ -788,7 +788,7 @@ void adapter_name_changed(struct btd_adapter *adapter, const char *name)
DBUS_TYPE_STRING, &name);
if (main_opts.attrib_server)
- attrib_gap_set(GATT_CHARAC_DEVICE_NAME,
+ attrib_gap_set(adapter, GATT_CHARAC_DEVICE_NAME,
(const uint8_t *) name, strlen(name));
}