OSDN Git Service

android-x86/external-bluetooth-bluez.git
11 years agotools/obexctl: Add show command
Luiz Augusto von Dentz [Thu, 15 Aug 2013 14:10:16 +0000 (17:10 +0300)]
tools/obexctl: Add show command

Add support for show command which can be used to show session
information

11 years agotools/obexctl: Add list command
Luiz Augusto von Dentz [Thu, 15 Aug 2013 13:37:53 +0000 (16:37 +0300)]
tools/obexctl: Add list command

Add support for list command which can be used to list available sessions

11 years agotools/obexctl: Add disconnect command
Luiz Augusto von Dentz [Thu, 15 Aug 2013 13:15:36 +0000 (16:15 +0300)]
tools/obexctl: Add disconnect command

Add support for disconnect command which can be used to disconnect
sessions.

11 years agotools/obexctl: Add connect command
Luiz Augusto von Dentz [Wed, 2 Oct 2013 11:55:17 +0000 (14:55 +0300)]
tools/obexctl: Add connect command

Add support for connect command which can be used to create a session to
a device.

11 years agotools/obexctl: Add proxy handling for org.bluez.obex.Client1
Luiz Augusto von Dentz [Wed, 2 Oct 2013 11:53:33 +0000 (14:53 +0300)]
tools/obexctl: Add proxy handling for org.bluez.obex.Client1

This adds proxy handling for org.bluez.obex.Client1 so changes to the
proxy are printed in the output.

11 years agotools/obexctl: Add proxy handling for org.bluez.obex.Transfer1
Luiz Augusto von Dentz [Wed, 14 Aug 2013 11:04:06 +0000 (14:04 +0300)]
tools/obexctl: Add proxy handling for org.bluez.obex.Transfer1

This adds proxy handling for org.bluez.obex.Transfer1 so changes to the
proxy are printed in the output.

11 years agotools/obexctl: Add proxy handling for org.bluez.obex.Session1
Luiz Augusto von Dentz [Wed, 14 Aug 2013 10:51:41 +0000 (13:51 +0300)]
tools/obexctl: Add proxy handling for org.bluez.obex.Session1

This adds proxy handling for org.bluez.obex.Session1 so changes to the
proxy are printed in the output.

11 years agotools/obexctl: Add initial code
Luiz Augusto von Dentz [Mon, 12 Aug 2013 13:30:46 +0000 (16:30 +0300)]
tools/obexctl: Add initial code

This add initial code for things like input handling as well as some
basic commands.

11 years agobuild: Add obexctl command line client
Luiz Augusto von Dentz [Mon, 12 Aug 2013 12:13:22 +0000 (15:13 +0300)]
build: Add obexctl command line client

obexctl is intended to be a command line client of obexd.

11 years agotools/mpris-player: Forward player signals
Luiz Augusto von Dentz [Thu, 10 Oct 2013 12:20:09 +0000 (15:20 +0300)]
tools/mpris-player: Forward player signals

Forward signals received from player in the session bus to the system
bus where bluetoothd can catch them.

11 years agoaudio/media: Send status changed if position changes
Luiz Augusto von Dentz [Thu, 10 Oct 2013 11:33:43 +0000 (14:33 +0300)]
audio/media: Send status changed if position changes

If position changes send a status changed event to force the position to
be resynced.

11 years agoaudio/media: Remove unused field
Luiz Augusto von Dentz [Tue, 15 Oct 2013 10:01:59 +0000 (13:01 +0300)]
audio/media: Remove unused field

track_watch is no longer used for anything since MPRIS interfaces was
adopted.

11 years agoaudio/media: Add support for tracking Seeked signal
Luiz Augusto von Dentz [Wed, 9 Oct 2013 14:04:31 +0000 (17:04 +0300)]
audio/media: Add support for tracking Seeked signal

This tracks Seeked signal and update the position in case it happens.

11 years agoaudio/AVCTP: Fix sending requests with same transaction id
Luiz Augusto von Dentz [Mon, 14 Oct 2013 12:46:03 +0000 (15:46 +0300)]
audio/AVCTP: Fix sending requests with same transaction id

If a request is outstanding in the processed list its transaction shall
not be reused as it can cause the wrong callback to be called.

