OSDN Git Service
Mikel Astiz [Fri, 4 May 2012 13:14:37 +0000 (15:14 +0200)]
media: Support multiple transports per endpoint
Several transports may exist for each endpoint, for example if several
HFGW are connected. This should be exposed to the endpoint as one
transport each.
Mikel Astiz [Fri, 4 May 2012 13:14:36 +0000 (15:14 +0200)]
audio: Add multiple device search to manager
This method is useful to search for more than one device fulfulling
certain criteria.
Mikel Astiz [Fri, 4 May 2012 13:14:35 +0000 (15:14 +0200)]
audio: Fix gateway state check
Gateway should be considered active also if connecting or playing.
This could for example lead to manager_find_device() not returning a
device that is connecting, and thus the corresponding endpoint would
never be created in the Media API.
Luiz Augusto von Dentz [Thu, 3 May 2012 14:41:23 +0000 (17:41 +0300)]
SAP: Fix not unregistering dummy interface on exit
Dummy interface is registered on plugin init and is never unregistered
Anderson Lizardo [Fri, 27 Apr 2012 14:57:02 +0000 (10:57 -0400)]
mgmtops: Fix wrong parameter order for btd_event_ltk_notify()
The "master" parameter was in the wrong place.
Jaganath Kanakkassery [Wed, 2 May 2012 11:36:30 +0000 (17:06 +0530)]
audio: Reset hfp and hs handle before connection
When bluez initiates headset connection hfp and hs handle is saved
each time when initiating connection. So at some point if hf service
is removed in remote headset then bluez connects to hs service. But
because of previously stored hfp handle bluez thinks that connection
made to hs service is hfp connection and waits for at commands.
Eventually bluez connection state will be incorrectly set.
Bastien Nocera [Sat, 28 Apr 2012 15:16:56 +0000 (16:16 +0100)]
Fix adaptername shutdown
An inotify watch descriptor isn't a file descriptor, so don't
treat it as such and remove it properly.
Gustavo Padovan [Fri, 27 Apr 2012 02:00:37 +0000 (23:00 -0300)]
monitor: add version information
Gustavo Padovan [Fri, 27 Apr 2012 02:00:36 +0000 (23:00 -0300)]
monitor: add help information
Andrzej Kaczmarek [Wed, 25 Apr 2012 15:25:19 +0000 (17:25 +0200)]
gatttool: Fix handle parsing in cmd_char_write()
errno is not set to 0 before call to strtoll() so cmd_char_write() can fail
even with proper data. Use strtohandle() helper function instead.
Johan Hedberg [Thu, 26 Apr 2012 06:40:31 +0000 (09:40 +0300)]
hciops: Fix event mask for Inquiry Result with RSSI
The right value is 0x02 and not 0x04 (which is "Read Remote Extended
Features Complete").
Andre Guedes [Wed, 25 Apr 2012 01:42:31 +0000 (22:42 -0300)]
l2test: Add option to inform the address type
This patch adds 'V' option to inform the address type. Possible values
are: "bredr", "le_public", and "le_random".
Claudio Takahasi [Wed, 25 Apr 2012 01:42:30 +0000 (22:42 -0300)]
Remove MGMT address type definition
This patch replaces the address type defined in management interface
header by the new address type constants defined in the bluetooth.h.
Claudio Takahasi [Wed, 25 Apr 2012 01:42:29 +0000 (22:42 -0300)]
Remove addr_type_t definition from adapter.h
This patch replaces addr_type_t by the new Bluetooth address type
constants defined in bluetooth.h
Claudio Takahasi [Wed, 25 Apr 2012 01:42:28 +0000 (22:42 -0300)]
Remove leftover field in remote_dev_info struct
Field "bdaddr_type" of the remote_dev_info structure is not being
referenced in the code. Field "type" is already being used to store
the Bluetooth address type.
Claudio Takahasi [Wed, 25 Apr 2012 01:42:27 +0000 (22:42 -0300)]
Add address type for BLE bt_io_connect calls
This patch adds the address type option in bt_io_connect calls for BLE
devices. BR/EDR is the default value, and it is not mandatory to inform
it. For BLE devices, it is necessary to inform if the type is public or
random.
Claudio Takahasi [Wed, 25 Apr 2012 01:42:26 +0000 (22:42 -0300)]
btio: Add address type in bt_io_connect
This patch adds a new BtIO option to allow setting the remote Bluetooth
address type for BLE connections. Allowed values for BT_IO_OPT_DEST_TYPE
option are: BDADDR_BREDR, BDADDR_LE_PUBLIC, and BDADDR_LE_RANDOM.
Claudio Takahasi [Wed, 25 Apr 2012 01:42:25 +0000 (22:42 -0300)]
Add Bluetooth address type in sockaddr_l2
This patch adds the address type information to sockaddr_l2 structure,
allowing the userspace to inform the remote address type required for
LE Create Connection command.
Luiz Augusto von Dentz [Thu, 19 Apr 2012 18:03:35 +0000 (21:03 +0300)]
core: Remove DiscoverSchedulerInterval option from main.conf
This option was designed to be the time where name resolving would happen
in between inquiries, but with the introdution of mgmt interface this is
no longer the case as it treats the discovery as both inquiry/scan + name
resolving and keeping it just to delay discovery rounds is probably
useless.
Gustavo Padovan [Fri, 20 Apr 2012 17:36:15 +0000 (14:36 -0300)]
input: add error message when auth fails
Mikel Astiz [Mon, 23 Apr 2012 08:34:35 +0000 (10:34 +0200)]
core: Fix adapter mode inconsistency
The mode change in btd_adapter_start() doesn't check if the adapter is
discoverable, creating an inconsistency between the plugin and the core.
Using the management interface it is easy to reproduce the problem, by
starting BlueZ while the adapter is discoverable. After this, the state
cannot be changed.
Scott James Remnant [Wed, 18 Apr 2012 22:01:01 +0000 (15:01 -0700)]
hciops: map KeyboardDisplay IO Capability to DisplayYesNo
Since hciops is not used for LE devices, if an agent announces the
KeyboardDisplay IO Capability when creating a bonding, map it to
DisplayYesNo.
This matches the existing change in hciops_set_io_capability which
is only used in the RegisterAgent path.
Johan Hedberg [Wed, 18 Apr 2012 11:15:50 +0000 (14:15 +0300)]
audio: Fix AVDTP Reconfigure Reject message
The specification describes a proper reject response to
AVDTP_Reconfigure, so the previously used unknown command response is
not correct.
Daniel Wagner [Wed, 18 Apr 2012 08:53:37 +0000 (10:53 +0200)]
Makefile: Always add all test scripts to EXTRA_DIST
With commit
e407e9ac6d8bfde31f95ed5d7e7bcecf0cfe48ed
test-attrib, test-proximity and test-thermometer are only packaged
when "./configure --enable-gatt && make dist" is called.
The dist target should be independant on the configure flags.
Syam Sidhardhan [Mon, 16 Apr 2012 13:01:38 +0000 (18:31 +0530)]
eir: Fix incorrect eir_has_data_type() parsing
Updating the "parsed" variable twice inside the for loop, leads to
incorrect parsing.
Syam Sidhardhan [Mon, 16 Apr 2012 13:01:37 +0000 (18:31 +0530)]
eir: Fix incorrect eir_length() parsing
Issue:
The COD value displayed via dbus during inquiry is wrong.
This is because of the incorrect return length of the eir_length(),
which leads to appending the COD at wrong location.
Analysis:
After appending the COD at the end of the eir data, we can see
there are some '00' present in the eir field length in the eir file.
XX:XX:XX:XX:XX:XX 07095359414D5043020A040B0312111F110C110E110311
0000000000000000000000040D000142
Fix:
Corrected the length calculation in eir_length(), which is determining,
which position the COD should append
Syam Sidhardhan [Mon, 16 Apr 2012 13:01:36 +0000 (18:31 +0530)]
sdp: Fix compilation warning due to data type mismatch
In certain cross compiling environment, if we build the code with
enabling the maintainer mode, the following error happens.
cc1: warnings being treated as errors
lib/sdp.c: In function 'sdp_process':
lib/sdp.c:4111:6: error: comparison between signed and unsigned integer
expressions
make[2]: *** [lib/sdp.lo] Error 1
make[1]: *** [all] Error 2
Chan-yeol Park [Mon, 16 Apr 2012 11:56:34 +0000 (20:56 +0900)]
audio: Add missing debug message in authorization
Chan-yeol Park [Mon, 16 Apr 2012 11:56:33 +0000 (20:56 +0900)]
adapter: Add warning if there is no authorization agent
Sometimes BlueZ Agent is disappear suddenly or not registered
because of agent problem. but Bluez just prints "Operation Not
permiited"
This will help debugging.
Chan-yeol Park [Mon, 16 Apr 2012 11:56:32 +0000 (20:56 +0900)]
src: Add function for printing warnings
Marcel Holtmann [Mon, 16 Apr 2012 16:22:24 +0000 (18:22 +0200)]
build: Remove glib-compat.h support
Marcel Holtmann [Mon, 16 Apr 2012 16:17:30 +0000 (18:17 +0200)]
build: Require GLib 2.28 or later
Marcel Holtmann [Mon, 16 Apr 2012 15:57:08 +0000 (17:57 +0200)]
gdbus: Remove unneeded NEED_DBUS_WATCH_GET_UNIX_FD check
Marcel Holtmann [Mon, 16 Apr 2012 16:15:25 +0000 (18:15 +0200)]
build: Require D-Bus 1.4 or later
Chan-yeol Park [Mon, 16 Apr 2012 02:59:59 +0000 (11:59 +0900)]
audio: Add SBC NULL check for GST AVDTP signaling
Due to RF condition or headset malfunctioning, gst audio plug-in could
not get SBC (mandatory codec) information.
Chan-yeol Park [Sat, 14 Apr 2012 05:43:24 +0000 (14:43 +0900)]
audio: Fix default disabled values in audio.conf
Disabled features in audio.conf should be the same with source code
"audio/manager.c:struct enabled_interfaces enabled".
Szymon Janc [Fri, 13 Apr 2012 10:11:43 +0000 (12:11 +0200)]
input: Disconnect SDP before connecting HID if HIDSDPDisable is set
If remote HID device has HIDSDPDisable attribute present and set to
true host should disconnect SDP channel before connecting HID control
channel. Such devices multiplex resources between SDP and HID L2CAP
channels and will reject connection to HID control channel if SDP
channel is already connected.
Szymon Janc [Fri, 13 Apr 2012 10:11:42 +0000 (12:11 +0200)]
sdp-client: Add ability to clear cached session
This will be usefull for disconnecting SDP L2CAP channel before cached
session timeout fires.
Anderson Lizardo [Thu, 12 Apr 2012 16:04:48 +0000 (12:04 -0400)]
Makefile.am: Fix indentation
Only these two lines were using spaces instead of tabs.
Syam Sidhardhan [Thu, 12 Apr 2012 15:03:10 +0000 (20:33 +0530)]
Add Syam's email address
Syam Sidhardhan [Thu, 12 Apr 2012 15:03:09 +0000 (20:33 +0530)]
doc: Fix typo
Syam Sidhardhan [Thu, 12 Apr 2012 15:03:08 +0000 (20:33 +0530)]
src: Fix newline before EOF
Syam Sidhardhan [Thu, 12 Apr 2012 15:03:07 +0000 (20:33 +0530)]
input: Fix newline before EOF
Syam Sidhardhan [Thu, 12 Apr 2012 15:03:06 +0000 (20:33 +0530)]
audio: Fix newline before EOF
Syam Sidhardhan [Thu, 12 Apr 2012 15:03:05 +0000 (20:33 +0530)]
network: Remove header declared but not defined
Syam Sidhardhan [Thu, 12 Apr 2012 15:03:04 +0000 (20:33 +0530)]
headset: Remove header declared but not defined
Syam Sidhardhan [Thu, 12 Apr 2012 15:03:03 +0000 (20:33 +0530)]
adapter: Remove headers declared but not defined
Syam Sidhardhan [Thu, 12 Apr 2012 15:03:02 +0000 (20:33 +0530)]
sap-u8500: Fix empty parameter list in function declaration
Syam Sidhardhan [Thu, 12 Apr 2012 15:03:01 +0000 (20:33 +0530)]
sdpd-request: Fix passing zero instead of NULL
Syam Sidhardhan [Thu, 12 Apr 2012 15:03:00 +0000 (20:33 +0530)]
agent: Fix double D-Bus message unref
Inside the g_dbus_send_message() we are already doing the
D-BUS message unref.
Syam Sidhardhan [Thu, 12 Apr 2012 15:02:57 +0000 (20:32 +0530)]
gateway: Fix D-Bus reply memory leak
Re-arrange the code to avoid the D-Bus memory leak. Earlier if rfcomm
is not connected, then there was a reply memory leak.
Syam Sidhardhan [Thu, 12 Apr 2012 15:02:56 +0000 (20:32 +0530)]
gateway: Fix D-Bus memory leak in audio
Syam Sidhardhan [Thu, 12 Apr 2012 15:02:55 +0000 (20:32 +0530)]
gstavdtpsink: Fix D-Bus memory leak in audio
Syam Sidhardhan [Thu, 12 Apr 2012 15:02:54 +0000 (20:32 +0530)]
agent: Free the agent request properly
In the case of error, Unref the req->msg which is allocated inside the
pincode_request_new()
Syam Sidhardhan [Thu, 12 Apr 2012 15:02:53 +0000 (20:32 +0530)]
avrcp: Fix the response ctype of SetPlayerApplicationSettingValue
Request ctype of "SetPlayerApplicationSettingValue" is CONTROL,
so response should be ACCEPTED instead of STABLE.
Syam Sidhardhan [Thu, 12 Apr 2012 15:02:52 +0000 (20:32 +0530)]
health: Fix memory leak
Michal Labedzki [Wed, 11 Apr 2012 11:05:18 +0000 (13:05 +0200)]
AVRCP: Add missing capability for TrackReachedEnd
Add missing capability for TrackReachedEnd.
Anderson Lizardo [Tue, 10 Apr 2012 20:22:48 +0000 (16:22 -0400)]
audio: Fix memory leak when headset server probe() fails
If RFCOMM is disabled on the kernel, headset_server_probe() fails.
Relevant log messages:
audio/manager.c:headset_server_probe() path /org/bluez/499/hci0
src/adapter.c:btd_adapter_ref() 0x4bb4f78: ref=6
audio/manager.c:audio_adapter_ref() 0x4ca3010: ref=1
socket(STREAM, RFCOMM): Protocol not supported (93)
audio/manager.c:audio_adapter_unref() 0x4ca3010: ref=0
src/adapter.c:btd_adapter_unref() 0x4bb4f78: ref=5
audio-headset: Operation not permitted (1)
The powered callback should only be registered if adapter driver probe
was successful. The callback unregister was moved to the beginning of
headset_server_remove() for consistency.
This fixes this memory leak:
==499== 8 bytes in 1 blocks are definitely lost in loss record 44 of 182
==499== at 0x4826444: malloc (vg_replace_malloc.c:263)
==499== by 0x4877243: g_malloc (gmem.c:132)
==499== by 0x488D088: g_slice_alloc (gslice.c:836)
==499== by 0x488E8A5: g_slist_append (gslist.c:230)
==499== by 0x18AEEE: btd_adapter_register_powered_callback
(adapter.c:3416)
==499== by 0x11AF61: headset_server_probe (manager.c:919)
==499== by 0x18B67B: probe_driver (adapter.c:2033)
==499== by 0x1908F5: adapter_init (adapter.c:2048)
==499== by 0x189D20: btd_manager_register_adapter (manager.c:397)
==499== by 0x1649AF: mgmt_cmd_complete (mgmtops.c:1075)
==499== by 0x16665E: mgmt_event (mgmtops.c:1780)
==499== by 0x48B2EFA: g_io_unix_dispatch (giounix.c:162)
Scott James Remnant [Thu, 5 Apr 2012 22:29:40 +0000 (15:29 -0700)]
simple-agent: add DisplayPinCode
Scott James Remnant [Thu, 5 Apr 2012 22:29:39 +0000 (15:29 -0700)]
doc: document DisplayPinCode
Scott James Remnant [Thu, 5 Apr 2012 22:29:38 +0000 (15:29 -0700)]
Display PIN generated by plugin
If a plugin pincode callback sets the display parameter to TRUE, send
the generated PIN to the agent for display using the new DisplayPinCode
agent method, including its fallback to RequestPinCode.
Scott James Remnant [Thu, 5 Apr 2012 22:29:37 +0000 (15:29 -0700)]
Add display parameter to plugin pincode callback
Pass a display parameter to the plugin pincode callback, a plugin
may set this to TRUE to indicate the PIN it generates should be
displayed on the screen for entry into the remote device.
Scott James Remnant [Thu, 5 Apr 2012 22:29:36 +0000 (15:29 -0700)]
Add AUTH_TYPE_NOTIFY_PASSKEY to device_request_authentication
This new authentication type accepts a pincode and calls the
DisplayPinCode agent method, a fallback is provided so that if the
method is not implemented the older RequestPinCode method is used
instead.
Due to this fallback, the agent_pincode_cb is used and calling
functions should send the pincode passed to the callback to the
adapter, which may differ from that generated.
Scott James Remnant [Thu, 5 Apr 2012 22:29:35 +0000 (15:29 -0700)]
agent: add DisplayPinCode method
In constrast to DisplayPasskey, this sends a UTF-8 string PIN code
to the agent; also we support a callback for the case where the
Agent doesn't implement this new method so we can fallback.
Scott James Remnant [Thu, 5 Apr 2012 22:29:34 +0000 (15:29 -0700)]
Pass passkey by pointer rather than by value
This allows alternate data of a different type to be passed to
device_request_authentication() for other notification types such
as those that require a PIN.
Scott James Remnant [Thu, 5 Apr 2012 22:29:33 +0000 (15:29 -0700)]
Rename AUTH_TYPE_NOTIFY to AUTH_TYPE_NOTIFY_PASSKEY
This makes room for additional notification types to be added.
Claudio Takahasi [Thu, 5 Apr 2012 22:54:38 +0000 (19:54 -0300)]
fakehid: Remove define not referenced
Claudio Takahasi [Thu, 5 Apr 2012 22:54:37 +0000 (19:54 -0300)]
fakehid: Remove unneeded header includes
Hemant Gupta [Tue, 10 Apr 2012 10:13:27 +0000 (15:43 +0530)]
mgmtops: Handle Start Discovery Complete in case of failure
This patch adds handling of start discovery complete event in cases
when discovery fails to get started.
Gustavo Padovan [Thu, 5 Apr 2012 19:22:55 +0000 (16:22 -0300)]
mgmt: update mgmt control channel id
kernel side has updated its control channel id from 1 to 3.
Szymon Janc [Wed, 4 Apr 2012 14:58:22 +0000 (16:58 +0200)]
DeviceInfo: Fix compilation with old glib
Add missing include glib-compat.h to deviceinfo.c. deviceinfo_free
is using g_slist_free_full() which is not available in old glib
resulting in compilation error.
deviceinfo/deviceinfo.c: In function ‘deviceinfo_free’:
deviceinfo/deviceinfo.c:66: error: implicit declaration of function ‘g_slist_free_full’
Joohi Rastogi [Thu, 5 Apr 2012 05:58:08 +0000 (11:28 +0530)]
AVRCP: Fix response length for Subunit Info command
This affect PTS Test Case TC_TG_ICC_BV_02_I
Joohi Rastogi [Thu, 5 Apr 2012 05:41:09 +0000 (11:11 +0530)]
AVRCP: Fix response length for Unit Info command
This affect PTS Test Case TC_TG_ICC_BV_01_I
Chen Ganir [Wed, 4 Apr 2012 08:28:57 +0000 (11:28 +0300)]
DeviceInfo: Read PNP ID
Read the PNP ID characteristic of the DeviceInfo Service, and
store it inside the btd_device, for use by other profiles.
Chen Ganir [Wed, 4 Apr 2012 08:28:56 +0000 (11:28 +0300)]
DeviceInfo: Discover Characteristics
Add logic to discover all characteristics and build a
characteristic list.
Chen Ganir [Wed, 4 Apr 2012 08:28:55 +0000 (11:28 +0300)]
DeviceInfo: Add connection logic
Add connection logic to the Device Information Plugin. When the
driver is loaded, it will request a connection to the remote device
and release the connection request when destroyed.
Chen Ganir [Wed, 4 Apr 2012 08:28:54 +0000 (11:28 +0300)]
Add DeviceInformation GATT Client
Add the DeviceInformation GATT Client plugin skeleton.
Rafael Fonseca [Tue, 3 Apr 2012 13:16:22 +0000 (10:16 -0300)]
Fix spelling errors
Fix spelling errors found using the codespell tool
(https://github.com/lucasdemarchi/codespell).
Hemant Gupta [Tue, 3 Apr 2012 11:53:59 +0000 (17:23 +0530)]
Adapter: Fix Discovering state while Powering Off
This patch fixes the adapter discovering state while powering off.
Without this fix, BlueZ sends incorrect discovering state to upper
layers while switching off.
Anderson Lizardo [Tue, 3 Apr 2012 16:15:00 +0000 (12:15 -0400)]
attrib: Fix D-Bus service disconnect watch removal
watcher_free() will be automatically called when removing the D-Bus
watch (it was set as the destroy callback when adding the watch),
therefore it is only necessary to remove the watch.
Anderson Lizardo [Tue, 3 Apr 2012 16:14:59 +0000 (12:14 -0400)]
thermometer: Fix D-Bus service disconnect watch removal
destroy_watcher() will be automatically called when removing the D-Bus
watch (it was set as the destroy callback when adding the watch),
therefore it is only necessary to remove the watch.
Anderson Lizardo [Tue, 3 Apr 2012 16:14:58 +0000 (12:14 -0400)]
gdbus: Use destroy callback for service watch
Even though service watches accepted a "destroy" callback, they were
being ignored. This fix properly pass them along so they are called when
the watch is removed.
Anderson Lizardo [Tue, 3 Apr 2012 16:01:31 +0000 (12:01 -0400)]
attrib: Fix "make distcheck" build
Any new header files (att-database.h in this case) need to be added to
Makefile.am.
Fixes this "make distcheck" error:
CC attrib/bluetoothd-gatt-service.o
../attrib/gatt-service.c:35:26: fatal error: att-database.h: No such
file or directory
compilation terminated.
make[2]: *** [attrib/bluetoothd-gatt-service.o] Error 1
make[1]: *** [all] Error 2
make: *** [distcheck] Error 1
Gustavo Padovan [Wed, 4 Apr 2012 03:44:25 +0000 (00:44 -0300)]
update Gustavo's email address
Claudio Takahasi [Mon, 2 Apr 2012 13:56:36 +0000 (09:56 -0400)]
gattrib: Protect GAttrib when there is a pending write
Claudio Takahasi [Mon, 2 Apr 2012 13:56:35 +0000 (09:56 -0400)]
attrib: Fix missing Discovery reply when disconnected
This patch fixes missing reply for DiscoverCharacteristics method on
Generic Attribute. If link is disconnected reply message is not sent.
Arik Nemtsov [Mon, 2 Apr 2012 19:12:42 +0000 (22:12 +0300)]
proximity: reporter: implement D-Bus API
Use a device driver to track all GATT supporting devices and register
a D-Bus interface per remote device.
Implement the "GetProperties" method of the D-Bus interface by querying
the alert level of the remote device in the link-loss and
immediate-alert proximity profiles. The default alert level values for
non-connected devices are "none".
Arik Nemtsov [Mon, 2 Apr 2012 19:12:41 +0000 (22:12 +0300)]
proximity: immediate alert: implement immediate alert server
The profile is implemented in immalert.[ch]. A GATT service is
registered with a write callback on the immediate alert level attribute.
This attribute is write-only and is maintained per remote device.
When a remote device write a raises or lowers the alert level,
an appropriate PropertyChanged signal is emitted. When the alert level
of a device is non-zero, a callback is registered on its disconnection.
When the callback is called, the alert level of the device is reset to
zero and an appropriate signal is emitted.
Arik Nemtsov [Mon, 2 Apr 2012 19:12:40 +0000 (22:12 +0300)]
proximity: link loss: implement link loss server
The profile is implemented in linkloss.[ch]. A GATT service is
registered with read/write callbacks on the link-loss alert level
attribute. The alert level is maintained per device. It is returned
on read and updated on write.
When the alert level is non-zero, a callback is registered on the
disconnection of the remote device. If a device with non-zero alert
state is disconnected, an appropriate PropertyChanged signal is emitted
with the alert level previously set by the device. We avoid emitting
a signal when the disconnection was requested by us.
Arik Nemtsov [Mon, 2 Apr 2012 19:12:39 +0000 (22:12 +0300)]
proximity: reporter: move definitions to .h and add util function
This allows us to re-use these definitions in GATT sub-profiles.
Arik Nemtsov [Mon, 2 Apr 2012 19:12:38 +0000 (22:12 +0300)]
proximity: reporter: save global D-Bus connection
This connection will be used by reporter GATT sub-profiles.
Arik Nemtsov [Mon, 2 Apr 2012 19:12:37 +0000 (22:12 +0300)]
att: add remote btd_device to ATT read/write callbacks
This allows us to identify the remote device that made the ATT
read/write.
Bruna Moreira [Mon, 2 Apr 2012 20:05:22 +0000 (16:05 -0400)]
adapter: Fix segfault when icon is uninitialized
If device type is LE and GAP Appearance characteristic does not exist,
the icon will not be initialized.
Lucas De Marchi [Tue, 28 Feb 2012 14:20:17 +0000 (11:20 -0300)]
AVCTP: return not-implemented for unknown passthrough
Daniel Wagner [Fri, 30 Mar 2012 12:22:36 +0000 (14:22 +0200)]
Makefile: Add simple-player and test-nap to EXTRA_DIST
Add simple-player and test-nap to the EXTRA_DIST target.
Bruna Moreira [Tue, 27 Mar 2012 18:06:47 +0000 (14:06 -0400)]
eir: Read GAP appearance from advertising data
This was introduced on Core Specification Supplement (CSS) v1.
Bruna Moreira [Thu, 29 Mar 2012 14:38:02 +0000 (10:38 -0400)]
device: Appearance characteristic from GAP service
After searching for primary services, the appearance characteristic is
read from GAP service and saved in "appearance" file. Running
GetProperty in device interface, will show the respective icon based in
"appearance" value.
Bruna Moreira [Tue, 27 Mar 2012 13:29:36 +0000 (09:29 -0400)]
storage: Add storage to GAP characteristic
Add functions to read and write remote Appearance characteristic. The values
are saved in "appearance" file.
Bruna Moreira [Tue, 27 Mar 2012 13:29:35 +0000 (09:29 -0400)]
dbus-common: Map GAP Appearance characteristic to icon
Add function appearance_to_icon() to map values from Appearance
Characteristic to icon available.
Note: The Appearance Characteristic is composed of a category (10-bits)
and sub-categories (6-bits). These categories are defined at:
http://developer.bluetooth.org/gatt/characteristics/Pages/
CharacteristicViewer.aspx?u=org.bluetooth.characteristic.gap.appearance.xml
Anderson Lizardo [Tue, 27 Mar 2012 20:43:48 +0000 (16:43 -0400)]
attrib: Attempt to remove attio callback on watcher exit
When registering a watcher, it is attempted to add an attio callback.
Therefore, when the watcher is unregistered or exits, this attio should
be removed if there are no other users.
This is already done when unregistering a watcher, it just missed when
it exits without unregistering.