OSDN Git Service
Marcel Holtmann [Tue, 18 Dec 2012 16:42:10 +0000 (17:42 +0100)]
client: Print message when pairing attempt is in progress
Marcel Holtmann [Tue, 18 Dec 2012 16:39:56 +0000 (17:39 +0100)]
client: Add support for providing agent capability
Marcel Holtmann [Tue, 18 Dec 2012 16:38:00 +0000 (17:38 +0100)]
core: Check for valid agent capability
Marcel Holtmann [Tue, 18 Dec 2012 16:23:19 +0000 (17:23 +0100)]
client: Add support for request authorization callbacks
Marcel Holtmann [Tue, 18 Dec 2012 16:06:12 +0000 (17:06 +0100)]
client: Handle legacy pairing and input of PIN codes
Johan Hedberg [Tue, 18 Dec 2012 16:05:43 +0000 (18:05 +0200)]
core: Only force SSP and LE setting through the initial read_info
Johan Hedberg [Tue, 18 Dec 2012 15:54:03 +0000 (17:54 +0200)]
obexd: Merge obex-client into obexd daemon
Mikel Astiz [Thu, 8 Nov 2012 14:30:13 +0000 (15:30 +0100)]
adapter: Remove DevicesFound signal
ObjectManager reports the D-Bus interfaces of all known devices,
including the ones detected during discovery. Therefore this signal is
not required.
Johan Hedberg [Tue, 18 Dec 2012 15:25:34 +0000 (17:25 +0200)]
core: Remove DisablePlugins main.conf entry
The plugins can still be disabled through the -P command line switch.
Andre Guedes [Tue, 18 Dec 2012 14:41:21 +0000 (11:41 -0300)]
hog: Fix removing HoG device bug
We should remove only hog_devices from the given btd_device.
Otherwise, all hog_devices will be removed.
Andre Guedes [Tue, 18 Dec 2012 14:41:20 +0000 (11:41 -0300)]
hog: Refactor hog init and exit functions
This patch simply renames hog_manager_init and hog_manager_exit
functions to hog_init and hog_exit.
Andre Guedes [Tue, 18 Dec 2012 14:41:19 +0000 (11:41 -0300)]
hog: Merge hog_device.h code into hog_device.c
This patch merges hog_device.h code into hog_device.c and removes
hog_device.h file. As long as hog_manager.c was merged into hog_
device.c, there is no need to have a header for hog_device.
This patch also adds the static modifier to functions which are
now used only in hog_device.c.
Andre Guedes [Tue, 18 Dec 2012 14:41:18 +0000 (11:41 -0300)]
hog: Merge hog_manager.c code into hog_device.c
This patch merges hog_manager.c code into hog_device.c and removes
hog_manager.c file. hog_manager.c is a very small file, so there is
no need to keep it separated.
Johan Hedberg [Tue, 18 Dec 2012 15:16:55 +0000 (17:16 +0200)]
test: Update simple-agent to match latest agent API
Johan Hedberg [Tue, 18 Dec 2012 15:16:12 +0000 (17:16 +0200)]
core: Update agent manager implementation to match API doc
Johan Hedberg [Tue, 18 Dec 2012 14:54:42 +0000 (16:54 +0200)]
doc: Add object path parameter to RequestDefaultAgent
Marcel Holtmann [Tue, 18 Dec 2012 14:34:29 +0000 (15:34 +0100)]
core: Turn some messages into debugs and fix warning
Marcel Holtmann [Tue, 18 Dec 2012 14:02:47 +0000 (15:02 +0100)]
client: Remove broken helper for message blocks
Marcel Holtmann [Tue, 18 Dec 2012 14:02:03 +0000 (15:02 +0100)]
client: Always print messages with checking readline state
Marcel Holtmann [Tue, 18 Dec 2012 13:52:56 +0000 (14:52 +0100)]
client: Check for RL_STATE_DONE before trying to print
Johan Hedberg [Tue, 18 Dec 2012 14:03:40 +0000 (16:03 +0200)]
obexd: Add client prefix to client manager functions
This is in preparation of merging the client into the daemon.
Johan Hedberg [Tue, 18 Dec 2012 12:27:19 +0000 (14:27 +0200)]
core: Fix memory leak of keys in check_config()
Johan Hedberg [Tue, 18 Dec 2012 12:09:46 +0000 (14:09 +0200)]
audio: Don't print an error for missing conf file
Johan Hedberg [Tue, 18 Dec 2012 12:09:37 +0000 (14:09 +0200)]
input: Don't print an error for missing conf file
Johan Hedberg [Tue, 18 Dec 2012 12:09:26 +0000 (14:09 +0200)]
proximity: Don't print an error for missing conf file
Johan Hedberg [Tue, 18 Dec 2012 12:09:12 +0000 (14:09 +0200)]
core: Don't print an error for missign main.conf file
Johan Hedberg [Tue, 18 Dec 2012 11:58:05 +0000 (13:58 +0200)]
core: Add checking for unknown main.conf entries
Szymon Janc [Tue, 18 Dec 2012 11:10:58 +0000 (12:10 +0100)]
adapter: Use int for storing signed value
char can be signed or unsigned depending on architecture. This fix
following compilation error on ARM:
src/adapter.c: In function 'convert_primaries_entry`:
src/adapter:2272:2: error: comparison is always true due to limited
range of data type [-Werror=type-limits]
cc1: all warnings being treated as errors
make[1]: *** [src/adapter.o] Error 1
Szymon Janc [Tue, 18 Dec 2012 11:10:57 +0000 (12:10 +0100)]
hcidump: Fix compilation errors due to unaligned memory access
Use bt_get_le* helper functions to access unaligned memory. This fix
number of compilation errors on ARM similar to:
CC tools/parser/hci.o
tools/parser/hci.c: In function ‘ext_inquiry_data_dump’:
tools/parser/hci.c:797:10 error: cast increases required alignment of
target type [-Werror=cast-align]
tools/parser/hci.c:797:10: error: cast increases required alignment of
target type [-Werror=cast-align]
cc1: all warnings being treated as errors
make[1]: *** [tools/parser/hci.o] Error 1
Johan Hedberg [Tue, 18 Dec 2012 10:37:01 +0000 (12:37 +0200)]
doc: Clarify ConnectProfile UUID parameter
Johan Hedberg [Tue, 18 Dec 2012 10:34:37 +0000 (12:34 +0200)]
doc: Bump AVRCP version from 1.4 to 1.5 in supported-features
Johan Hedberg [Tue, 18 Dec 2012 10:33:25 +0000 (12:33 +0200)]
doc: Add Cycling Speed to supported-features document
Johan Hedberg [Tue, 18 Dec 2012 10:28:09 +0000 (12:28 +0200)]
core: Remove DisconnectRequested signal
This signal is not needed anymore thanks to the RequestDisconnect
callback of the Profile interface.
Johan Hedberg [Tue, 18 Dec 2012 10:26:41 +0000 (12:26 +0200)]
doc: Fix minor formatting issue in device API
Johan Hedberg [Tue, 18 Dec 2012 10:24:58 +0000 (12:24 +0200)]
doc: Remove left-over mentions of adapter-based agent methods
Johan Hedberg [Tue, 18 Dec 2012 09:38:09 +0000 (11:38 +0200)]
audio: Remove unused a2dp_sep_is_playing function
Johan Hedberg [Tue, 18 Dec 2012 09:37:21 +0000 (11:37 +0200)]
audio: Remove unnecessary a2dp_sep_get_lock function
Johan Hedberg [Tue, 18 Dec 2012 09:36:15 +0000 (11:36 +0200)]
audio: Remove unused a2dp_get_sep function
Johan Hedberg [Tue, 18 Dec 2012 09:33:51 +0000 (11:33 +0200)]
core: Make sdp-xml encoding defines private
Johan Hedberg [Tue, 18 Dec 2012 09:31:30 +0000 (11:31 +0200)]
core: Make sdp-xml functions private that aren't used publically
Johan Hedberg [Tue, 18 Dec 2012 09:20:01 +0000 (11:20 +0200)]
neard: Fix agent reference leak
Johan Hedberg [Tue, 18 Dec 2012 08:14:48 +0000 (10:14 +0200)]
core: Fix initiating pairing without a registered agent
Marcel Holtmann [Tue, 18 Dec 2012 04:29:11 +0000 (05:29 +0100)]
client: Restore command prompt when agent finishes
Marcel Holtmann [Tue, 18 Dec 2012 04:27:09 +0000 (05:27 +0100)]
gdbus: Increase the method call timeout to 5 minutes
Marcel Holtmann [Tue, 18 Dec 2012 04:18:40 +0000 (05:18 +0100)]
client: Handle accepting/rejecting confirmation requests
Marcel Holtmann [Tue, 18 Dec 2012 04:09:59 +0000 (05:09 +0100)]
gdbus: Add helper for sending async error replies
Marcel Holtmann [Tue, 18 Dec 2012 03:24:11 +0000 (04:24 +0100)]
client: Replace certain messages with printing helper
Marcel Holtmann [Tue, 18 Dec 2012 03:22:00 +0000 (04:22 +0100)]
client: Forward input to agent handling if needed
Marcel Holtmann [Tue, 18 Dec 2012 03:20:40 +0000 (04:20 +0100)]
client: Add support for handling passkey confirmation
Marcel Holtmann [Tue, 18 Dec 2012 03:20:02 +0000 (04:20 +0100)]
client: Use printing helper for agent messages
Marcel Holtmann [Tue, 18 Dec 2012 03:17:45 +0000 (04:17 +0100)]
client: Add helper function for readline async printing
Marcel Holtmann [Tue, 18 Dec 2012 00:11:57 +0000 (01:11 +0100)]
emulator: Add support for Bluetooth host abstraction
Marcel Holtmann [Mon, 17 Dec 2012 23:26:44 +0000 (00:26 +0100)]
monitor: Fix whitespace damage
João Paulo Rechi Vita [Mon, 17 Dec 2012 22:48:20 +0000 (19:48 -0300)]
test: Update simple-agent to new API
The method org.bluez.Device.Pair() doesn't have arguments anymore. This
commit fixes the following error:
$ test/simple-agent hci0 4C:B1:99:F1:BC:E9
Agent registered
ERROR:dbus.connection:Unable to set arguments (u'/test/agent', u'Keybo
ardDisplay') according to signature '': <type 'exceptions.TypeError'>:
Fewer items found in D-Bus signature than in Python arguments
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/dbus/connection.py", line 586
, in msg_reply_handler
reply_handler(*message.get_args_list(**get_args_opts))
File "/usr/lib/python2.7/site-packages/dbus/proxies.py", line 391, i
n _introspect_reply_handler
self._introspect_execute_queue()
File "/usr/lib/python2.7/site-packages/dbus/proxies.py", line 378, i
n _introspect_execute_queue
proxy_method(*args, **keywords)
File "/usr/lib/python2.7/site-packages/dbus/proxies.py", line 132, i
n __call__
**keywords)
File "/usr/lib/python2.7/site-packages/dbus/connection.py", line 566
, in call_async
message.append(signature=signature, *args)
TypeError: Fewer items found in D-Bus signature than in Python argumen
ts
Marcel Holtmann [Mon, 17 Dec 2012 23:12:35 +0000 (00:12 +0100)]
unit: Fix issue with D-Bus client unit test when building packages
Marcel Holtmann [Mon, 17 Dec 2012 23:12:10 +0000 (00:12 +0100)]
build: Add support for building hcidump utility
Marcel Holtmann [Mon, 17 Dec 2012 23:00:39 +0000 (00:00 +0100)]
hcidump: Add private header for L2CAP structures
Marcel Holtmann [Mon, 17 Dec 2012 22:58:24 +0000 (23:58 +0100)]
hcidump: Add missing declaration of amp_assoc_dump
Marcel Holtmann [Mon, 17 Dec 2012 22:57:52 +0000 (23:57 +0100)]
hcidump: Fix includes for parser functions
Marcel Holtmann [Wed, 31 Oct 2012 03:34:37 +0000 (20:34 -0700)]
hcidump: Add support for reading new data link btsnoop files
Johan Hedberg [Tue, 9 Oct 2012 13:05:34 +0000 (16:05 +0300)]
hcidump: Print all HCI_LE_Create_Connection parameters
Andrei Emeltchenko [Thu, 30 Aug 2012 13:06:19 +0000 (16:06 +0300)]
hcidump: Decode Read Data Block Size HCI cmd
Decode Read Data Block Size HCI command and command status.
< HCI Command: Read Data Block Size (0x04|0x000a) plen 0
> HCI Event: Command Complete (0x0e) plen 10
Read Data Block Size (0x04|0x000a) ncmd 1
status 0x00
Max ACL 1492 Block len 1492 Num blocks 4
Andrei Emeltchenko [Fri, 31 Aug 2012 07:37:20 +0000 (10:37 +0300)]
hcidump: Decode Num Completed Data Blocks
Adds decoding Number Of Completed Data Blocks Event
> HCI Event: Number Of Completed Data Blocks (0x48) plen 9
Total num blocks 4 Num handles 1
Handle 0x0001: Num complt pkts 1 Num complt blks 1
Luiz Augusto von Dentz [Mon, 24 Sep 2012 14:30:59 +0000 (17:30 +0300)]
hcidump: Add parsing for GeneralReject PDU
Luiz Augusto von Dentz [Wed, 15 Aug 2012 11:34:27 +0000 (14:34 +0300)]
hcidump: Add parsing for AddToNowPlaying PDU
Luiz Augusto von Dentz [Wed, 15 Aug 2012 11:17:33 +0000 (14:17 +0300)]
hcidump: Add parsing for Search PDU
Luiz Augusto von Dentz [Wed, 15 Aug 2012 09:48:01 +0000 (12:48 +0300)]
hcidump: Add parsing for PlayItem PDU
Luiz Augusto von Dentz [Wed, 15 Aug 2012 08:21:59 +0000 (11:21 +0300)]
hcidump: Add parsing for GetItemAttributes PDU
Luiz Augusto von Dentz [Wed, 15 Aug 2012 07:47:49 +0000 (10:47 +0300)]
hcidump: Add parsing for ChangePath PDU
Luiz Augusto von Dentz [Mon, 13 Aug 2012 13:50:55 +0000 (16:50 +0300)]
hcidump: Add parsing for GetFolderItems PDU
Luiz Augusto von Dentz [Mon, 13 Aug 2012 13:05:40 +0000 (16:05 +0300)]
hcidump: Fix parsing SetBrowsedPlayer as AV/C pdu
As per AVRCP specification 1.4 page 32 the command type of
SetBrowsedPlayer is Browsing, so move it to browsing channel.
In addition to that pass the avctp header to avrcp_dump as it is
required to identify if the frame is a command or response.
Luiz Augusto von Dentz [Mon, 13 Aug 2012 11:11:31 +0000 (14:11 +0300)]
hcidump: Add initial support for browsing channel
Luiz Augusto von Dentz [Mon, 24 Sep 2012 14:34:44 +0000 (17:34 +0300)]
hcidump: Fix parsing of SetAddressedPlayer PDU
Andrei Emeltchenko [Fri, 17 Aug 2012 13:46:19 +0000 (16:46 +0300)]
hcidump: clean l2cap chan create/move dump
Print psm as hex, add "chan" to create, move req/rsp.
Andrei Emeltchenko [Fri, 17 Aug 2012 13:46:18 +0000 (16:46 +0300)]
hcidump: Fix printing link handle
Print logical link handle as 0x%4.4x and physical link handle
as 0x%2.2x
Luiz Augusto von Dentz [Tue, 14 Aug 2012 13:12:33 +0000 (16:12 +0300)]
hcidump: Fix not printing new line when parsing AddressedPlayerChanged
Andrzej Kaczmarek [Sun, 29 Jul 2012 09:30:25 +0000 (11:30 +0200)]
hcidump: Fix EIR data parsing
Data passed to ext_inquiry_data_dump are expected to start with length
octet which was consumed by get_u8.
Andrei Emeltchenko [Thu, 19 Jul 2012 09:08:25 +0000 (12:08 +0300)]
hcidump: Add decoding AMP Assoc data in write_remote_amp_assoc
Use amp_assoc_dump in write_remote_amp_assoc HCI command
Luiz Augusto von Dentz [Wed, 18 Jul 2012 11:11:03 +0000 (14:11 +0300)]
hcidump: Add parsing for SetBrowsedPlayer PDU
Luiz Augusto von Dentz [Tue, 19 Jun 2012 11:40:30 +0000 (14:40 +0300)]
hcidump: Add support for Addressed Player Changed event
Luiz Augusto von Dentz [Tue, 19 Jun 2012 11:40:29 +0000 (14:40 +0300)]
hcidump: Add parsing for SetAddressedPlayer PDU
Andrei Emeltchenko [Thu, 28 Jun 2012 13:09:22 +0000 (16:09 +0300)]
hcidump: Add decoding AMP Assoc data in HCI parser
Andrei Emeltchenko [Thu, 28 Jun 2012 13:09:21 +0000 (16:09 +0300)]
hcidump: Make assoc dump function available for HCI parser
AMP Assoc dump will be used also for HCI dump functions
Andrei Emeltchenko [Thu, 28 Jun 2012 13:09:20 +0000 (16:09 +0300)]
hcidump: Fix number of triplet calculation
Country code is also included in the TLV size.
Andrei Emeltchenko [Wed, 16 May 2012 08:26:52 +0000 (11:26 +0300)]
hcidump: Decode A2MP Get AMP Assoc rsp
Adds decoding Assoc data:
...
> ACL data: handle 11 flags 0x02 dlen 53
A2MP: Get AMP Assoc rsp: id 1 status (0) Success
Assoc data [len 39]:
MAC: <address>
Preferred Chan List number of triplets 4
Country code: XXX
Reg ext id 201 reg class 254 coverage class 0
Channel 1 max power 20
Channels 2 - 12 max power 20
Channels 4 - 8 max power 0
PAL CAP: 00 00 00 00
PAL VER: 01 Comp ID: <id> SubVer: 0001
...
Andrei Emeltchenko [Mon, 7 May 2012 13:49:26 +0000 (16:49 +0300)]
hcidump: Fix "length" name for A2MP Assoc log
Andrzej Kaczmarek [Fri, 30 Mar 2012 12:24:38 +0000 (14:24 +0200)]
hcidump: Add support for passing RFCOMM channel for SAP
Andrzej Kaczmarek [Fri, 30 Mar 2012 12:24:37 +0000 (14:24 +0200)]
hcidump: Add parameters parsing support for SAP PDU
Andrzej Kaczmarek [Fri, 30 Mar 2012 12:24:36 +0000 (14:24 +0200)]
hcidump: Add basic SAP parsing
Luiz Augusto von Dentz [Thu, 22 Mar 2012 19:04:43 +0000 (16:04 -0300)]
hcidump: Add parsing support for Volume Change notification
Luiz Augusto von Dentz [Thu, 22 Mar 2012 19:04:42 +0000 (16:04 -0300)]
hcidump: Add parsing for SetAbsoluteVolume PDU
Peter Krystad [Tue, 6 Mar 2012 00:14:52 +0000 (16:14 -0800)]
hcidump: Minor indentation cleanup and fix display of physical link key
Peter Krystad [Tue, 6 Mar 2012 00:14:51 +0000 (16:14 -0800)]
hcidump: Add parsing of A2MP signals
Peter Krystad [Tue, 6 Mar 2012 00:14:50 +0000 (16:14 -0800)]
hcidump: Add parsing of L2CAP Create/Move Channel signals
Luiz Augusto von Dentz [Fri, 17 Feb 2012 09:48:55 +0000 (11:48 +0200)]
hcidump: Add support for passing PSM as OBEX port
As OBEX can now use L2CAP as transport, -O/--obex option should accept
values other than RFCOMM channel, so values over 31 are now interpreted
as PSM.
Luiz Augusto von Dentz [Fri, 17 Feb 2012 09:48:54 +0000 (11:48 +0200)]
hcidump: add L2CAP OBEX support
Johan Hedberg [Wed, 1 Feb 2012 06:05:26 +0000 (08:05 +0200)]
hcidump: Fix UUID-128 parsing
ATT UUIDs are in little-endian format (in contrast to e.g. SDP).
Andrei Emeltchenko [Mon, 24 Oct 2011 09:22:34 +0000 (12:22 +0300)]
hcidump: Decode fixed channel list info rsp
Decode fixed channels in information response
< ACL data: handle 1 flags 0x00 dlen 10
L2CAP(s): Info req: type 3
> ACL data: handle 1 flags 0x02 dlen 20
L2CAP(s): Info rsp: type 3 result 0
Fixed channel list 0x0000000a
L2CAP Signalling Channel
AMP Manager Protocol
Martin Xu [Mon, 10 Oct 2011 09:21:57 +0000 (02:21 -0700)]
hcidump: Fix HCI event string lookup table
According to Core_v4.0 LE Meta Event Event Code is 0x3E, While Physical
Link Complete Event Code is 0x40 So add Unknown after LE Meta Event.
Andre Guedes [Tue, 4 Oct 2011 22:55:07 +0000 (19:55 -0300)]
hcidump: Fix EIR parsing in evt_le_advertising_report_dump
Only the first EIR data structure from the LE advertising report
event is dumped. This patch fix this, so all EIR data structure
present in that event is dumped.