Commit Graph

9184 Commits

Author SHA1 Message Date
Radoslaw Jablonski
df62dbb69b audio: Use headset_shutdown in headset_setconf_cb
If pending connection will stay after state has been changed to
HEADSET_STATE_DISCONNECTED, then crash may happen (e.g. when hs_connect
will be called quickly again after that) To avoid that kind of problems
using headset_shutdown, which does necessary cleanup first (finalizes
pending connections) and after that changes state to
HEADSET_STATE_DISCONNECTED.
2011-12-27 12:06:15 +02:00
Claudio Takahasi
d6f93380ff attrib-client: Fix consecutive set value when disconnected
SetProperty for "Value" property needs to be queued when disconnected.
Registering ATTIO connection callback does not mean that the link is
established, GAttrib instance is assigned in the connection callback.
2011-12-27 12:05:20 +02:00
Claudio Takahasi
f583bef247 attrib-client: Fix GAttrib reference counting
Although ATT connection callbacks control GAttrib reference, each
entity using GAttrib should be increment the GAttrib reference to
keep the code standard.
2011-12-27 12:04:49 +02:00
Claudio Takahasi
6e4a000cab attrib-client: Remove unused SDP header includes 2011-12-27 12:03:19 +02:00
Johan Hedberg
632164a86b Clean up name resolving state handling 2011-12-23 14:20:11 +02:00
Johan Hedberg
b06899eace Fix device address type tracking 2011-12-23 13:00:55 +02:00
Marcel Holtmann
214087d7de Release 4.97 2011-12-22 17:39:07 -08:00
Marcel Holtmann
d223feb814 Update library version 2011-12-22 17:16:25 -08:00
Johan Hedberg
26495f6734 Fix size_t format specifiers 2011-12-19 14:35:03 +02:00
Johan Hedberg
5e837c7943 btmgmt: Add basic confirm_name support 2011-12-19 14:15:53 +02:00
Johan Hedberg
34b08317ae mgmt: Update confirm_name definitions to match API specification 2011-12-19 14:14:57 +02:00
Johan Hedberg
78da89d0c8 mgmt-api: Update Confirm Name return parameters 2011-12-19 14:14:30 +02:00
Johan Hedberg
2bad4b6545 btmgmt: Print confirm_name info for device_found events 2011-12-19 13:54:33 +02:00
Johan Hedberg
4d155a809b mgmtops: Check for exact mgmt_device_found event size 2011-12-19 13:53:07 +02:00
Johan Hedberg
42a03e1c6f mgmtops: Implement mgmt_confirm_name 2011-12-19 13:30:23 +02:00
Johan Hedberg
0c6f4b692c Add initial hooks to pass confirm_name info around 2011-12-19 13:25:54 +02:00
Hemant Gupta
e8c8ec2cac mgmt: Add support for Passkey handling
This patch adds support for handling Passkey Requests and response over
management interface.
2011-12-15 16:20:55 +02:00
Santiago Carot-Nemesio
9942e6a50d hdp: Fix memory leak aborting data channel connections
Use GDestroyNotify function to decrease the reference counter of
the data channel provided in the callback when abort operation is
invoked in MCAP.
2011-12-15 16:13:16 +02:00
Santiago Carot-Nemesio
e1ec45678e hdp: Delay ChannelConnected signal
This signal is sent before channel is connected as soon as MCAP accepts
the data channel creation request. At this moment, applications that
try to get the fd before the connection finishes will fail. This problem
can be solved delaying the ChannelConnection signal until the connection
operation finishes.
2011-12-15 16:12:28 +02:00
Johan Hedberg
7c9d6a2478 health: Fix ordering of includes 2011-12-15 16:07:52 +02:00
Santiago Carot-Nemesio
8ab04c63a6 mcap_sync: fix import statements 2011-12-15 15:57:44 +02:00
Santiago Carot-Nemesio
a7990d8ff6 thermometer: Use system types instead of glib ones 2011-12-15 13:24:26 +02:00
Santiago Carot-Nemesio
3cda922eea thermometer: Fix bad read operation when time stamp is not provided
Time stamp value is an optional field provided in the measure, so next
value in the array will start in a different index depending if the time
stamp was provided or not. This patch check this case and update the
index to a proper value in the byte array before reading the temperature
type value.
2011-12-15 13:24:23 +02:00
Santiago Carot-Nemesio
726dc13a33 thermometer: Fix possible NULL pointer deference
This patch checks the GATT server is connected before doing any GATT
transaction. If it isn't, we abort the operation to avoid the NULL
pointer deference problem.
2011-12-15 13:24:21 +02:00
Santiago Carot-Nemesio
3ff4427f39 thermometer: Process measurement interval indications
This patch emits PropertyChange signal whenever a new value is set in
the measurement interval characteristic.
2011-12-15 13:24:18 +02:00
Santiago Carot-Nemesio
c275bde366 thermometer: Configure C.C.C descriptor during thermometer configuration
This patch enables notification/indication in GATT server if there are
any watcher regitered for measurements when the thermometer is
configured.
2011-12-15 13:23:37 +02:00
Santiago Carot-Nemesio
563ef8324c thermometer: Implement SetProperty D-Bus method 2011-12-15 13:23:29 +02:00
Santiago Carot-Nemesio
110f1830d7 att.h: Add client characteristic configuration bit fields 2011-12-15 13:16:51 +02:00
Johan Hedberg
e7f5c5175b mgmt: Move Set Local Name to it's logical position in the API 2011-12-14 23:03:35 +02:00
Johan Hedberg
f60a1b5fee mgmt: Update implementation to match latest API spec 2011-12-14 14:21:46 +02:00
Johan Hedberg
89ae2d2c0f mgmt: Update read_info & related messages to match the API spec 2011-12-14 14:21:36 +02:00
Johan Hedberg
538346af2d mgmt-api: Update to match latest plans 2011-12-14 14:21:21 +02:00
Johan Hedberg
6910bb809b mgmt-api: Add missing changes to the mgmt messages
Some changes were missing from the previous patch. This moves the fast
connectable command to the right place, adds a Class_Of_Device parameter
to Set UUID Caching (renamed from Set Service Cache) and adds a Class Of
Device Changed event.
2011-12-09 13:11:58 +02:00
Johan Hedberg
0d552f113e mgmt-api: Update to current plans
This patch updates the mgmt API to match the current plans. This is
hopefully the last major change and because of that the command and
event codes are also reshuffled to match some kind of a logical
ordering.
2011-12-08 16:10:10 +02:00
Santiago Carot-Nemesio
0f238b05ba hdp: Fix coding style issues 2011-12-08 14:40:49 +02:00
Santiago Carot-Nemesio
6091d31588 hdp_manager: Fix coding style issues 2011-12-08 14:40:39 +02:00
Santiago Carot-Nemesio
ab55d3467d hdp_util: Fix potential NULL pointer dereference
sdp_data_get can return NULL, we have to check the provided return
value before using it.
2011-12-08 14:40:29 +02:00
Santiago Carot-Nemesio
d7463dfea0 hdp_types: Fix unappropiated field type for dbus watcher id
This value is provided by g_dbus_add_disconnect_watch wich provides
an unsigned type, not an integer one.
2011-12-08 14:40:17 +02:00
Santiago Carot-Nemesio
4ea7427ca3 hdp_util: Fix coding style issues 2011-12-08 14:40:03 +02:00
Sheldon Demario
6169f08ee8 Use alias for LE devices
As in BR/EDR, use alias for LE devices or, if there is no alias, set
it to either the name or to the device address.
2011-12-08 14:38:18 +02:00
Santiago Carot-Nemesio
c569aca90c thermometer: Fix bad epoch time stamp generation
The number of months is in the range 0 to 11, we have to decrease
month number by 1 before getting the epoch.
2011-12-08 14:36:55 +02:00
Santiago Carot-Nemesio
14803c4e4f btio: Fix byte order conversion when getting L2CAP CID
The L2CAP CID is passed and received in little endian byte order
through the socket interface so a conversion is in place before
passing it onwards.
2011-12-08 14:23:04 +02:00
Syam Sidhardhan
b8f8ed5c61 mpris-player: Fix D-Bus reply memory leaks 2011-12-08 12:44:56 +02:00
Syam Sidhardhan
8a06194b08 agent: Fix D-Bus reply memory leaks 2011-12-08 12:44:46 +02:00
Syam Sidhardhan
c2ab28e661 cups: Fix D-Bus reply memory leaks 2011-12-08 12:44:28 +02:00
Syam Sidhardhan
440d8578a7 telephony-maemo5: Fix D-Bus reply memory leaks 2011-12-08 12:39:34 +02:00
Andrei Emeltchenko
efe0957092 hciconfig: Print features for AMP devices
Check for HCI device type, the magic shift is due to dev type is packed
to dev_info type.
2011-12-08 11:39:40 +02:00
Andrei Emeltchenko
f54e13dd83 hciemu: Process Read Local AMP Info
Add processing of Read Local AMP Info in hciemu, the values returned are
used to emulate AMP HCI.
2011-12-08 11:39:29 +02:00
Anderson Lizardo
d69b678a3b hciemu: Fix build error
Error:

test/hciemu.c: In function 'create_snoop':
test/hciemu.c:155: error: 'S_IRUSR' undeclared (first use in this
function)
test/hciemu.c:155: error: (Each undeclared identifier is reported only
once
test/hciemu.c:155: error: for each function it appears in.)
test/hciemu.c:155: error: 'S_IWUSR' undeclared (first use in this
function)
test/hciemu.c:155: error: 'S_IRGRP' undeclared (first use in this
function)
test/hciemu.c:155: error: 'S_IROTH' undeclared (first use in this
function)
2011-12-02 20:42:56 +02:00
Santiago Carot-Nemesio
f2fa8743c8 Update gatt-example to check if attributes were registered 2011-12-02 13:29:11 +02:00