OSDN Git Service

android-x86/external-bluetooth-bluez.git
12 years agoproximity: Remove unused variable
Anderson Lizardo [Wed, 8 Feb 2012 16:12:50 +0000 (12:12 -0400)]
proximity: Remove unused variable

12 years agoattrib-server: Fix bad error message
Santiago Carot-Nemesio [Tue, 7 Feb 2012 13:37:58 +0000 (14:37 +0100)]
attrib-server: Fix bad error message

12 years agoattrib-server: Fix memory leak attaching attribute channels
Santiago Carot-Nemesio [Tue, 7 Feb 2012 13:26:44 +0000 (14:26 +0100)]
attrib-server: Fix memory leak attaching attribute channels

Channel is not being released when the channel is attached over
an uninitialized GATT server.

12 years agonetwork: Add retries for BNEP connection setup
Ilia Kolomisnky [Sun, 5 Feb 2012 14:58:58 +0000 (16:58 +0200)]
network: Add retries for BNEP connection setup

According to BNEP spec. v1.0, section 2.6.3, the
BNEP_SETUP_CONNECTION_REQUEST_MSG should be retransmitted if the response
is not received for a period between 1 to 30 sec. Current implementation
uses SO_RCVTIMEO socket option to sense reply time-out, which is
incorrect because it does not have effect on g_io_add_watch monitored
descriptors. This patch allows passing of TP/BNEP/CTRL/BV-02-C
certification test.

12 years agosdptool: Add GoepL2capPsm decoding support
Luiz Augusto von Dentz [Mon, 6 Feb 2012 13:19:01 +0000 (15:19 +0200)]
sdptool: Add GoepL2capPsm decoding support

12 years agomgmt-api: Remove bogus Key_Type field from LTK messages
Johan Hedberg [Mon, 6 Feb 2012 20:54:14 +0000 (22:54 +0200)]
mgmt-api: Remove bogus Key_Type field from LTK messages

12 years agomgmt-api: Update to latest plans
Johan Hedberg [Mon, 6 Feb 2012 10:03:11 +0000 (12:03 +0200)]
mgmt-api: Update to latest plans

- "Remove Keys" renamed to "Unpair Device" and moved to a more
  appropriate location (after the other pairing commands)
- "Device Unpaired" event added
- Address_Type parameters added the relevant commands and events
- Address_Type vs Key_Type distinction made clearer
- Bogus '0' removed from opcodes

12 years agodevice: Fix doing SDP discovery for LE devices
Vinicius Costa Gomes [Fri, 3 Feb 2012 23:06:45 +0000 (20:06 -0300)]
device: Fix doing SDP discovery for LE devices

