OSDN Git Service
Luiz Augusto von Dentz [Mon, 26 Nov 2012 13:09:19 +0000 (15:09 +0200)]
network: Fix not responding to Device.ConnectProfile
The callback passed to connection_connect has to be used to respond when
the connection completes.
Luiz Augusto von Dentz [Mon, 26 Nov 2012 13:09:18 +0000 (15:09 +0200)]
network: Remove Network.Connect and Network.Disconnect
These method are no longer necessary as Device interface has similar
functionality.
Luiz Augusto von Dentz [Mon, 26 Nov 2012 13:09:17 +0000 (15:09 +0200)]
network: Make use of D-Bus Properties interface
Luiz Augusto von Dentz [Mon, 26 Nov 2012 13:09:16 +0000 (15:09 +0200)]
input: Remove Input interface
This interface is no longer needed as Device interface can now connect
the profiles.
Luiz Augusto von Dentz [Mon, 26 Nov 2012 13:09:15 +0000 (15:09 +0200)]
audio: Remove Control.Connect and Control.Disconnect
These method are no longer necessary as Device interface has similar
functionality.
Luiz Augusto von Dentz [Mon, 26 Nov 2012 13:09:14 +0000 (15:09 +0200)]
audio: Remove Audio interface
This interface is no longer needed as Device interface can now connect
the profiles and the state can be tracked using MediaTransport interface.
Luiz Augusto von Dentz [Mon, 26 Nov 2012 13:09:13 +0000 (15:09 +0200)]
audio: Remove AudioSource interface
This interface is no longer needed as Device interface can now connect
the profiles and the state can be tracked using MediaTransport interface.
Luiz Augusto von Dentz [Mon, 26 Nov 2012 13:09:12 +0000 (15:09 +0200)]
audio: Remove AudioSink interface
This interface is no longer needed as Device interface can now connect
the profiles and the state can be tracked using MediaTransport interface.
Johan Hedberg [Mon, 26 Nov 2012 14:16:27 +0000 (16:16 +0200)]
device: Pass correct DBusMessage parameter to btd_error_failed
Johan Hedberg [Mon, 26 Nov 2012 14:03:55 +0000 (16:03 +0200)]
core: Fix reading D-Bus boolean parameters too local bool type
The D-Bus boolean type may be larger than the local bool type which can
lead to writing past the memory space of the local variable. To fix
this, use a temporary dbus_bool_t variable before assigning to the local
type.
Johan Hedberg [Mon, 26 Nov 2012 13:07:23 +0000 (15:07 +0200)]
test: Remove AutoConnect from test-hfp since it's now the default
Szymon Janc [Mon, 26 Nov 2012 11:48:44 +0000 (12:48 +0100)]
formfactor: Remove not needed empty remove callback
Remove callback is called only if it is not NULL so there is no need to
register empty callback function.
Szymon Janc [Mon, 26 Nov 2012 11:48:43 +0000 (12:48 +0100)]
adaptername: Remove not needed empty remove callback
Remove callback is called only if it is not NULL so there is no need to
register empty callback function.
Johan Hedberg [Mon, 26 Nov 2012 12:15:05 +0000 (14:15 +0200)]
core: Send a "cancelled" response to Device.Connect when disconnecting
Johan Hedberg [Mon, 26 Nov 2012 12:14:56 +0000 (14:14 +0200)]
core: Fix cleaning up pending connect list if a profile fails
Szymon Janc [Mon, 26 Nov 2012 09:07:38 +0000 (10:07 +0100)]
adapter: Call driver remove callback when unregistering driver
This seems to be what plugins expect as only dbusoob explicite called
its remove function before unregistering adapter drivers.
This results in cleaner shutdown path:
Without patch:
bluetoothd[13563]: src/mgmt.c:mgmt_remove_uuid() index 0
bluetoothd[13563]: src/adapter.c:btd_adapter_unref() 0x606b2a0: ref=4
bluetoothd[13563]: src/adapter.c:btd_adapter_unref() 0x606b2a0: ref=3
bluetoothd[13563]: Stopping SDP server
bluetoothd[13563]: Exit
==13563==
==13563== HEAP SUMMARY:
==13563== in use at exit: 64,908 bytes in 395 blocks
==13563== total heap usage: 7,035 allocs, 6,640 frees, 4,432,371 bytes allocated
==13563==
==13563== LEAK SUMMARY:
==13563== definitely lost: 0 bytes in 0 blocks
==13563== indirectly lost: 0 bytes in 0 blocks
==13563== possibly lost: 17,429 bytes in 169 blocks
==13563== still reachable: 47,479 bytes in 226 blocks
==13563== suppressed: 0 bytes in 0 blocks
With patch:
bluetoothd[13301]: src/mgmt.c:mgmt_remove_uuid() index 0
bluetoothd[13301]: src/adapter.c:btd_adapter_unref() 0x606b2a0: ref=1
bluetoothd[13301]: src/adapter.c:btd_adapter_unref() 0x606b2a0: ref=0
bluetoothd[13301]: src/adapter.c:adapter_free() 0x606b2a0
bluetoothd[13301]: Stopping SDP server
bluetoothd[13301]: Exit
==13301==
==13301== HEAP SUMMARY:
==13301== in use at exit: 64,954 bytes in 348 blocks
==13301== total heap usage: 7,247 allocs, 6,899 frees, 4,625,672 bytes allocated
==13301==
==13301== LEAK SUMMARY:
==13301== definitely lost: 0 bytes in 0 blocks
==13301== indirectly lost: 0 bytes in 0 blocks
==13301== possibly lost: 17,334 bytes in 150 blocks
==13301== still reachable: 47,620 bytes in 198 blocks
==13301== suppressed: 0 bytes in 0 blocks
Johan Hedberg [Mon, 26 Nov 2012 11:22:35 +0000 (13:22 +0200)]
core: Don't do reverse SDP when services are already resolved
Johan Hedberg [Mon, 26 Nov 2012 11:12:27 +0000 (13:12 +0200)]
core: Add auto_connect entries to profile defaults
Johan Hedberg [Mon, 26 Nov 2012 10:54:51 +0000 (12:54 +0200)]
audio: Fix missing AVCTP security level
Johan Hedberg [Mon, 26 Nov 2012 10:43:11 +0000 (12:43 +0200)]
device: Fix leaking browse request DBusMessage
Vinicius Costa Gomes [Fri, 23 Nov 2012 20:30:30 +0000 (17:30 -0300)]
device: Add btd_ prefix to device_set_pnpid()
As device_set_pnpid() is used inside a plugin it should have the btd_
prefix.
Johan Hedberg [Sat, 24 Nov 2012 10:39:53 +0000 (12:39 +0200)]
audio: Remove deprecated Connected/Disconnected signals
Johan Hedberg [Sat, 24 Nov 2012 10:36:57 +0000 (12:36 +0200)]
audio: Remove deprecated Control.IsConnected method
Vinicius Costa Gomes [Fri, 23 Nov 2012 19:08:29 +0000 (16:08 -0300)]
hog: Fix output report
Even if we receive the output report with the report id included, we
must send the output report without the report id, as the remote side
is able to infer it using the handle.
Vinicius Costa Gomes [Fri, 23 Nov 2012 19:08:28 +0000 (16:08 -0300)]
hog: Fix potencial segfault when sending a output report
As UHID is not notified when the device is disconnected, it may be
possible that an output report is forwarded when the device is not
connected, one example, would be when the caps lock key is pressed on
another keyboard.
Johan Hedberg [Fri, 23 Nov 2012 12:34:18 +0000 (14:34 +0200)]
sdptool: Add missing UUID entries for MAP and HSP
Johan Hedberg [Fri, 23 Nov 2012 12:33:49 +0000 (14:33 +0200)]
lib: Add missing svclass entries for MAP
Johan Hedberg [Fri, 23 Nov 2012 11:51:47 +0000 (13:51 +0200)]
test: Add auto-trust and auto-connect to simple-agent
Johan Hedberg [Fri, 23 Nov 2012 11:52:43 +0000 (13:52 +0200)]
device: Update reverse discovery timer from 2 to 1 second
There's no reason to wait so long for reverse discovery. We still don't
want this to be immediate since it's likely that the pairing initiator
is starting to do discovery right after pairing, but 1 second should be
good.
Marcel Holtmann [Thu, 22 Nov 2012 09:43:42 +0000 (10:43 +0100)]
monitor: Decode LMP features pages
Jefferson Delfes [Wed, 21 Nov 2012 20:16:11 +0000 (16:16 -0400)]
hciconfig: Add an option to set which advertise type will be on
There are some advertise types that can be used, so we need a way to
tell which one we want. The default one is ADV_IND.
Marcel Holtmann [Thu, 22 Nov 2012 06:54:54 +0000 (07:54 +0100)]
monitor: Add missing HCI testing commands
Marcel Holtmann [Wed, 21 Nov 2012 19:24:23 +0000 (20:24 +0100)]
monitor: Add HCI commands from CSA2 and CSA3
Luiz Augusto von Dentz [Wed, 21 Nov 2012 15:12:42 +0000 (17:12 +0200)]
TODO: Add entry about built-in profiles connection management by core
Frédéric Danis [Wed, 21 Nov 2012 13:49:51 +0000 (14:49 +0100)]
device: Retrieve device pnp ids from storage
When device pnp ids are updated, save them and emit property
changed signals.
Frédéric Danis [Wed, 21 Nov 2012 13:49:50 +0000 (14:49 +0100)]
adapter: Convert storage did file
Frédéric Danis [Wed, 21 Nov 2012 13:49:49 +0000 (14:49 +0100)]
device: Retrieve device blocked from storage
Frédéric Danis [Wed, 21 Nov 2012 13:49:48 +0000 (14:49 +0100)]
adapter: Convert storage device blocked
An entry exists in blocked file only when a device is blocked.
So, we do not need to check entry value and set device (entry key) as
blocked.
Frédéric Danis [Wed, 21 Nov 2012 13:49:47 +0000 (14:49 +0100)]
doc: Update settings-storage.txt
Remote features are not available from user space,
so replace Features entry by SupportedTechnologies.
Device blocked should be saved in device info file.
Johan Hedberg [Wed, 21 Nov 2012 13:40:00 +0000 (15:40 +0200)]
core: Use UUID-16 or UUID-32 when possible when resolving profiles
Luiz Augusto von Dentz [Wed, 21 Nov 2012 12:10:18 +0000 (14:10 +0200)]
control: Add profile .connect and .disconnect
Add the connection and disconnection hooks to the avrcp btd_profile.
Luiz Augusto von Dentz [Wed, 21 Nov 2012 12:10:17 +0000 (14:10 +0200)]
control: Expose internal connection API
Separate the D-Bus code from the internal connection handling code,
exposing an internal API in case some internal codepath/plugin is
interested in using it.
Mikel Astiz [Wed, 21 Nov 2012 12:10:16 +0000 (14:10 +0200)]
sink: Add profile .connect and .disconnect
Add the connection and disconnection hooks to the a2dp_sink btd_profile.
Mikel Astiz [Wed, 21 Nov 2012 12:10:15 +0000 (14:10 +0200)]
source: Add profile .connect and .disconnect
Add the connection and disconnection hooks to the a2dp_source
btd_profile.
Mikel Astiz [Wed, 21 Nov 2012 12:10:14 +0000 (14:10 +0200)]
audio: Split A2DP into two btd_profile
Merging the three audio profiles (AVDTP, A2DP sink and A2DP source)
into one was convenient in the past was doesn't fit very well the new
btd_profile approach. The split is also more consistent with other
existing profiles.
Luiz Augusto von Dentz [Wed, 21 Nov 2012 12:10:13 +0000 (14:10 +0200)]
core: Fix connection order of Device.Connect
We should with higher priority first.
Johan Hedberg [Wed, 21 Nov 2012 12:33:33 +0000 (14:33 +0200)]
neard: Be more consistent in error handling and variable naming
Frédéric Danis [Wed, 21 Nov 2012 11:59:23 +0000 (12:59 +0100)]
neard: Set device class in device object
As soon as we have info related to a new device,
device object will be created if it does not exist yet.
Change check_device() to use this device object and
remove call to adapter_remove_device() in it.
Luiz Augusto von Dentz [Tue, 20 Nov 2012 14:50:57 +0000 (16:50 +0200)]
audio: Remove another leftover of HFP code
Frédéric Danis [Thu, 15 Nov 2012 17:35:39 +0000 (18:35 +0100)]
doc: Add HFP design document
Szymon Janc [Wed, 21 Nov 2012 10:21:03 +0000 (11:21 +0100)]
gdbus: Remove not needed NULL pointer checks
g_strdup returns NULL if argument passed is NULL and there is no need
to double check that.
Marcel Holtmann [Wed, 21 Nov 2012 05:26:45 +0000 (06:26 +0100)]
monitor: Handle attribute lists for SDP records
Marcel Holtmann [Wed, 21 Nov 2012 04:35:27 +0000 (05:35 +0100)]
monitor: Track SDP continuation for attribute lists
Marcel Holtmann [Tue, 20 Nov 2012 17:01:01 +0000 (18:01 +0100)]
monitor: Handle UUID-32 and UUID-128 values
Marcel Holtmann [Tue, 20 Nov 2012 15:10:44 +0000 (16:10 +0100)]
monitor: Decode SDP element data structures
Marcel Holtmann [Tue, 20 Nov 2012 10:56:05 +0000 (11:56 +0100)]
monitor: Add basic attribute UUID decoding
Marcel Holtmann [Tue, 20 Nov 2012 10:50:48 +0000 (11:50 +0100)]
build: Remove stupid -I directives
Bart Westgeest [Mon, 19 Nov 2012 19:04:32 +0000 (14:04 -0500)]
sdp: Upgrade datatype SEQ8 to SEQ16 when data size is greater than 256
Fixes a bug where the complete sequence data is written, but the size
is truncated to one byte.
Bart Westgeest [Mon, 19 Nov 2012 19:04:31 +0000 (14:04 -0500)]
sdp: Limit side effects of sdp_get_data_type and sdp_get_data_size
Remove modification of buf->buf_size in 'get' functions. Data is
still indirectly modified due to recursive nature of code.
Renamed sdp_get_data_type to sdp_get_data_type_size.
Bart Westgeest [Mon, 19 Nov 2012 19:04:30 +0000 (14:04 -0500)]
sdp: Inlined single use of function sdp_set_data_type
Inlining single use of sdp_set_data_type to improve code readability,
since the function was doing more than just setting the data type.
Alexander Holler [Tue, 20 Nov 2012 11:47:08 +0000 (12:47 +0100)]
hid2hci: change subsystem in udev rule from usb to usb*
With kernel 3.6 (commit
7e97243c2080ecae7129e83635227fdebd4feef6) the
class for some devices (e.g. dongles from Logitech) were changed from
usb to usbmisc. As consequence the udev rule for hid2hci didn't work
anymore with kernels >= 3.6.
Changing the subsystem from "usb" to "usb*" matches both "usb" and
"usbmisc" and works with all kernels.
Johan Hedberg [Tue, 20 Nov 2012 12:15:26 +0000 (14:15 +0200)]
core: Fix freeing pending profile messages in device_free
Johan Hedberg [Tue, 20 Nov 2012 12:15:05 +0000 (14:15 +0200)]
core: Implement Device.DisconnectProfile method
Johan Hedberg [Tue, 20 Nov 2012 12:14:41 +0000 (14:14 +0200)]
core: Add external profile disconnection support
Johan Hedberg [Tue, 20 Nov 2012 12:14:08 +0000 (14:14 +0200)]
test: Add RequestDisconnection support to test-profile
Luiz Augusto von Dentz [Tue, 20 Nov 2012 11:58:13 +0000 (13:58 +0200)]
audio: Remove leftover of HFP profile
Mikel Astiz [Thu, 15 Nov 2012 07:27:37 +0000 (08:27 +0100)]
sink: Expose internal connection API
Separate the D-Bus code from the internal connection handling code,
exposing an internal API in case some internal codepath/plugin is
interested in using it.
Mikel Astiz [Thu, 15 Nov 2012 07:27:36 +0000 (08:27 +0100)]
source: Expose internal connection API
Separate the D-Bus code from the internal connection handling code,
exposing an internal API in case some internal codepath/plugin is
interested in using it.
Mikel Astiz [Thu, 15 Nov 2012 07:27:35 +0000 (08:27 +0100)]
source: Add missing code in source_disconnect()
Use the implementation in sink_disconnect() as a template to implement
the missing code in source_disconnect(). Both functions should be
equivalent.
Mikel Astiz [Thu, 15 Nov 2012 07:27:34 +0000 (08:27 +0100)]
sink: Generalize disconnection function
Extend the function for a more general usage other than full device
disconnection. Besides, return error code instead of a boolean.
Mikel Astiz [Thu, 15 Nov 2012 07:27:33 +0000 (08:27 +0100)]
audio: Trivial function renames
Rename functions to be consistent with the rest of the code.
Johan Hedberg [Tue, 20 Nov 2012 11:10:52 +0000 (13:10 +0200)]
gaptest: Update to use D-Bus properties
Johan Hedberg [Tue, 20 Nov 2012 11:04:52 +0000 (13:04 +0200)]
network: Add missing local_uuid values
Johan Hedberg [Tue, 20 Nov 2012 11:02:05 +0000 (13:02 +0200)]
input: Add missing local_uuid entry
Szymon Janc [Mon, 19 Nov 2012 15:03:58 +0000 (16:03 +0100)]
neard: Append hash/randomizer in EIR only if remote provided it
Read local OOB data for RequestOOB reply only if remote also provided
hash and randomizer in EIR. This will allow for faster reply when only
discovery is done OOB. It is also required to pass NFC handover test
related to Bluetooth just-works pairing.
Szymon Janc [Mon, 19 Nov 2012 15:03:57 +0000 (16:03 +0100)]
neard: Add support for nokia.com:bt type
This adds support for parsing nokia.com:bt type supported by some Nokia
NFC enabled devices. This is not fully documented Nokia extension so
to keep implementation sane and simple only PushOOB method suports
this type so only static handover is possible.
Szymon Janc [Mon, 19 Nov 2012 15:03:56 +0000 (16:03 +0100)]
neard: Move device object checking into separate helper
This will also be used by 'nokia.com:bt' handler.
Szymon Janc [Mon, 19 Nov 2012 15:03:55 +0000 (16:03 +0100)]
neard: Use ENONET error when adapter is not enabled
This results in returning error 'Disabled' instead of 'No such Device'.
Will allow neard to properly set power state of Bluetooth carrier.
Frédéric Dalleau [Mon, 19 Nov 2012 15:50:44 +0000 (16:50 +0100)]
btiotest: Enable deferred setup for sco sockets
Frédéric Dalleau [Mon, 19 Nov 2012 15:50:43 +0000 (16:50 +0100)]
scotest: Add deferred setup option
Luiz Augusto von Dentz [Tue, 20 Nov 2012 09:13:01 +0000 (11:13 +0200)]
audio: Auto connect AVRCP in case of A2DP source is connected
This enables the same logic used for A2DP sink, so it attempt to
connect AVRCP if remote device support it.
Note this is necessary for some devices e.g. WP7 that don't connect
even when being the initiator because it is not mandatory for target
to do so even though it is recommended to avoid collisions while trying
to estabilish the connection.
Johan Hedberg [Mon, 19 Nov 2012 18:46:31 +0000 (20:46 +0200)]
test: Add simple HFP test script
Szymon Janc [Mon, 19 Nov 2012 15:02:46 +0000 (16:02 +0100)]
device: Fix minor whitespace issues
Szymon Janc [Mon, 19 Nov 2012 15:02:45 +0000 (16:02 +0100)]
device: Remove not really used auto_id member from btd_device
auto_id is not used anymore as LE device connect is now done by
adapter autoconnect list.
Szymon Janc [Mon, 19 Nov 2012 15:02:44 +0000 (16:02 +0100)]
adapter: Minor whitespace fix in btd_adapter_set_class
Indent with tab not spaces.
Szymon Janc [Mon, 19 Nov 2012 15:02:43 +0000 (16:02 +0100)]
adapter: Remove not needed variable from btd_adapter_start
address is no longer used and can be removed.
Szymon Janc [Mon, 19 Nov 2012 15:02:42 +0000 (16:02 +0100)]
adapter: Remove not needed variable from btd_adapter_get_mode
address is no longer used and can be removed.
Johan Hedberg [Sun, 18 Nov 2012 21:16:28 +0000 (23:16 +0200)]
core: Fix checking profiles with no local_uuid
Marcel Holtmann [Sat, 17 Nov 2012 09:38:24 +0000 (18:38 +0900)]
monitor: Decode a few Attribute PDUs
Johan Hedberg [Sat, 17 Nov 2012 09:37:19 +0000 (11:37 +0200)]
core: Fix SDP registration when staring server sockets fails
Johan Hedberg [Sat, 17 Nov 2012 04:53:30 +0000 (06:53 +0200)]
core: Add support for generic L2CAP & RFCOMM profiles
Johan Hedberg [Sat, 17 Nov 2012 04:52:46 +0000 (06:52 +0200)]
core: Fix external profile remote UUID setting
Johan Hedberg [Sat, 17 Nov 2012 04:50:45 +0000 (06:50 +0200)]
test: Add support for dynamic channels and PSMs to test-profile
Johan Hedberg [Sat, 17 Nov 2012 04:48:52 +0000 (06:48 +0200)]
test: Add random UUID support to test-profile
Johan Hedberg [Sat, 17 Nov 2012 04:47:43 +0000 (06:47 +0200)]
sdp-xml: Fix parsing of unknown elements
Marcel Holtmann [Sat, 17 Nov 2012 04:32:18 +0000 (13:32 +0900)]
monitor: Fix some AMP controller decodings
Marcel Holtmann [Sat, 17 Nov 2012 04:24:19 +0000 (13:24 +0900)]
monitor: Decode Security Manager Protocol
Marcel Holtmann [Sat, 17 Nov 2012 03:21:07 +0000 (12:21 +0900)]
monitor: Use callback tables for ATT and SMP
Marcel Holtmann [Sat, 17 Nov 2012 03:09:16 +0000 (12:09 +0900)]
monitor: Decode AMP Manager Protocol packets
Marcel Holtmann [Fri, 16 Nov 2012 16:54:19 +0000 (01:54 +0900)]
monitor: Fix typo with Read Stored Link Keys command