OSDN Git Service
Luiz Augusto von Dentz [Thu, 20 Dec 2012 14:13:36 +0000 (16:13 +0200)]
test: Update simple-obex-agent to use the new interface names
Luiz Augusto von Dentz [Thu, 20 Dec 2012 14:09:52 +0000 (16:09 +0200)]
obexd: Fix session path to include manager path
Manager path is /org/bluez/obex so use it as prefix in the session path.
Luiz Augusto von Dentz [Thu, 20 Dec 2012 13:27:05 +0000 (15:27 +0200)]
obexd: Rename org.bluez.obex.Session to org.bluez.obex.Session1
Luiz Augusto von Dentz [Thu, 20 Dec 2012 13:25:14 +0000 (15:25 +0200)]
obexd: Rename org.bluez.obex.Transfer to org.bluez.obex.Transfer1
Luiz Augusto von Dentz [Thu, 20 Dec 2012 13:10:24 +0000 (15:10 +0200)]
obexd: Rename org.bluez.obex.Agent to org.bluez.obex.Agent1
Luiz Augusto von Dentz [Thu, 20 Dec 2012 12:55:45 +0000 (14:55 +0200)]
obexd: Rename Manager to AgentManager1
Johan Hedberg [Fri, 21 Dec 2012 09:49:57 +0000 (11:49 +0200)]
core: Fix sending set_discoverable if adapter is not connectable
Marcel Holtmann [Fri, 21 Dec 2012 08:46:16 +0000 (09:46 +0100)]
build: Mark Health plugin as experimental for now
The API of the Health plugin and the code itself needs another review
phase in the light for BlueZ 5.x. For now mark this plugin as experimental.
Marcel Holtmann [Fri, 21 Dec 2012 08:41:43 +0000 (09:41 +0100)]
build: Split documentation files into multiple separate lists
Marcel Holtmann [Fri, 21 Dec 2012 08:38:43 +0000 (09:38 +0100)]
doc: Remove outdated audio-telephony-design.txt for now
Since the document has large portions that are outdated, remove it
for now. It should be brought back with updated information later on.
Johan Hedberg [Fri, 21 Dec 2012 08:30:44 +0000 (10:30 +0200)]
test: Make it possible to call test-network with a "connect" parameter
Johan Hedberg [Fri, 21 Dec 2012 08:10:53 +0000 (10:10 +0200)]
test: Fix test-network logging after a successful connection
Johan Hedberg [Fri, 21 Dec 2012 07:50:12 +0000 (09:50 +0200)]
network: Add debug logs to better follow the connection procedure
Johan Hedberg [Fri, 21 Dec 2012 07:58:52 +0000 (09:58 +0200)]
network: Fix bnep_send_conn_req error checking
Johan Hedberg [Fri, 21 Dec 2012 07:54:53 +0000 (09:54 +0200)]
network: Remove unnecessary function cast
Johan Hedberg [Fri, 21 Dec 2012 07:52:54 +0000 (09:52 +0200)]
network: Fix passing correct btd_profile to device_profile_connected
Johan Hedberg [Fri, 21 Dec 2012 07:25:03 +0000 (09:25 +0200)]
Revert "build: Remove test-network"
This reverts commit
9efcb970ce023f9bedbe8160be0226fd14367878.
Conflicts:
Makefile.tools
Johan Hedberg [Thu, 20 Dec 2012 23:53:30 +0000 (01:53 +0200)]
network: Remove pointless pointer assignment at end of function
Johan Hedberg [Thu, 20 Dec 2012 23:21:32 +0000 (01:21 +0200)]
Revert "network: Remove Network.Connect and Network.Disconnect"
This reverts commit
9c62de94e5044038bcaae6cd6c0ec783fbee607a.
For convenience (mainly for ConnMan) bring back
Network1.Connect/Disconnect since they also give the interface name
directly.
Johan Hedberg [Thu, 20 Dec 2012 22:18:18 +0000 (00:18 +0200)]
health: Use lower-case strings for enum values (for consistency)
Johan Hedberg [Thu, 20 Dec 2012 09:01:30 +0000 (11:01 +0200)]
core: Fix display_pincode_cb behavior
The data pointer should be the authentication request and not the
device. Also, the pincode_cb function already checks for
auth->agent == NULL and will also do the agent_unref call if necessary.
Johan Hedberg [Thu, 20 Dec 2012 09:01:23 +0000 (11:01 +0200)]
doc: Remove incorrect fallback behavior claim for DisplayPinCode
Marcel Holtmann [Thu, 20 Dec 2012 02:43:38 +0000 (03:43 +0100)]
client: Add support for requesting default agent
Marcel Holtmann [Thu, 20 Dec 2012 02:36:13 +0000 (03:36 +0100)]
client: Add support for handling service authorizations
Marcel Holtmann [Thu, 20 Dec 2012 02:27:44 +0000 (03:27 +0100)]
test: Remove no longer test-service script
Marcel Holtmann [Thu, 20 Dec 2012 02:22:11 +0000 (03:22 +0100)]
client: Mover name command to the proper location
Marcel Holtmann [Thu, 20 Dec 2012 02:20:27 +0000 (03:20 +0100)]
client: Add command to display version
Marcel Holtmann [Thu, 20 Dec 2012 02:18:05 +0000 (03:18 +0100)]
client: Add support for connecting/disconnecting devices
Marcel Holtmann [Thu, 20 Dec 2012 02:00:41 +0000 (03:00 +0100)]
monitor: Decode QoS setup command and event
Marcel Holtmann [Thu, 20 Dec 2012 01:44:20 +0000 (02:44 +0100)]
monitor: L2CAP information respones don't have a payload
Marcel Holtmann [Thu, 20 Dec 2012 01:38:22 +0000 (02:38 +0100)]
monitor: Print legacy PIN code in ASCII and not hex
Frédéric Danis [Wed, 19 Dec 2012 13:20:01 +0000 (14:20 +0100)]
monitor: Fix crash in btmon
When retrieving SDP records from keyboard btmon crashes (see below).
The tid_list in sdp.c is filled up by SDP Service search request,
as Service Search responses are treated as invalid and do not free
tid_list entries.
This is due to passing last fragment instead of complete frame to
l2cap_frame().
< ACL Data TX: Handle 11 flags 0x00 dlen 26 [hci0] 24.082133
Channel: 511 len 22 [PSM 1 mode 0] {chan 0}
SDP: Service Search Attribute Request (0x06) tid 14 len 17
Search pattern: [len 5]
Sequence (6) with 3 bytes [8 extra bits] len 5
UUID (3) with 2 bytes [0 extra bits] len 3
L2CAP (0x0100)
Max record count: 65535
Attribute list: [len 7]
Sequence (6) with 5 bytes [8 extra bits] len 7
Unsigned Integer (1) with 4 bytes [0 extra bits] len 5
0x0000ffff
Continuation state: 2
00 1d ..
> HCI Event: Number of Completed Packets (0x13) plen 5 [hci0] 24.085458
Num handles: 1
Handle: 11
Count: 2
> ACL Data RX: Handle 11 flags 0x02 dlen 27 [hci0] 24.102205
> ACL Data RX: Handle 11 flags 0x01 dlen 14 [hci0] 24.103339
Channel: 64 len 37 [PSM 1 mode 0] {chan 0}
invalid frame size
23 03 09 02 04 28 01 09 02 05 09 00 02 00 09 04 #....(..........
6d 09 02 02 09 b3 01 09 02 03 09 64 00 00 00 00 m..........d....
00 00 00 00 00 .....
< ACL Data TX: Handle 11 flags 0x00 dlen 24 [hci0] 24.170595
Channel: 511 len 20 [PSM 1 mode 0] {chan 0}
SDP: Service Search Attribute Request (0x06) tid 15 len 15
Search pattern: [len 5]
Sequence (6) with 3 bytes [8 extra bits] len 5
UUID (3) with 2 bytes [0 extra bits] len 3
PnP Information (0x1200)
Max record count: 65535
Attribute list: [len 7]
Sequence (6) with 5 bytes [8 extra bits] len 7
Unsigned Integer (1) with 4 bytes [0 extra bits] len 5
0x0000ffff
Continuation state: 0
> ACL Data RX: Handle 11 flags 0x02 dlen 27 [hci0] 24.192217
> ACL Data RX: Handle 11 flags 0x01 dlen 25 [hci0] 24.193327
Channel: 64 len 48 [PSM 1 mode 0] {chan 0}
invalid frame size
01 35 03 19 12 00 09 00 04 35 0d 35 06 19 01 00 .5.......5.5....
09 00 01 35 03 19 02 00 32 09 00 64 00 00 00 00 ...5....2..d....
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
< ACL Data TX: Handle 11 flags 0x00 dlen 26 [hci0] 24.205765
Channel: 511 len 22 [PSM 1 mode 0] {chan 0}
SDP: Service Search Attribute Request (0x06) tid 16 len 17
Search pattern: [len 5]
Sequence (6) with 3 bytes [8 extra bits] len 5
UUID (3) with 2 bytes [0 extra bits] len 3
PnP Information (0x1200)
Max record count: 65535
Attribute list: [len 7]
Sequence (6) with 5 bytes [8 extra bits] len 7
Unsigned Integer (1) with 4 bytes [0 extra bits] len 5
0x0000ffff
Program received signal SIGSEGV, Segmentation fault.
__memcpy_ssse3_back () at ../sysdeps/x86_64/multiarch/memcpy-ssse3-back.S:2184
2184 ../sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: No such file or directory.
(gdb) bt
#0 __memcpy_ssse3_back () at ../sysdeps/x86_64/multiarch/memcpy-ssse3-back.S:2184
#1 0x0000000000418607 in search_attr_req (frame=0x7fffffffdff0, tid=0x0) at /usr/include/x86_64-linux-gnu/bits/string3.h:52
#2 0x0000000000418ebb in sdp_packet (frame=0x7fffffffe0e0, channel=0) at monitor/sdp.c:743
#3 0x000000000041547e in l2cap_frame (index=<optimised out>, in=<optimised out>, handle=<optimised out>, cid=<optimised out>, data=0x6370d0, size=22) at monitor/l2cap.c:2161
#4 0x000000000040f8c4 in packet_hci_acldata (tv=0x7fffffffe330, index=0, in=false, data=0x6370cc, size=26) at monitor/packet.c:4812
#5 0x000000000040fd35 in packet_monitor (tv=0x7fffffffe330, index=0, opcode=<optimised out>, data=0x6370c8, size=<optimised out>) at monitor/packet.c:1839
#6 0x0000000000403da2 in data_callback (user_data=0x6370c0, fd=<optimised out>, events=<optimised out>) at monitor/control.c:599
#7 data_callback (fd=<optimised out>, events=<optimised out>, user_data=0x6370c0) at monitor/control.c:541
#8 0x00000000004021c4 in mainloop_run () at monitor/mainloop.c:142
#9 0x0000000000401c7c in main (argc=1, argv=0x7fffffffe5f8) at monitor/main.c:154
Marcel Holtmann [Wed, 19 Dec 2012 23:18:30 +0000 (00:18 +0100)]
build: Remove support for external OOB plugin
Marcel Holtmann [Wed, 19 Dec 2012 23:17:21 +0000 (00:17 +0100)]
build: Remove doc/control-api.txt from package
Marcel Holtmann [Wed, 19 Dec 2012 23:14:45 +0000 (00:14 +0100)]
audio: Change to org.bluez.MediaControl1 as interface name
Marcel Holtmann [Wed, 19 Dec 2012 23:14:19 +0000 (00:14 +0100)]
doc: Merge org.bluez.Control1 into org.bluez.MediaControl1 API
Johan Hedberg [Wed, 19 Dec 2012 22:34:38 +0000 (00:34 +0200)]
test: Remove non-exitent items from test-device help text
Johan Hedberg [Wed, 19 Dec 2012 22:13:24 +0000 (00:13 +0200)]
doc: Mark HFP-specific MediaTransport properties clearly
Johan Hedberg [Wed, 19 Dec 2012 22:10:45 +0000 (00:10 +0200)]
test: Remove non-existent features from test-device
Johan Hedberg [Wed, 19 Dec 2012 22:04:11 +0000 (00:04 +0200)]
doc: Remove non-existent Services Device property
Johan Hedberg [Wed, 19 Dec 2012 22:02:57 +0000 (00:02 +0200)]
doc: Add missing error returns to Device1.CancelPairing
Andre Guedes [Wed, 19 Dec 2012 13:42:06 +0000 (10:42 -0300)]
hog: Rename hog_device_unregister
This patch renames hog_device_unregister function to hog_unregister_
device.
Andre Guedes [Tue, 18 Dec 2012 18:49:49 +0000 (15:49 -0300)]
hog: Rename hog_device_register
This patch renames hog_device_register function to hog_register_device.
Andre Guedes [Tue, 18 Dec 2012 18:49:48 +0000 (15:49 -0300)]
hog: Rename hog_device_free
This patch renames hog_device_free function to hog_free_device.
Andre Guedes [Tue, 18 Dec 2012 18:49:47 +0000 (15:49 -0300)]
hog: Rename hog_device_new
This patch renames hog_device_new function to hog_new_device.
Andre Guedes [Tue, 18 Dec 2012 18:49:46 +0000 (15:49 -0300)]
hog: Rename hog_device_set_control_point
This patch renames hog_device_set_control_point function to
set_control_point.
Andre Guedes [Tue, 18 Dec 2012 18:49:45 +0000 (15:49 -0300)]
hog: Rename hog_device_remove
This patch renames hog_device_remove function to hog_remove.
Andre Guedes [Tue, 18 Dec 2012 18:49:44 +0000 (15:49 -0300)]
hog: Rename hog_device_probe
This patch renames hog_device_probe function to hog_probe.
Andre Guedes [Tue, 18 Dec 2012 18:49:43 +0000 (15:49 -0300)]
hog: Rename hog_device.c file to hog.c
Since hog_manager.c and hog_device.h were merged into hog_device.c,
now the whole HoG logic is in this file. So, calling this file hog.c
instead of hog_device.c is more suitable.
Johan Hedberg [Wed, 19 Dec 2012 19:50:10 +0000 (21:50 +0200)]
core: Improve error logging for agent replies
Johan Hedberg [Wed, 19 Dec 2012 19:21:57 +0000 (21:21 +0200)]
doc: Fix minor typo in device-api
Marcel Holtmann [Wed, 19 Dec 2012 18:49:19 +0000 (19:49 +0100)]
doc: Small cleanup for sim access API
Marcel Holtmann [Wed, 19 Dec 2012 18:32:25 +0000 (19:32 +0100)]
doc: Small cleanup for media and control APIs
Marcel Holtmann [Wed, 19 Dec 2012 17:24:43 +0000 (18:24 +0100)]
build: Move bluez.pc into the library directory
Johan Hedberg [Wed, 19 Dec 2012 17:17:56 +0000 (19:17 +0200)]
core: Make device_cancel_bonding static to device.c
Johan Hedberg [Wed, 19 Dec 2012 17:12:47 +0000 (19:12 +0200)]
core: Create a separate function for bonding failure cleanup
Marcel Holtmann [Wed, 19 Dec 2012 17:21:26 +0000 (18:21 +0100)]
build: Remove left-overs from broken attempt in adding gtk-doc support
Marcel Holtmann [Wed, 19 Dec 2012 17:13:01 +0000 (18:13 +0100)]
doc: Remove pointless copyright statement for network API
Marcel Holtmann [Wed, 19 Dec 2012 17:09:33 +0000 (18:09 +0100)]
doc: Remove pointless copyright statements from core APIs
Marcel Holtmann [Wed, 19 Dec 2012 17:07:50 +0000 (18:07 +0100)]
doc: Small cleanup of the health API
Marcel Holtmann [Wed, 19 Dec 2012 17:00:25 +0000 (18:00 +0100)]
doc: Move DisplayPinCode section to the right location
Marcel Holtmann [Wed, 19 Dec 2012 16:57:39 +0000 (17:57 +0100)]
doc: Add comment to favor Alias over Name property for devices
Marcel Holtmann [Wed, 19 Dec 2012 16:51:21 +0000 (17:51 +0100)]
doc: Add extra comments about default values to adapter properties
Marcel Holtmann [Wed, 19 Dec 2012 16:48:08 +0000 (17:48 +0100)]
core: Ensure that adapter->discoverable default is false
Marcel Holtmann [Wed, 19 Dec 2012 16:42:49 +0000 (17:42 +0100)]
core: Mention defaults in main.conf and disable examples
Marcel Holtmann [Wed, 19 Dec 2012 16:40:12 +0000 (17:40 +0100)]
core: Remove LAST_ADAPTER_EXIT_TIMEOUT constant
Marcel Holtmann [Wed, 19 Dec 2012 16:39:30 +0000 (17:39 +0100)]
core: Explictly set default values for the options
Marcel Holtmann [Wed, 19 Dec 2012 16:36:08 +0000 (17:36 +0100)]
core: Remove unused link_policy setting
Marcel Holtmann [Wed, 19 Dec 2012 16:34:49 +0000 (17:34 +0100)]
core: Remove unused link_mode setting
Marcel Holtmann [Wed, 19 Dec 2012 16:31:50 +0000 (17:31 +0100)]
core: Remove PageTimeout configuration option
The PageTimeout setting is currently not supported. So do not pretend
that it is actually available.
Marcel Holtmann [Wed, 19 Dec 2012 15:27:29 +0000 (16:27 +0100)]
core: Force not discoverable at power on if timeout is enabled
In case the adapter comes with a previous state, ensure that it is
made non discoverable if a timeout is set.
Marcel Holtmann [Wed, 19 Dec 2012 15:22:09 +0000 (16:22 +0100)]
core: Check for discoverable timeout settings during power on
When the adapter is powered on, then setting discoverable with a
timeout value is not allowed.
Marcel Holtmann [Wed, 19 Dec 2012 15:03:23 +0000 (16:03 +0100)]
core: Set the address type when canceling pair device command
Marcel Holtmann [Wed, 19 Dec 2012 15:00:13 +0000 (16:00 +0100)]
core: Provide address type information to unpair command
Marcel Holtmann [Wed, 19 Dec 2012 14:50:16 +0000 (15:50 +0100)]
core: Print timeout value for set discoverable debug
Marcel Holtmann [Wed, 19 Dec 2012 14:38:21 +0000 (15:38 +0100)]
core: Print compact info about Bluetooth management interface
Johan Hedberg [Wed, 19 Dec 2012 14:40:32 +0000 (16:40 +0200)]
core: Fix treating uuid_any as an invalid UUID
Luiz Augusto von Dentz [Wed, 19 Dec 2012 14:29:08 +0000 (16:29 +0200)]
audio: Remove adapter list
btd_adapter is directly referenced by the drivers so there is no point
on keeping a list just for the audio adapters.
Luiz Augusto von Dentz [Wed, 19 Dec 2012 14:29:07 +0000 (16:29 +0200)]
audio: Fix not releasing all references to btd_adapter
A2DP server now take a reference to btd_adapter which needs to be
released properly once the adapter is unplugged.
Johan Hedberg [Wed, 19 Dec 2012 14:26:58 +0000 (16:26 +0200)]
core: Print mgmt version and revision through info() instead of DBG()
Johan Hedberg [Wed, 19 Dec 2012 14:22:44 +0000 (16:22 +0200)]
core: Filter out non-16 bit UUIDs when talking to mgmt
There's a bug with current kernel mgmt code that will create incorrect
EIR data if there are any non-16-bit UUIDs in the kernel's UUID list.
Once this is fixed in the kernel we can pass 128-bit UUIDs again (by
first checking a new enough mgmt revision), but until then we simply
have to filter out these UUIDs.
Marcel Holtmann [Wed, 19 Dec 2012 14:03:45 +0000 (15:03 +0100)]
build: Don't create empty udev rules.d directory
When UDEV_DIR is empty it will create "/rules.d" directory which is
not desired. So check for enabled HID2HCI support before installing
any udev rules.
Marcel Holtmann [Wed, 19 Dec 2012 12:42:35 +0000 (13:42 +0100)]
obexd: Reorder command line options
Johan Hedberg [Wed, 19 Dec 2012 12:34:05 +0000 (14:34 +0200)]
core: Always power off adapter when stopping bluetoothd
Marcel Holtmann [Wed, 19 Dec 2012 12:33:30 +0000 (13:33 +0100)]
core: Turn another info() into DBG() for less clutter in logs
Szymon Janc [Wed, 12 Dec 2012 10:28:08 +0000 (11:28 +0100)]
avctp: Remove double looking for audio device
There is no need to double call for manager_get_audio_device with
toggled create flag. manager_get_audio_device with create set to true
will only create new audio device if matching one was not found.
Szymon Janc [Wed, 12 Dec 2012 10:28:07 +0000 (11:28 +0100)]
audio: Simplify manager_find_device
Now that audio_device and other audio structures holds references to
btd_device and not addresses or paths there is no need for complex
find function.
Szymon Janc [Wed, 12 Dec 2012 10:28:06 +0000 (11:28 +0100)]
audio: Make manager_get_device accept btd_device
Also rename manager_get_device to manager_get_audio_device to better
mark what this function do.
Szymon Janc [Wed, 12 Dec 2012 10:28:05 +0000 (11:28 +0100)]
audio: Use manager_get_device to get device object
manager_get_device is a simple wrapper for manager_find_device
and can be used instead making manager API simpler.
manager_find_device{s} are no longer used outside of manager.c and
can be made static.
Szymon Janc [Wed, 12 Dec 2012 10:28:04 +0000 (11:28 +0100)]
avdtp: Replace avdtp_get_peers with adapter and device getters
This will allow to directly pass adapter or device object instead
of looking for them with addresses later on.
Szymon Janc [Wed, 12 Dec 2012 10:28:03 +0000 (11:28 +0100)]
avctp: Convert register/unregister to accept btd_adapter
Use btd_adapter and btd_device refs instead of source and destination
bdaddr_t.
Szymon Janc [Wed, 12 Dec 2012 10:28:02 +0000 (11:28 +0100)]
avrcp: Convert to accept btd_adapter instead of bdaddr_t
This makes avrcp code use reference to btd_adapter structure instead
of adapter source address.
Szymon Janc [Wed, 12 Dec 2012 10:28:01 +0000 (11:28 +0100)]
a2dp: Use btd_adapter ref in a2dp_server instead of bdaddr_t
Use local refs to device and adapter object instead of addresses.
This allows a2dp code to pass adapter object instead of address.
Szymon Janc [Wed, 12 Dec 2012 10:28:00 +0000 (11:28 +0100)]
avdtp: Use refs to adapter and device instead of bdaddr_t
Use local refs to device and adapter object instead of addresses.
This allows a2dp code to pass adapter object instead of address
and minimise need for finding adapter again with manager API.
Szymon Janc [Wed, 12 Dec 2012 10:27:59 +0000 (11:27 +0100)]
a2dp: Convert a2dp_add_sep to accept struct btd_adapter
Pass btd_adapter directly or use getters to get needed data from
adapter object.
Szymon Janc [Wed, 12 Dec 2012 10:27:58 +0000 (11:27 +0100)]
media: Convert register/unregister to accept btd_adapter
Keep reference to passed btd_adapter and use it to get adapter address
and path.
Szymon Janc [Wed, 12 Dec 2012 10:27:57 +0000 (11:27 +0100)]
a2dp: Convert a2dp_unregister to accept btd_adapter
Pass btd_adapter directly or use getters to get needed data from
adapter object.
Szymon Janc [Wed, 12 Dec 2012 10:27:56 +0000 (11:27 +0100)]
a2dp: Convert sink/source register to accept btd_adapter
Pass btd_adapter directly or use getters to get needed data from
adapter object.
Szymon Janc [Wed, 12 Dec 2012 10:27:55 +0000 (11:27 +0100)]
a2dp: Remove not used macros definitions
MIN and MAX macros are not used.
Szymon Janc [Wed, 12 Dec 2012 10:27:54 +0000 (11:27 +0100)]
a2dp: Remove useless return
This code does nothing.