summaryrefslogtreecommitdiff
path: root/profiles
diff options
context:
space:
mode:
authorVinicius Costa Gomes <vinicius.gomes@openbossa.org>2012-10-08 21:17:38 -0300
committerJohan Hedberg <johan.hedberg@intel.com>2012-10-09 10:56:52 +0200
commit8a39d6ed2d586ababfd31fb34daeb799360f884f (patch)
treecf3016d41dd84e24d7b8001ee2bc0b45fc8ec446 /profiles
parentce18c8661a5419a46904f19cdead3b9dc65c22cc (diff)
attrib: Remove opcode parameter from g_attrib_send()
In all uses of g_attrib_send() the opcode of the command/event is already clear because of the att.h functions used to build the ATT PDU.
Diffstat (limited to 'profiles')
-rw-r--r--profiles/alert/server.c3
-rw-r--r--profiles/gatt/gas.c2
-rw-r--r--profiles/thermometer/thermometer.c3
3 files changed, 3 insertions, 5 deletions
diff --git a/profiles/alert/server.c b/profiles/alert/server.c
index b8ea1413..77de704b 100644
--- a/profiles/alert/server.c
+++ b/profiles/alert/server.c
@@ -381,8 +381,7 @@ static void attio_connected_cb(GAttrib *attrib, gpointer user_data)
al_adapter->hnd_value[type],
al_adapter->hnd_ccc[type]);
- g_attrib_send(attrib, 0, ATT_OP_HANDLE_NOTIFY, pdu, len,
- NULL, NULL, NULL);
+ g_attrib_send(attrib, 0, pdu, len, NULL, NULL, NULL);
end:
btd_device_remove_attio_callback(cb->device, cb->id);
diff --git a/profiles/gatt/gas.c b/profiles/gatt/gas.c
index 82c2ef0f..74ca9ce4 100644
--- a/profiles/gatt/gas.c
+++ b/profiles/gatt/gas.c
@@ -224,7 +224,7 @@ static void indication_cb(const uint8_t *pdu, uint16_t len, gpointer user_data)
/* Confirming indication received */
opdu = g_attrib_get_buffer(gas->attrib, &plen);
olen = enc_confirmation(opdu, plen);
- g_attrib_send(gas->attrib, 0, opdu[0], opdu, olen, NULL, NULL, NULL);
+ g_attrib_send(gas->attrib, 0, opdu, olen, NULL, NULL, NULL);
btd_device_gatt_set_service_changed(gas->device, start, end);
}
diff --git a/profiles/thermometer/thermometer.c b/profiles/thermometer/thermometer.c
index 3506ba79..98cfb345 100644
--- a/profiles/thermometer/thermometer.c
+++ b/profiles/thermometer/thermometer.c
@@ -1167,8 +1167,7 @@ static void ind_handler(const uint8_t *pdu, uint16_t len, gpointer user_data)
olen = enc_confirmation(opdu, plen);
if (olen > 0)
- g_attrib_send(t->attrib, 0, opdu[0], opdu, olen, NULL, NULL,
- NULL);
+ g_attrib_send(t->attrib, 0, opdu, olen, NULL, NULL, NULL);
}
static void notif_handler(const uint8_t *pdu, uint16_t len, gpointer user_data)