This can be reproduced in very rare occasions where e.g. a notification
using the same transaction of the current request arrives before the
response itself.

11 years agoobexd/session: Fix crash when transport is disconnected
Luiz Augusto von Dentz [Mon, 14 Oct 2013 10:14:47 +0000 (13:14 +0300)]
obexd/session: Fix crash when transport is disconnected

When transport is disconnected unexpectedly it can cause the following
crash:
gobex-DEBUG: gobex/gobex.c:g_obex_send_internal() The transport is not connected
Invalid read of size 8
   at 0x42662E: session_process_queue (session.c:789)
   by 0x42668F: session_process (session.c:719)
   by 0x3D46047E05: g_main_context_dispatch (in /usr/lib64/libglib-2.0.so.0.3600.3)
   by 0x3D46048157: ??? (in /usr/lib64/libglib-2.0.so.0.3600.3)
   by 0x3D46048559: g_main_loop_run (in /usr/lib64/libglib-2.0.so.0.3600.3)
   by 0x40D5FC: main (main.c:319)
 Address 0x5086760 is 32 bytes inside a block of size 56 free'd
   at 0x4A074C4: free (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
   by 0x3D4604D9AE: g_free (in /usr/lib64/libglib-2.0.so.0.3600.3)
   by 0x426146: session_process_setpath (session.c:1063)
   by 0x426629: session_process_queue (session.c:786)
   by 0x42668F: session_process (session.c:719)
   by 0x3D46047E05: g_main_context_dispatch (in /usr/lib64/libglib-2.0.so.0.3600.3)
   by 0x3D46048157: ??? (in /usr/lib64/libglib-2.0.so.0.3600.3)
   by 0x3D46048559: g_main_loop_run (in /usr/lib64/libglib-2.0.so.0.3600.3)
   by 0x40D5FC: main (main.c:319)

11 years agoaudio/AVDTP: Add struct for discover specific data
Luiz Augusto von Dentz [Mon, 14 Oct 2013 10:14:46 +0000 (13:14 +0300)]
audio/AVDTP: Add struct for discover specific data

This pushes discover specific data to a struct which is a common practice
if the field contains callback and user_data specific to certain
operations.

11 years agoaudio/AVDTP: Fix crash after disconnecting
Luiz Augusto von Dentz [Mon, 14 Oct 2013 10:14:45 +0000 (13:14 +0300)]
audio/AVDTP: Fix crash after disconnecting

If the session is disconnected while process_discover is pending the
source id is not removed causing the following crash:
      at 0x414C08: finalize_discovery (avdtp.c:1050)
      by 0x414C5A: process_discover (avdtp.c:3346)
      by 0x3D46047E05: g_main_context_dispatch (in /usr/lib64/libglib-2.0.so.0.3600.3)
      by 0x3D46048157: ??? (in /usr/lib64/libglib-2.0.so.0.3600.3)
      by 0x3D46048559: g_main_loop_run (in /usr/lib64/libglib-2.0.so.0.3600.3)
      by 0x40A3B6: main (main.c:595)
    Address 0x5e25de8 is 1,144 bytes inside a block of size 1,176 free'd
    at 0x4A074C4: free (in
    /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
      by 0x3D4604D9AE: g_free (in /usr/lib64/libglib-2.0.so.0.3600.3)
      by 0x4152F2: connection_lost (avdtp.c:1206)
      by 0x4162C4: cancel_request (avdtp.c:2662)
      by 0x4164BD: request_timeout (avdtp.c:2672)
      by 0x3D46048962: ??? (in /usr/lib64/libglib-2.0.so.0.3600.3)
      by 0x3D46047E05: g_main_context_dispatch (in /usr/lib64/libglib-2.0.so.0.3600.3)
      by 0x3D46048157: ??? (in /usr/lib64/libglib-2.0.so.0.3600.3)
      by 0x3D46048559: g_main_loop_run (in /usr/lib64/libglib-2.0.so.0.3600.3)
      by 0x40A3B6: main (main.c:595)

11 years agomonitor: Add decoding for reading and writing current IAC LAP
Marcel Holtmann [Mon, 14 Oct 2013 21:59:55 +0000 (14:59 -0700)]
monitor: Add decoding for reading and writing current IAC LAP

11 years agoemulator: Add support for reading IAC information
Marcel Holtmann [Mon, 14 Oct 2013 21:43:58 +0000 (14:43 -0700)]
emulator: Add support for reading IAC information

11 years agotools/mgmt-tester: Add test case for scan parameters
Marcel Holtmann [Mon, 14 Oct 2013 17:12:12 +0000 (10:12 -0700)]
tools/mgmt-tester: Add test case for scan parameters

11 years agotools/mgmt-tester: Add test cases for static addresses
Marcel Holtmann [Mon, 14 Oct 2013 17:07:38 +0000 (10:07 -0700)]
tools/mgmt-tester: Add test cases for static addresses

11 years agoandroid: Start Android Bluetooth daemon
Andrei Emeltchenko [Mon, 14 Oct 2013 12:56:14 +0000 (15:56 +0300)]
android: Start Android Bluetooth daemon

Start Android Bluetooth daemon from HAL init(). Make sure
that daemon is in "running" state.

11 years agoandroid: Enable Socket interface
Andrei Emeltchenko [Fri, 11 Oct 2013 10:02:02 +0000 (13:02 +0300)]
android: Enable Socket interface

Returns socket interface, use header hal.h to avoid externs.

11 years agoandroid: Add Socket Bluetooth HAL template
Andrei Emeltchenko [Fri, 11 Oct 2013 10:02:01 +0000 (13:02 +0300)]
android: Add Socket Bluetooth HAL template

bt_sock HAL handles Bluetooth sockets for Android.

11 years agoandroid: Add Adapter Bluetooth HAL template
Andrei Emeltchenko [Fri, 11 Oct 2013 10:02:00 +0000 (13:02 +0300)]
android: Add Adapter Bluetooth HAL template

Add template for bluetooth.h Android HAL.

11 years agobuild: Add android/hal-ipc-api.txt to EXTRA_DIST
Szymon Janc [Mon, 14 Oct 2013 08:05:59 +0000 (10:05 +0200)]
build: Add android/hal-ipc-api.txt to EXTRA_DIST

11 years agoandroid: Add initial Android Bluetooth HAL protocol API doc
Szymon Janc [Mon, 14 Oct 2013 08:05:58 +0000 (10:05 +0200)]
android: Add initial Android Bluetooth HAL protocol API doc

This IPC is used to communicate Android BlueZ daemon and HAL.

Currently specified are BT HAL "bluetooth" (BT_HARDWARE_MODULE_ID)
and following profile HALs:
  "socket"    (BT_PROFILE_SOCKETS_ID)
  "hidhost"   (BT_PROFILE_HIDHOST_ID)
  "pan"       (BT_PROFILE_PAN_ID)
  "handsfree" (BT_PROFILE_HANDSFREE_ID)
  "ad2p"      (BT_PROFILE_ADVANCED_AUDIO_ID)
  "health"    (BT_PROFILE_HEALTH_ID)

11 years agogdbus: Remove not needed check for NULL DBusPendingCall
Szymon Janc [Thu, 26 Sep 2013 08:02:35 +0000 (10:02 +0200)]
gdbus: Remove not needed check for NULL DBusPendingCall

It is now checked by g_dbus_send_message_with_reply() so there is no
need to double check that in caller.

11 years agogdbus: Check for NULL DBusPendingCall in g_dbus_send_message_with_reply
Szymon Janc [Thu, 26 Sep 2013 08:02:34 +0000 (10:02 +0200)]
gdbus: Check for NULL DBusPendingCall in g_dbus_send_message_with_reply

"Warning: if the connection is disconnected or you try to send Unix file
descriptors on a connection that does not support them, the
DBusPendingCall will be set to NULL, so be careful with this."

Check this in g_dbus_send_message_with_reply so that callers don't need
to double check for NULL if g_dbus_send_message_with_reply returned
TRUE.

This also fix crash if passing FD over D-Bus is blocked e.g. by SELinux
policy.

bluetoothd[1894]: profiles/audio/avdtp.c:session_cb()
bluetoothd[1894]: profiles/audio/avdtp.c:avdtp_parse_cmd() Received
    SET_CONFIGURATION_CMD
bluetoothd[1894]: profiles/audio/a2dp.c:endpoint_setconf_ind() Source
    0x6c5000: Set_Configuration_Ind
bluetoothd[1894]: profiles/audio/avdtp.c:avdtp_ref() 0x6df360: ref=1
bluetoothd[1894]: profiles/audio/a2dp.c:setup_ref() 0x6d32b0: ref=1
process 1894: arguments to dbus_pending_call_set_notify() were incorrect,
     assertion "pending != NULL" failed in file dbus-pending-call.c line
     636.
This is normally a bug in some application using the D-Bus library.

11 years agotools/sdptool: Clarify 'add' and 'remove' commands in manual
Szymon Janc [Tue, 24 Sep 2013 07:09:08 +0000 (09:09 +0200)]
tools/sdptool: Clarify 'add' and 'remove' commands in manual

Adapters are no longer notified about external changes in SDP database.
This results in 'add' and 'remove' commands being usefull only for SDP
testing or qualification.

11 years agodoc: Fix some style issues with the command parameters
Marcel Holtmann [Mon, 14 Oct 2013 08:47:01 +0000 (01:47 -0700)]
doc: Fix some style issues with the command parameters

11 years agodoc: Add section about Set Scan Parameters command
Marcel Holtmann [Mon, 14 Oct 2013 08:20:33 +0000 (01:20 -0700)]
doc: Add section about Set Scan Parameters command

11 years agotools: Add simple test utility for L2CAP connectionless channels
Marcel Holtmann [Sun, 13 Oct 2013 20:17:19 +0000 (13:17 -0700)]
tools: Add simple test utility for L2CAP connectionless channels

11 years agotools: Print L2CAP address information of connections
Marcel Holtmann [Sun, 13 Oct 2013 14:04:24 +0000 (07:04 -0700)]
tools: Print L2CAP address information of connections

11 years agolib: Add definitions for Set Scan Parameters command
Marcel Holtmann [Fri, 11 Oct 2013 21:48:58 +0000 (14:48 -0700)]
lib: Add definitions for Set Scan Parameters command

11 years agotools/mgmt-tester: Remove unused variable
Johan Hedberg [Fri, 11 Oct 2013 19:24:49 +0000 (22:24 +0300)]
tools/mgmt-tester: Remove unused variable

11 years agotools/mgmt-tester: Update set_hs tests to require SSP to be enabled first
Johan Hedberg [Fri, 11 Oct 2013 19:22:10 +0000 (22:22 +0300)]
tools/mgmt-tester: Update set_hs tests to require SSP to be enabled first

11 years agomonitor: Add ATT Prepare Write Response decoding
Johan Hedberg [Fri, 11 Oct 2013 19:10:05 +0000 (22:10 +0300)]
monitor: Add ATT Prepare Write Response decoding

11 years agomonitor: Add ATT Prepare Write Request decoding
Johan Hedberg [Fri, 11 Oct 2013 19:07:00 +0000 (21:07 +0200)]
monitor: Add ATT Prepare Write Request decoding

11 years agomonitor: Add ATT Execute Write Request decoding
Johan Hedberg [Fri, 11 Oct 2013 19:02:31 +0000 (21:02 +0200)]
monitor: Add ATT Execute Write Request decoding

11 years agomonitor: Add ATT Read Multiple Request decoding
Johan Hedberg [Fri, 11 Oct 2013 18:50:27 +0000 (20:50 +0200)]
monitor: Add ATT Read Multiple Request decoding

11 years agoemulator: Fix AMP emulation build error
Szymon Janc [Thu, 10 Oct 2013 08:15:34 +0000 (10:15 +0200)]
emulator: Fix AMP emulation build error

This fix build with GCC 4.6.3.

  CC     emulator/amp.o
emulator/amp.c: In function ‘send_packet’:
emulator/amp.c:172:7: error: ignoring return value of ‘write’,
    declared with attribute warn_unused_result [-Werror=unused-result]
cc1: all warnings being treated as errors
make[1]: *** [emulator/amp.o] Error

11 years agomonitor: Add ATT over BR/EDR decoding support
Johan Hedberg [Fri, 11 Oct 2013 12:53:35 +0000 (14:53 +0200)]
monitor: Add ATT over BR/EDR decoding support

11 years agolib: Update company identifiers
Marcel Holtmann [Thu, 10 Oct 2013 23:10:52 +0000 (16:10 -0700)]
lib: Update company identifiers

11 years agomonitor: Decode Apple identifier and iBeacon data structures
Marcel Holtmann [Thu, 10 Oct 2013 23:08:23 +0000 (16:08 -0700)]
monitor: Decode Apple identifier and iBeacon data structures

11 years agoDon't register Device ID record on sdp server start
Szymon Janc [Thu, 10 Oct 2013 09:38:49 +0000 (11:38 +0200)]
Don't register Device ID record on sdp server start

This makes SDP code no longer depends on main_opts. DID record is now
registered from main() after sdp server was started. This is OK since
mainloop is not yet running and record will be present when first
request comes.

11 years agoavdtp: Fix minor coding style issue
Johan Hedberg [Thu, 10 Oct 2013 20:37:05 +0000 (22:37 +0200)]
avdtp: Fix minor coding style issue

11 years agoavdtp: Remove not needed forward declaration
Szymon Janc [Thu, 10 Oct 2013 08:53:41 +0000 (10:53 +0200)]
avdtp: Remove not needed forward declaration

auth_cb function is not used before definition so no need to forward
declare it.

11 years agoavdtp: Move connection_lost function to avoid forward declaration
Szymon Janc [Thu, 10 Oct 2013 08:53:40 +0000 (10:53 +0200)]
avdtp: Move connection_lost function to avoid forward declaration

11 years agoavdtp: Rename avdtp_callbacks to state_callbacks
Szymon Janc [Thu, 10 Oct 2013 08:53:39 +0000 (10:53 +0200)]
avdtp: Rename avdtp_callbacks to state_callbacks

This better describes what list contains.

11 years agoavdtp: Remove unused avdtp_stream_setup_active function
Szymon Janc [Thu, 10 Oct 2013 08:53:38 +0000 (10:53 +0200)]
avdtp: Remove unused avdtp_stream_setup_active function

It is not used anywhere and can be removed.

11 years agoavdtp: Remove unused avdtp_is_connected function
Szymon Janc [Thu, 10 Oct 2013 08:53:37 +0000 (10:53 +0200)]
avdtp: Remove unused avdtp_is_connected function

It is not used anywhere and can be removed.

11 years agoavdtp: Fix typos in errors from avdtp_strerror
Szymon Janc [Thu, 10 Oct 2013 08:53:36 +0000 (10:53 +0200)]
avdtp: Fix typos in errors from avdtp_strerror

11 years agomonitor: Fix integer overruns with EIR parsing
Johan Hedberg [Thu, 10 Oct 2013 13:51:18 +0000 (15:51 +0200)]
monitor: Fix integer overruns with EIR parsing

For tracking how much has been parsed of the EIR we must use a greater
than uint8 integer to avoid having a large (e.g. 255) field length cause
our counter to wrap around and start from zero.

11 years agomonitor: Fix zero-length field handling in print_hex_field
Johan Hedberg [Thu, 10 Oct 2013 11:49:09 +0000 (14:49 +0300)]
monitor: Fix zero-length field handling in print_hex_field

11 years agodoc: Mention that High Speed support depends on Secure Simple Pairing
Marcel Holtmann [Thu, 10 Oct 2013 11:13:07 +0000 (04:13 -0700)]
doc: Mention that High Speed support depends on Secure Simple Pairing

11 years agoemulator: Add support for AMP controller emulation
Marcel Holtmann [Wed, 9 Oct 2013 18:03:42 +0000 (11:03 -0700)]
emulator: Add support for AMP controller emulation

11 years agotools: Add test utility for AMP physical connection setup
Marcel Holtmann [Wed, 9 Oct 2013 17:50:39 +0000 (10:50 -0700)]
tools: Add test utility for AMP physical connection setup

11 years agotools/hcidump: Fix parsing for service class 0x110f
Luiz Augusto von Dentz [Wed, 9 Oct 2013 11:16:17 +0000 (14:16 +0300)]
tools/hcidump: Fix parsing for service class 0x110f

According to assigned number 0x110f is AV Remote Controller not VCP.

11 years agotools/sdptool: Fix parsing for service class 0x110f
Luiz Augusto von Dentz [Wed, 9 Oct 2013 11:11:44 +0000 (14:11 +0300)]
tools/sdptool: Fix parsing for service class 0x110f

According to assigned number 0x110f is AV Remote Controller not VCP.

11 years agoprofiles/AVRCP: Add AV Remote Controller service class id to CT
Luiz Augusto von Dentz [Wed, 9 Oct 2013 11:11:43 +0000 (14:11 +0300)]
profiles/AVRCP: Add AV Remote Controller service class id to CT

Both AV Remote and AV Remote Controller service classes are mandatory
by AVRCP CT role from 1.3 onwards. Also the assigned numbers page mention
that AV Remote must appear before AV Remote Controller:

  "The AVRCP specification v1.3 and later require that 0x110E also be
  included in the ServiceClassIDList before 0x110F for backwards
  compatibility."

11 years agolib/sdp: Replace VIDEO_CONF_SVCLASS_ID with AV_REMOTE_CONTROLLER_SVCLASS_ID
Luiz Augusto von Dentz [Wed, 9 Oct 2013 11:11:42 +0000 (14:11 +0300)]
lib/sdp: Replace VIDEO_CONF_SVCLASS_ID with AV_REMOTE_CONTROLLER_SVCLASS_ID

VCP apparently was never adopted so 0x110f was latter reused by AVRCP 1.3
controller as per current assigned numbers page:

https://www.bluetooth.org/en-us/specification/assigned-numbers/service-discovery

11 years agoobexd/MAP: Fix parsing message handles as decimal numbers
Luiz Augusto von Dentz [Wed, 9 Oct 2013 11:11:41 +0000 (14:11 +0300)]
obexd/MAP: Fix parsing message handles as decimal numbers

The spec clearly states the handles are hexadecimal:

MAP 1.2 - Page 29

  ""handle" is the message handle in hexadecimal representation with up
  to 16 digits; leading zero digits may be used so the MCE shall accept
  both handles with and without leading zeros (e.g.,"00000012345678AB"
  or "12345678AB")."

11 years agoobexd/MAP: Fix sending \0 after filler byte
Luiz Augusto von Dentz [Wed, 9 Oct 2013 11:11:40 +0000 (14:11 +0300)]
obexd/MAP: Fix sending \0 after filler byte

It is not necessary to append \0 after the filler byte (0x30), the spec
just talk about the a byte not bytes.

11 years agocore/profile: Fix MNS record version
Luiz Augusto von Dentz [Wed, 9 Oct 2013 11:11:39 +0000 (14:11 +0300)]
core/profile: Fix MNS record version

To be able to use OBEX over L2CAP the version number should be at least
0x102, in addition to that ERTM mode should be used to comply to
GOEP 2.0.

11 years agomonitor: Fix parsing of ATT Read By Type Response
Johan Hedberg [Wed, 9 Oct 2013 14:07:00 +0000 (16:07 +0200)]
monitor: Fix parsing of ATT Read By Type Response

11 years agomonitor: Allow zero-length hex fields with print_hex_field()
Johan Hedberg [Wed, 9 Oct 2013 14:06:35 +0000 (16:06 +0200)]
monitor: Allow zero-length hex fields with print_hex_field()

11 years agomonitor: Add missing EIR field length checks
Johan Hedberg [Wed, 9 Oct 2013 13:30:38 +0000 (15:30 +0200)]
monitor: Add missing EIR field length checks

11 years agomonitor: Add decoding of L2CAP connectionless channel
Marcel Holtmann [Wed, 9 Oct 2013 06:09:02 +0000 (23:09 -0700)]
monitor: Add decoding of L2CAP connectionless channel

11 years agomonitor: Add structure for L2CAP connectionless channel
Marcel Holtmann [Wed, 9 Oct 2013 06:07:56 +0000 (23:07 -0700)]
monitor: Add structure for L2CAP connectionless channel

11 years agomonitor: Add support for decoding 3D information data
Marcel Holtmann [Tue, 8 Oct 2013 21:03:03 +0000 (14:03 -0700)]
monitor: Add support for decoding 3D information data

11 years agomonitor: Add decoding for major class audio/video values
Marcel Holtmann [Tue, 8 Oct 2013 20:39:26 +0000 (13:39 -0700)]
monitor: Add decoding for major class audio/video values

11 years agolib: Add missing structure for accept physical link command
Marcel Holtmann [Tue, 8 Oct 2013 13:08:56 +0000 (06:08 -0700)]
lib: Add missing structure for accept physical link command

11 years agolib: Fix a few whitespace damages
Marcel Holtmann [Tue, 8 Oct 2013 11:12:25 +0000 (04:12 -0700)]
lib: Fix a few whitespace damages

11 years agolib: Update company identifiers
Marcel Holtmann [Tue, 8 Oct 2013 06:45:52 +0000 (23:45 -0700)]
lib: Update company identifiers

11 years agotools: Print PAL version for AMP controllers
Marcel Holtmann [Mon, 7 Oct 2013 22:33:13 +0000 (15:33 -0700)]
tools: Print PAL version for AMP controllers

11 years agolib: Add special functions for PAL version mapping
Marcel Holtmann [Mon, 7 Oct 2013 22:32:40 +0000 (15:32 -0700)]
lib: Add special functions for PAL version mapping

11 years agomonitor: Differntiate between LMP and PAL version information
Marcel Holtmann [Mon, 7 Oct 2013 21:53:38 +0000 (14:53 -0700)]
monitor: Differntiate between LMP and PAL version information

11 years agomonitor: Fix broken assoc_fragment structure value
Marcel Holtmann [Mon, 7 Oct 2013 19:47:07 +0000 (12:47 -0700)]
monitor: Fix broken assoc_fragment structure value

11 years agomonitor: Fix wrong event code for channel selected event
Marcel Holtmann [Mon, 7 Oct 2013 17:05:54 +0000 (10:05 -0700)]
monitor: Fix wrong event code for channel selected event

11 years agoobexd/session: Fix crash while disconnecting
Luiz Augusto von Dentz [Mon, 7 Oct 2013 15:44:44 +0000 (18:44 +0300)]
obexd/session: Fix crash while disconnecting

Requests need to be cancelled when obc_session_shutdown is called
otherwise they can trigger the callback with invalid/freed data as in
the following backtrace:
Invalid read of size 8
   at 0x426684: setpath_cb (session.c:998)
   by 0x412AEB: handle_response (gobex.c:949)
   by 0x413010: incoming_data (gobex.c:1192)
   by 0x3D46047E05: g_main_context_dispatch (in /usr/lib64/libglib-2.0.so.0.3600.3)
   by 0x3D46048157: ??? (in /usr/lib64/libglib-2.0.so.0.3600.3)
   by 0x3D46048559: g_main_loop_run (in /usr/lib64/libglib-2.0.so.0.3600.3)
   by 0x40D59C: main (main.c:319)
 Address 0x571f598 is 40 bytes inside a block of size 56 free'd
   at 0x4A074C4: free (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
   by 0x3D4604D9AE: g_free (in /usr/lib64/libglib-2.0.so.0.3600.3)
   by 0x426EA9: obc_session_shutdown (session.c:555)
   by 0x4254B4: remove_session (manager.c:62)
   by 0x43DC53: process_message.isra.5 (object.c:259)
   by 0x3D4981CE85: ??? (in /usr/lib64/libdbus-1.so.3.7.4)
   by 0x3D4980FA30: dbus_connection_dispatch (in /usr/lib64/libdbus-1.so.3.7.4)
   by 0x43A9D7: message_dispatch (mainloop.c:76)
   by 0x3D46048962: ??? (in /usr/lib64/libglib-2.0.so.0.3600.3)
   by 0x3D46047E05: g_main_context_dispatch (in /usr/lib64/libglib-2.0.so.0.3600.3)
   by 0x3D46048157: ??? (in /usr/lib64/libglib-2.0.so.0.3600.3)
   by 0x3D46048559: g_main_loop_run (in /usr/lib64/libglib-2.0.so.0.3600.3)

11 years agomonitor: Fix typo in command constant
Marcel Holtmann [Mon, 7 Oct 2013 12:26:26 +0000 (05:26 -0700)]
monitor: Fix typo in command constant

11 years agomonitor: Add support for decoding location data commands
Marcel Holtmann [Mon, 7 Oct 2013 12:05:05 +0000 (05:05 -0700)]
monitor: Add support for decoding location data commands

11 years agoBluetooth: Add definitions for location data commands
Marcel Holtmann [Mon, 7 Oct 2013 11:51:04 +0000 (04:51 -0700)]
Bluetooth: Add definitions for location data commands

11 years agomonitor: Add support for decoding flow control mode commands
Marcel Holtmann [Mon, 7 Oct 2013 11:39:37 +0000 (04:39 -0700)]
monitor: Add support for decoding flow control mode commands

11 years agoBluetooth: Add definitions for flow control mode commands
Marcel Holtmann [Mon, 7 Oct 2013 11:39:14 +0000 (04:39 -0700)]
Bluetooth: Add definitions for flow control mode commands

11 years agotools: Fix hciconfig device information printout for AMP controllers
Marcel Holtmann [Mon, 7 Oct 2013 10:33:29 +0000 (03:33 -0700)]
tools: Fix hciconfig device information printout for AMP controllers

11 years agomonitor: Fix flow specification modify complete event name
Marcel Holtmann [Mon, 7 Oct 2013 10:05:36 +0000 (03:05 -0700)]
monitor: Fix flow specification modify complete event name

11 years agomonitor: Fix physical link disconnection complete event name
Marcel Holtmann [Mon, 7 Oct 2013 09:23:04 +0000 (02:23 -0700)]
monitor: Fix physical link disconnection complete event name

11 years agotools/l2cap-tester: Fix closing server sockets in time
Johan Hedberg [Sun, 6 Oct 2013 15:38:17 +0000 (18:38 +0300)]
tools/l2cap-tester: Fix closing server sockets in time

We should use the teardown function instead of the destroy function for
closing server sockets since otherwise tests may conflict with each
other.

11 years agoemulator: Add support for read local amp assoc command
Marcel Holtmann [Sat, 5 Oct 2013 17:31:14 +0000 (10:31 -0700)]
emulator: Add support for read local amp assoc command

11 years agoemulator: Add some extra long option strings
Marcel Holtmann [Sat, 5 Oct 2013 16:52:10 +0000 (09:52 -0700)]
emulator: Add some extra long option strings

11 years agoemulator: Make unix server sockets optional
Marcel Holtmann [Sat, 5 Oct 2013 15:27:50 +0000 (08:27 -0700)]
emulator: Make unix server sockets optional

11 years agoemulator: Exit with failure when Virtual HCI setup fails
Marcel Holtmann [Sat, 5 Oct 2013 15:19:58 +0000 (08:19 -0700)]
emulator: Exit with failure when Virtual HCI setup fails

11 years agoemulator: Add command line option for AMP controllers
Marcel Holtmann [Sat, 5 Oct 2013 15:19:04 +0000 (08:19 -0700)]
emulator: Add command line option for AMP controllers

11 years agoemulator: Add special Virtual HCI setup command
Marcel Holtmann [Sat, 5 Oct 2013 15:15:41 +0000 (08:15 -0700)]
emulator: Add special Virtual HCI setup command

11 years agomonitor: Use special hash and randomizer print functions
Marcel Holtmann [Sat, 5 Oct 2013 13:28:39 +0000 (06:28 -0700)]
monitor: Use special hash and randomizer print functions

11 years agomonitor: Mark hash and randomizer as P-192 versions
Marcel Holtmann [Sat, 5 Oct 2013 13:26:33 +0000 (06:26 -0700)]
monitor: Mark hash and randomizer as P-192 versions

11 years agomonitor: Update EIR and AD information elements
Marcel Holtmann [Sat, 5 Oct 2013 13:20:42 +0000 (06:20 -0700)]
monitor: Update EIR and AD information elements

11 years agomonitor: Fix EIR Data Type / AD Type assigned numbers
João Paulo Rechi Vita [Tue, 1 Oct 2013 23:04:37 +0000 (20:04 -0300)]
monitor: Fix EIR Data Type / AD Type assigned numbers

The values for Public Target Address and Random Target Address were
swapped. This information can be verified in the Bluetooth SIG Assigned
numbers webpage:

https://www.bluetooth.org/en-us/specification/assigned-numbers/generic-access-profile