If ReverseServiceDiscovery is enabled and we are connected to a LE
device, we should do a Primary Service Discovery, not a SDP discovery
(which doesn't even make sense).

12 years agobtmgmt: Add support for BR/EDR-only and LE-only discovery
Johan Hedberg [Fri, 3 Feb 2012 22:28:08 +0000 (00:28 +0200)]
btmgmt: Add support for BR/EDR-only and LE-only discovery

12 years agoproximity: make reporter work per-adapter
Arik Nemtsov [Fri, 3 Feb 2012 21:34:04 +0000 (23:34 +0200)]
proximity: make reporter work per-adapter

Register an adapter driver for reporter and add the adapter argument in
appropriate places.

12 years agogatt-example: Fix g_assert checks when an uint16_t value overflows
Santiago Carot-Nemesio [Wed, 25 Jan 2012 13:12:41 +0000 (14:12 +0100)]
gatt-example: Fix g_assert checks when an uint16_t value overflows

g_assert statements are buggy when the last handler available
overflows the uint16_t range. This check is currently used to
evaluate if the number of requested attributes for a sevice
match with the number of attributes added in the data base.

12 years agoattrib-server: Allocate 128-bits UUIDs using highest available handlers
Santiago Carot-Nemesio [Wed, 25 Jan 2012 13:12:40 +0000 (14:12 +0100)]
attrib-server: Allocate 128-bits UUIDs using highest available handlers

128-uuids services are grouped at the end of the handlers database list.
This group grows from the highest handlers toward lowers handlers
until the whole range is used or the last 16 bit-uuid service is reached.

12 years agoglib-compat: Add g_list_free_full to deal with issues in old GLib versions
Santiago Carot-Nemesio [Wed, 25 Jan 2012 13:12:39 +0000 (14:12 +0100)]
glib-compat: Add g_list_free_full to deal with issues in old GLib versions

12 years agoattrib-server: Set database uuids as a double linked list
Santiago Carot-Nemesio [Wed, 25 Jan 2012 13:12:38 +0000 (14:12 +0100)]
attrib-server: Set database uuids as a double linked list

16-bit UUIDs are allocated at the begining of the database list and
128-bit ones are grouped at the end. Replacing the list type with a double
linked one enables us to look for available handles in the 128-bit group
efficiently.

12 years agoattrib-server: Allocate 16-bits UUIDS at the begining of the list
Santiago Carot-Nemesio [Wed, 25 Jan 2012 13:12:37 +0000 (14:12 +0100)]
attrib-server: Allocate 16-bits UUIDS at the begining of the list

12 years agogatt-service: Provide service uuid in attrib_db_find_avail function
Santiago Carot-Nemesio [Wed, 25 Jan 2012 13:12:36 +0000 (14:12 +0100)]
gatt-service: Provide service uuid in attrib_db_find_avail function

We need to provide the service uuid because of GATT server should group
16-bit uuid services together and 128-bit uuid services together,
(Bluetooth 4.0, Vol 3, Part G, 3.1).

12 years agogatt-service: Move va_end just after processing the argument list
Santiago Carot-Nemesio [Wed, 25 Jan 2012 13:12:35 +0000 (14:12 +0100)]
gatt-service: Move va_end just after processing the argument list

12 years agogatt-service: Add support for 128-bit Bluetooth UUIDs
Santiago Carot-Nemesio [Wed, 25 Jan 2012 13:12:34 +0000 (14:12 +0100)]
gatt-service: Add support for 128-bit Bluetooth UUIDs

UUID services in GATT should be either 16-bit or 128-bit. Current
GATT interface does not allow to provide 128-bit ones. This patch
enables plugins to register services using 128-bit UUIDs.

12 years agoFix GLib assertion failure in media.c get_setting()
Szymon Janc [Thu, 2 Feb 2012 22:21:19 +0000 (23:21 +0100)]
Fix GLib assertion failure in media.c get_setting()

If get_setting is called before set_setting, mp->settings would be
NULL resulting in GLib assertion. Hashmap is now allocated in
media_player_create instead of on-demand allocation in set_setting.

external/bluetooth/bluez/audio/media.c:get_setting() Equalizer
CRITICAL **: g_hash_table_lookup: assertion `hash_table != NULL' failed

12 years agobtio: Add BtIOMode enum to be used with BT_IO_OPT_MODE
Luiz Augusto von Dentz [Thu, 2 Feb 2012 21:57:05 +0000 (13:57 -0800)]
btio: Add BtIOMode enum to be used with BT_IO_OPT_MODE

12 years agocore: Add provision for terminating an ATT connection
Smriti Gupta [Fri, 20 Jan 2012 11:54:26 +0000 (17:24 +0530)]
core: Add provision for terminating an ATT connection

In order to terminate any existing ATT connection from the client side
existing function device_request_disconnect has been updated.

12 years agodevice: Fix segmentation fault removing devices
Santiago Carot-Nemesio [Tue, 31 Jan 2012 15:59:05 +0000 (16:59 +0100)]
device: Fix segmentation fault removing devices

There is an unbalanced control regarding to the GATT channel and its
attachid, we have to to update the attach id value by setting it to
zero whenever we detach a GATT channel.

12 years agolib: Add stub for A2MP
Johan Hedberg [Thu, 2 Feb 2012 17:48:55 +0000 (09:48 -0800)]
lib: Add stub for A2MP

12 years agosimple-agent: Ensure passkeys are padded to 6 digits
Johan Hedberg [Thu, 2 Feb 2012 17:14:41 +0000 (19:14 +0200)]
simple-agent: Ensure passkeys are padded to 6 digits

12 years agosimple-agent: Update default capability to KeyboardDisplay
Johan Hedberg [Thu, 2 Feb 2012 17:11:38 +0000 (19:11 +0200)]
simple-agent: Update default capability to KeyboardDisplay

Now that both user space and kernel mgmt code supports this new
capability it makes sense to set it as the default for simple-agent.

12 years agomgmtops: Implement mgmt_cancel_bonding
Johan Hedberg [Thu, 2 Feb 2012 01:58:11 +0000 (03:58 +0200)]
mgmtops: Implement mgmt_cancel_bonding

12 years agomgmt: Update event opcodes to latest API spec
Johan Hedberg [Wed, 1 Feb 2012 22:33:49 +0000 (14:33 -0800)]
mgmt: Update event opcodes to latest API spec

12 years agomgmt-api: Move New Long Term Key Event to a more logical place
Johan Hedberg [Wed, 1 Feb 2012 22:31:59 +0000 (14:31 -0800)]
mgmt-api: Move New Long Term Key Event to a more logical place

12 years agomgmt: Update commands to latest API
Johan Hedberg [Wed, 1 Feb 2012 22:26:16 +0000 (14:26 -0800)]
mgmt: Update commands to latest API

12 years agomgmt-api: Remove unused/implemented commands
Johan Hedberg [Wed, 1 Feb 2012 21:15:26 +0000 (23:15 +0200)]
mgmt-api: Remove unused/implemented commands

12 years agomgmt-api: Move Load Long Term Keys Command to a more logical place
Johan Hedberg [Wed, 1 Feb 2012 21:14:28 +0000 (23:14 +0200)]
mgmt-api: Move Load Long Term Keys Command to a more logical place

12 years agomgmt-api: Add missing cancel pairing command
Johan Hedberg [Wed, 1 Feb 2012 21:12:22 +0000 (23:12 +0200)]
mgmt-api: Add missing cancel pairing command

12 years agobtio: Add L2ERTM type
Luiz Augusto von Dentz [Wed, 1 Feb 2012 01:25:34 +0000 (17:25 -0800)]
btio: Add L2ERTM type

L2ERTM type uses L2CAP socket in SOCK_STREAM instead of SOCK_SEQPACKET

12 years agoadapter_ops: Add address type information to the pair_device command
Vinicius Costa Gomes [Tue, 31 Jan 2012 17:10:53 +0000 (14:10 -0300)]
adapter_ops: Add address type information to the pair_device command

Now that we have address type information we have to inform it
when pairing with an device.

12 years agodevice: Fix not using the "bonded" property for new bondings
Vinicius Costa Gomes [Tue, 31 Jan 2012 17:10:52 +0000 (14:10 -0300)]
device: Fix not using the "bonded" property for new bondings

When checking if a device was already bonded, we should
use the paired property instead of reading the link key
from storage. This method will work for LE links, also.

12 years agodevice: Fix not using the same way for pairing LE devices
Vinicius Costa Gomes [Tue, 31 Jan 2012 17:10:51 +0000 (14:10 -0300)]
device: Fix not using the same way for pairing LE devices

Now that both backends (hciops and mgmtops) are capable
of pairing LE devices, we don't have to force the procedure.

12 years agodevice: Fix doing SDP discovery for LE devices after bonding is complete
Vinicius Costa Gomes [Tue, 31 Jan 2012 17:10:50 +0000 (14:10 -0300)]
device: Fix doing SDP discovery for LE devices after bonding is complete

12 years agodevice: Fix setting the device as bonded when restoring from the LTK
Vinicius Costa Gomes [Tue, 31 Jan 2012 17:10:49 +0000 (14:10 -0300)]
device: Fix setting the device as bonded when restoring from the LTK

12 years agoevent: Add type information to the mgmt "Device Connected" event
Vinicius Costa Gomes [Tue, 31 Jan 2012 17:10:48 +0000 (14:10 -0300)]
event: Add type information to the mgmt "Device Connected" event

In the case of incomming connections we have to know the type of
the device that connected to us.

Through hciops we have the LE Connection Complete event, that
information was lost when Management interface was being used.

12 years agoTODO: Remove already implemented mgmt features
Johan Hedberg [Fri, 27 Jan 2012 18:16:29 +0000 (20:16 +0200)]
TODO: Remove already implemented mgmt features

12 years agoattrib-server: Fix missing NULL check for adapter_find_device
Johan Hedberg [Tue, 31 Jan 2012 01:43:04 +0000 (03:43 +0200)]
attrib-server: Fix missing NULL check for adapter_find_device

12 years agoaudio: Fix disabling local A2DP endpoints when UNIX socket is disabled
Luiz Augusto von Dentz [Thu, 26 Jan 2012 21:39:02 +0000 (23:39 +0200)]
audio: Fix disabling local A2DP endpoints when UNIX socket is disabled

Local endpoints can only be used when UNIX socket API is available.

12 years agobtio: Fix users to not expect a default security level
Vinicius Costa Gomes [Tue, 24 Jan 2012 13:57:23 +0000 (10:57 -0300)]
btio: Fix users to not expect a default security level

The users of btio should not expect that btio will set the security
level to medium if it wasn't specified. Now, all the users specfify
the security level needed.

12 years agobtio: Remove the default security level from btio
Vinicius Costa Gomes [Tue, 24 Jan 2012 13:57:22 +0000 (10:57 -0300)]
btio: Remove the default security level from btio

The default value of sec_level when setting *any* option
using bt_io_set() was BT_SECURITY_MEDIUM. This was causing
the security procedure being started in some situations that
it should not.

12 years agotest: Add support for btiotest to returning the key size
Vinicius Costa Gomes [Tue, 24 Jan 2012 13:57:21 +0000 (10:57 -0300)]
test: Add support for btiotest to returning the key size

12 years agotest: Add support for passing the CID to btiotest
Vinicius Costa Gomes [Tue, 24 Jan 2012 13:57:20 +0000 (10:57 -0300)]
test: Add support for passing the CID to btiotest

If we want to test LE connections using btiotest we need to be
able to inform btio the Channel ID that we want to connect to, so
the kernel is able to learn that we want to establish a LE connection.

12 years agobtio: Add support for getting the Encryption Key Size via btio
Vinicius Costa Gomes [Tue, 24 Jan 2012 13:57:19 +0000 (10:57 -0300)]
btio: Add support for getting the Encryption Key Size via btio

Some profiles specify some restriction depending on the length
of the key used to encrypt the link, this adds an way to retrieve
that value from the kernel.

12 years agolib: Add Key Size information to the security information
Vinicius Costa Gomes [Tue, 24 Jan 2012 13:57:18 +0000 (10:57 -0300)]
lib: Add Key Size information to the security information

Since some time the kernel has the capability to return the length of
the key that was used to encrypt the link.

This patch exposes that field to userspace so more applications can take
decisions based on this information.

12 years agohciops: Fix memory leak when loading keys
Vinicius Costa Gomes [Tue, 24 Jan 2012 00:21:51 +0000 (21:21 -0300)]
hciops: Fix memory leak when loading keys

If we need a copy of those keys we should copy them.

12 years agoRemove the SMP Long Term Key when the device is removed
Vinicius Costa Gomes [Wed, 18 Jan 2012 23:13:32 +0000 (20:13 -0300)]
Remove the SMP Long Term Key when the device is removed

12 years agoUse the helper function to convert a string to a binary buffer
Vinicius Costa Gomes [Wed, 18 Jan 2012 23:13:30 +0000 (20:13 -0300)]
Use the helper function to convert a string to a binary buffer

When loading Link Keys from storage we are able to re-use the function
that was introduced earlier for the LTK case.

12 years agoAdd support for creating devices from the stored LTK's
Vinicius Costa Gomes [Wed, 18 Jan 2012 23:13:29 +0000 (20:13 -0300)]
Add support for creating devices from the stored LTK's

12 years agoproximity-api: Add Link Loss Alert for Proximity Reporter API
Claudio Takahasi [Thu, 19 Jan 2012 18:38:22 +0000 (15:38 -0300)]
proximity-api: Add Link Loss Alert for Proximity Reporter API

PropertyChanged signal for LinkLossAlertLevel property is emitted when a
given remote device writes a new value for the Alert Level
characteristic in the local Link Loss service. Each platform is free to
define the actions for the detected signal.

12 years agoproximity-api: Add Proximity Reporter API
Claudio Takahasi [Thu, 19 Jan 2012 18:36:59 +0000 (15:36 -0300)]
proximity-api: Add Proximity Reporter API

Adds API for Immediate Alert Service(IAS) abstraction. IAS is used
by Proximity Monitors and Find Me Locators to notify the user that
reporter/target has been found. This new interface combines Proximity
Reporter and Find Me Target in the same API providing the flexibility
to implement external applications to control alerts(including per
device alerts).

This abstraction allows the development of platform specific
applications to control Immediate Alert coming from Proximity Monitor
and Find Me Locator. This provides flexibility to define different level
and tone for each device. Use case: watch finding a mobile phone.

12 years agoRemove dead code from device_create_bonding
Szymon Janc [Fri, 20 Jan 2012 15:26:27 +0000 (16:26 +0100)]
Remove dead code from device_create_bonding

bonding_request_new always return valid pointer so there is not need
to check for NULL as this will never happen.

12 years agoRemove dead code from bonding_request_new
Szymon Janc [Fri, 20 Jan 2012 15:26:26 +0000 (16:26 +0100)]
Remove dead code from bonding_request_new

agent_create always return valid pointer so there is not need to check
for NULL as this will never happen.

12 years agomgmt-api: Add information about endianness
Szymon Janc [Thu, 19 Jan 2012 09:52:30 +0000 (10:52 +0100)]
mgmt-api: Add information about endianness

Management interface use little-endian byte order and this should be
clearly stated in documentation.

12 years agoAdd support for sending the Load Long Term Keys commands
Vinicius Costa Gomes [Tue, 17 Jan 2012 23:28:47 +0000 (20:28 -0300)]
Add support for sending the Load Long Term Keys commands

Also this adds another method to the adapter_ops method table,
this method allows LTKs to be loaded to the kernel.

12 years agoAdd support for handling the New LTK mgmt event
Vinicius Costa Gomes [Tue, 17 Jan 2012 23:28:46 +0000 (20:28 -0300)]
Add support for handling the New LTK mgmt event

This event would cause this key to be permanently stored.

12 years agoAdd support for storing a LTK when it enters bluetoothd
Vinicius Costa Gomes [Tue, 17 Jan 2012 23:28:45 +0000 (20:28 -0300)]
Add support for storing a LTK when it enters bluetoothd

12 years agoFix using "magic" values for the key types
Vinicius Costa Gomes [Tue, 17 Jan 2012 23:28:44 +0000 (20:28 -0300)]
Fix using "magic" values for the key types

12 years agoAdd macros for the possible link key types
Vinicius Costa Gomes [Tue, 17 Jan 2012 23:28:43 +0000 (20:28 -0300)]
Add macros for the possible link key types

12 years agoAdd storage functions to handle SMP keys
Vinicius Costa Gomes [Tue, 17 Jan 2012 23:28:42 +0000 (20:28 -0300)]
Add storage functions to handle SMP keys

For now, only the Long Term Key (LTK) is stored.

12 years agoAdd messages to the mgmt interface to handle SMP key storage
Vinicius Costa Gomes [Wed, 18 Jan 2012 17:12:31 +0000 (14:12 -0300)]
Add messages to the mgmt interface to handle SMP key storage

The SMP keys are to be communicated to/from userspace using these
messages.

12 years agobtmgmt: Fix format string specifier
Johan Hedberg [Wed, 18 Jan 2012 12:21:46 +0000 (14:21 +0200)]
btmgmt: Fix format string specifier

12 years agoAdd KeyboardDisplay IO Capability
Hemant Gupta [Mon, 16 Jan 2012 08:06:42 +0000 (13:36 +0530)]
Add KeyboardDisplay IO Capability

This patch adds suppport for KeyboardDisplay IO capability in BlueZ.
It is ensured that the new capability is set only if management
interface is being used. For hciops Keyboarddisplay capability is
mapped to DisplayYesNo.

12 years agomgmt-api: Update the commands for exchanging LTK's
Vinicius Costa Gomes [Tue, 17 Jan 2012 23:28:40 +0000 (20:28 -0300)]
mgmt-api: Update the commands for exchanging LTK's

For restoring the device from storage we need to have the Address type
of the device, the LTK is a good place for this.

In some cases, we may be notified of keys that were generated in the
Host, that key key would be used when the Host is the slave role in
a later connection, we should be able to differentiate this type of
key because it doesn't mean that we have a bonding with the Remote
Device.

12 years agomgmt: Update mgmt_ev_device_found to match latest API
Johan Hedberg [Wed, 18 Jan 2012 11:27:44 +0000 (13:27 +0200)]
mgmt: Update mgmt_ev_device_found to match latest API

12 years agostorage: Add variable-length EIR support to write_remote_eir
Johan Hedberg [Wed, 18 Jan 2012 11:27:16 +0000 (13:27 +0200)]
storage: Add variable-length EIR support to write_remote_eir

12 years agohciops: Encode class of device data into EIR
Johan Hedberg [Tue, 17 Jan 2012 23:27:20 +0000 (01:27 +0200)]
hciops: Encode class of device data into EIR

12 years agoeir: Add eir_length() function
Johan Hedberg [Tue, 17 Jan 2012 23:18:16 +0000 (01:18 +0200)]
eir: Add eir_length() function

12 years agoeir: Add eir_append_data function
Johan Hedberg [Tue, 17 Jan 2012 20:06:27 +0000 (22:06 +0200)]
eir: Add eir_append_data function

12 years agoeir: Rename eir_has_complete_name to eir_has_data_type
Johan Hedberg [Tue, 17 Jan 2012 20:04:02 +0000 (22:04 +0200)]
eir: Rename eir_has_complete_name to eir_has_data_type

12 years agoeir: Move EIR data type defines to eir.h
Johan Hedberg [Tue, 17 Jan 2012 20:02:03 +0000 (22:02 +0200)]
eir: Move EIR data type defines to eir.h

12 years agoFix not showing name if first EIR has no name info
Anderson Lizardo [Tue, 17 Jan 2012 16:18:02 +0000 (12:18 -0400)]
Fix not showing name if first EIR has no name info

Some devices may not advertise their name right on the first EIR data
sent (e.g. LE devices where name is set on either advertises or scan
responses, but not both). Given that the "found devices" cache does not
refresh the name on each EIR received, the UI may never show the name
during a discovery session.

This fix improves the Discovery UI by showing names immediately as they
are received. This works by emitting DeviceFound signals when the name
is received, even if RSSI stays the same.

Further discovery sessions will use the stored complete name, as usual.

12 years agomgmt: Remove ev_remote name and update event codes
Johan Hedberg [Tue, 17 Jan 2012 19:39:55 +0000 (21:39 +0200)]
mgmt: Remove ev_remote name and update event codes

12 years agomgmtops: Add eir_len to device_connected debug message
Johan Hedberg [Tue, 17 Jan 2012 19:39:10 +0000 (21:39 +0200)]
mgmtops: Add eir_len to device_connected debug message

12 years agobtmgmt: Fix connected event length check
Johan Hedberg [Tue, 17 Jan 2012 19:37:55 +0000 (21:37 +0200)]
btmgmt: Fix connected event length check

12 years agobtmgmt: Update event table
Johan Hedberg [Tue, 17 Jan 2012 19:37:23 +0000 (21:37 +0200)]
btmgmt: Update event table

12 years agomgmt: Update ev_device_connected implementation to match API
Johan Hedberg [Tue, 17 Jan 2012 15:18:41 +0000 (17:18 +0200)]
mgmt: Update ev_device_connected implementation to match API

12 years agoeir: Simplify parsing with clear helper variables
Johan Hedberg [Tue, 17 Jan 2012 15:17:30 +0000 (17:17 +0200)]
eir: Simplify parsing with clear helper variables

12 years agoeir: Add Class Of Device parsing
Johan Hedberg [Tue, 17 Jan 2012 15:09:15 +0000 (17:09 +0200)]
eir: Add Class Of Device parsing

12 years agobtio: Remove support for hciX source addresses
Marcel Holtmann [Tue, 17 Jan 2012 10:47:59 +0000 (11:47 +0100)]
btio: Remove support for hciX source addresses

12 years agomgmt-api: Use 2 octets instead of 1 for EIR data length
Johan Hedberg [Mon, 16 Jan 2012 09:48:28 +0000 (11:48 +0200)]
mgmt-api: Use 2 octets instead of 1 for EIR data length

This allows for future extensibility.

12 years agomgmt-api: Use EIR encoding wherever possible
Johan Hedberg [Sun, 15 Jan 2012 21:36:18 +0000 (23:36 +0200)]
mgmt-api: Use EIR encoding wherever possible

We can encode the remotee name and class to the EIR data format both in
device_found and device_connected events.

12 years agomgmt-api: Update to latest plans
Johan Hedberg [Fri, 13 Jan 2012 11:59:49 +0000 (13:59 +0200)]
mgmt-api: Update to latest plans

- Remove the remote_name event and add the name to the device_connected
event (since we always refresh the name at that point anyway).

- Add Class of Device to device_connected since that's the only point
where we get it when a previously unknown device connects to us for the
first time.

- Add a Flags field to device_found to accommodate for legacy pairing
information (which we get from the remote host features HCI event) and
merge the only other existing boolean parameter (confirm_name) into this
Flags field.

12 years agoRelease 4.98
Marcel Holtmann [Fri, 13 Jan 2012 03:03:08 +0000 (04:03 +0100)]
Release 4.98

12 years agoeir: Fix modifying field_len when parsing
Johan Hedberg [Fri, 13 Jan 2012 00:03:48 +0000 (02:03 +0200)]
eir: Fix modifying field_len when parsing

The field_len variable shouldn't be touched for the over-all parsing
state to remain consistent and so a helper variable (name_len) is needed
after all.

12 years agoeir: Fix minor whitespace issue
Johan Hedberg [Thu, 12 Jan 2012 23:19:29 +0000 (01:19 +0200)]
eir: Fix minor whitespace issue

12 years agoeir: Remove unnecessary name_len variable
Johan Hedberg [Thu, 12 Jan 2012 23:16:08 +0000 (01:16 +0200)]
eir: Remove unnecessary name_len variable

12 years agoeir: Pass explicit length to g_utf8_validate
Johan Hedberg [Thu, 12 Jan 2012 23:08:18 +0000 (01:08 +0200)]
eir: Pass explicit length to g_utf8_validate

This way we avoid g_utf8_validate having to do it's own strlen work.

12 years agoproximity: Fix Alert Level characteristic
Anderson Lizardo [Thu, 12 Jan 2012 20:56:53 +0000 (16:56 -0400)]
proximity: Fix Alert Level characteristic

According to PXP IAS specification (Table 3.2), the Alert Level
characteristic property has only "Write without response" as mandatory
and the rest is excluded.

12 years agoAdd missing "Legacy" property for LE devices
Anderson Lizardo [Thu, 12 Jan 2012 18:59:41 +0000 (14:59 -0400)]
Add missing "Legacy" property for LE devices

Some UIs may assume that a device lacking the Legacy property is
pre 2.1. To be more consistent with BR/EDR devices, always set Legacy
property explicitly to False. This makes these UIs not ask for a PIN
code when doing Just Works pairing for LE devices.

12 years agoFix EIR name parsing
Bruna Moreira [Thu, 12 Jan 2012 18:33:37 +0000 (14:33 -0400)]
Fix EIR name parsing

Some vendors put a NUL byte terminator on EIR name field. If that is the
case, use -1 as string length so g_utf8_validade() can parse it
properly.

12 years agoheadset: Fix unknown command error response
Syam Sidhardhan [Thu, 12 Jan 2012 15:15:01 +0000 (20:45 +0530)]
headset: Fix unknown command error response

If HF has already requested for the Extended Error result code
reporting, then send the same in certain failure cases. Earlier in this
case we were sending normal error.

12 years agol2test: Add option 'K' to set delay before receiving
Szymon Janc [Thu, 5 Jan 2012 09:23:39 +0000 (10:23 +0100)]
l2test: Add option 'K' to set delay before receiving

12 years agol2test: Add option 'H' to set socket receive buffer size
Szymon Janc [Thu, 5 Jan 2012 09:23:38 +0000 (10:23 +0100)]
l2test: Add option 'H' to set socket receive buffer size

Size is set using SO_RCVBUF, see man 7 socket for more details.

12 years agoAdd missing options to bootstrap-configure
Anderson Lizardo [Fri, 30 Dec 2011 19:26:11 +0000 (15:26 -0400)]
Add missing options to bootstrap-configure

With these options, all BlueZ C files are compiled with
"./bootstrap-configure". The only exception is --enable-hal, which
conflicts with the "formfactor" plugin.

12 years agoRemove unused/broken "echo" RFCOMM plugin
Anderson Lizardo [Fri, 30 Dec 2011 19:26:09 +0000 (15:26 -0400)]
Remove unused/broken "echo" RFCOMM plugin

It was disabled for quite some time (since 2009), and does not even
compile anymore if enabled:

plugins/echo.c: In function 'session_event':
plugins/echo.c:53: error: implicit declaration of function
'g_io_channel_read'
plugins/echo.c:57: error: implicit declaration of function
'g_io_channel_write'

12 years agoRemove PulseAudio plugin leftover
Anderson Lizardo [Fri, 30 Dec 2011 19:26:08 +0000 (15:26 -0400)]
Remove PulseAudio plugin leftover

The .c file and the configure check were not being used anywhere.