OSDN Git Service
Luiz Augusto Von Dentz [Wed, 21 Apr 2010 14:13:07 +0000 (17:13 +0300)]
Fix Device.SetProperty(Alias,... always emit PropertyChanged
Similar to
6da6e4e3de7f1800e5b736add0b944d33d3acf37 but for Alias
Property.
Luiz Augusto Von Dentz [Thu, 22 Apr 2010 08:35:45 +0000 (11:35 +0300)]
Fix Device.SetProperty("Trusted",... always emit PropertyChanged
Currently any change done to Trusted property generates a PropertyChanged
since no verification is done prior to apply the new value which may
generate an unnecessary write to the storage and extra D-Bus traffic.
To fix this trusted is now loaded from storage and cached in memory when
the device is created, which latter is used to make sure the value has
really changed avoiding storage reads to check current value.
Marcel Holtmann [Wed, 14 Apr 2010 11:35:49 +0000 (04:35 -0700)]
Add some more company identifiers
Francisco Alecrim [Thu, 8 Apr 2010 21:35:01 +0000 (17:35 -0400)]
List with UUIDs per-adapter should be sorted
Johan Hedberg [Sun, 11 Apr 2010 17:34:45 +0000 (20:34 +0300)]
Set HID socket security back to LOW after the BtIO default change
At least mice require a lower security level, however for now this patch
changes the level back to low for all HID sockets.
Daniel Orstadius [Fri, 9 Apr 2010 14:24:32 +0000 (17:24 +0300)]
Return error properly on CreateDevice
Adds a check in function search_cb for whether the initiating DBus
call was CreateDevice or CreatePairedDevice. Previously both calls
triggered a positive reply regardless of the error code, but in case
of CreateDevice any error should be propagated in the DBus reply.
Modifies the store_profiles function to return immediately for a
temporary device.
Daniel Orstadius [Fri, 9 Apr 2010 14:12:52 +0000 (17:12 +0300)]
Handle connection ending events on higher layers first
When sockets are notified simultaneously of a disconnection or
connection failure, the sockets on the higher levels should be allowed
to handle the disconnect event before cleaning up the connection at
sockets on the lower level (HCI).
The issue behind creating the patch was that on a failed connection
attempt hcid_dbus_conn_complete could get called before the SDP
callbacks, which lead to the latter not being called.
Lowers the priority of the HCI socket to trigger it after higher level
sockets such as L2CAP and RFCOMM.
Johan Hedberg [Wed, 7 Apr 2010 17:17:17 +0000 (20:17 +0300)]
Fix minor indentation issues
Francisco Alecrim [Wed, 7 Apr 2010 16:25:50 +0000 (12:25 -0400)]
Correct UUIDs list to EIR
Correct create_ext_inquiry_response to response only UUIDs per-adapter.
Francisco Alecrim [Wed, 7 Apr 2010 16:25:49 +0000 (12:25 -0400)]
Report local services(UUIDs) through D-Bus
* Include UUIDs field to method GetProperties(org.bluez.Adapter).
Applications can get local services(UUIDs) available through D-Bus.
* UUIDs per-adapter stored at btd_adapter to prevent some searches not
necessary regarding it requires information from access_db and service_db.
* Emit Adapter.PropertyChanged signal when UUIDs change.
Luiz Augusto Von Dentz [Tue, 6 Apr 2010 09:27:32 +0000 (12:27 +0300)]
Fix maemo6 API changes since maemo5
This should cover the changes in D-Bus API of csnet and simpb since
maemo5.
Luiz Augusto Von Dentz [Tue, 6 Apr 2010 09:29:27 +0000 (12:29 +0300)]
Introduce maemo6 telephony driver
Copy from maemo5 driver to accomodate API changes done in maemo6.
Johan Hedberg [Sat, 3 Apr 2010 17:00:17 +0000 (20:00 +0300)]
Fix device object reference counting with SDP browse requests
The req->device pointer should be properly reference counted in order to
avoid invalid memory access.
Johan Hedberg [Sat, 3 Apr 2010 13:45:44 +0000 (16:45 +0300)]
Make use of common fail label in pnat_probe
Johan Hedberg [Sat, 3 Apr 2010 13:37:26 +0000 (16:37 +0300)]
Fix GError memory leak
Johan Hedberg [Sat, 3 Apr 2010 13:32:36 +0000 (16:32 +0300)]
Remove bogus if-check when DUN client disconnects
Johan Hedberg [Fri, 2 Apr 2010 19:41:53 +0000 (22:41 +0300)]
Fix invalid memory access in headset_get_nrec when hs->slc is NULL
headset_get_nrec might get called when there's no SLC and it should
return the default NREC value in that case which is TRUE.
Johan Hedberg [Thu, 1 Apr 2010 12:58:23 +0000 (15:58 +0300)]
Add initial phonet integration with the help of pnatd/phonet-at
This patch implements initial phonet support to the pnat bluetoothd
plugin by utilizing the pnatd/phonet-at phonet AT proxy/wrapper tool.
Johan Hedberg [Wed, 31 Mar 2010 11:40:51 +0000 (14:40 +0300)]
Add possibility to explicitly specify source/dest channel in BtIO
This is needed e.g. to create RFCOMM TTY's from incoming connections
since in that case the remote (clients) RFCOMM channel needs to be known
for the RFCOMMCREATEDEV ioctl.
Johan Hedberg [Tue, 30 Mar 2010 10:36:46 +0000 (13:36 +0300)]
Make BtIO default security level MEDIUM
MEDIUM makes more sense than the kernel default LOW which maps to "no
bonding" with SSP (something that's useful only for very special cases
such as OPP).
Forrest Zhao [Mon, 29 Mar 2010 21:02:42 +0000 (17:02 -0400)]
Return error when modem_obj_path is NULL
This could prevent crash in case modem_obj_path is NULL.
Marcel Holtmann [Fri, 26 Mar 2010 01:34:44 +0000 (18:34 -0700)]
Release 4.63
Forrest Zhao [Thu, 25 Mar 2010 16:30:10 +0000 (12:30 -0400)]
Set voice_call.watch in correct way
It was set wrongly to device_watch.
Luiz Augusto Von Dentz [Wed, 24 Mar 2010 21:30:30 +0000 (23:30 +0200)]
Add immediate parameter to avdtp_close
When TRUE if there is an outstanding command in the sending queue it will
cause abort which cancel any pending command.
Luiz Augusto Von Dentz [Wed, 24 Mar 2010 12:34:51 +0000 (14:34 +0200)]
Send abort on while cancelling a2dp setup
This should guarantee that any outstanding command in the queue is
cancelled, accourding to the avdtp spec:
"6.16 Abort
Because AVDTP is typically used on unreliable channels, signaling messages
can be lost due to L2CAP Flush Timeouts. To react to inconsistencies
between the INT and ACP states, the Abort Command may be used."
It also says abort can be send regardless of the state even in case of
packet fragmantation:
"Note that it is permitted to breakdown a packet sequence (command or
response message) to send an Abort command message in the same direction.
The remaining packets consecutive to an aborted message shall be flushed by
the sender."
Luiz Augusto Von Dentz [Wed, 24 Mar 2010 21:26:24 +0000 (23:26 +0200)]
Make abort requests to have a shorter timeout
Regular request takes 4 secs to timeout, but this may be too long to wait
for abort command so it is now reduced to 2 secs.
Luiz Augusto Von Dentz [Wed, 24 Mar 2010 15:37:14 +0000 (17:37 +0200)]
Fix avdtp_abort not canceling pending requests
Luiz Augusto Von Dentz [Mon, 1 Mar 2010 14:18:27 +0000 (16:18 +0200)]
Drop connection if abort is rejected
Make it consistent with the logic when abort timeout since the original
intent is to cancel a pending request there is no point in keeping the
connection if it is in an unrecoverable state.
Luiz Augusto Von Dentz [Mon, 22 Mar 2010 15:28:54 +0000 (17:28 +0200)]
Rename maemo telephony driver to maemo5
Luiz Augusto Von Dentz [Tue, 23 Mar 2010 08:57:46 +0000 (10:57 +0200)]
Fix unhandled returns of dbus_message_get_args
Luiz Augusto Von Dentz [Tue, 23 Mar 2010 08:43:17 +0000 (10:43 +0200)]
Add check for g_dbus_register_interface return
Luiz Augusto Von Dentz [Mon, 22 Mar 2010 13:38:33 +0000 (15:38 +0200)]
Add check for sdp_record_find
Luiz Augusto Von Dentz [Mon, 22 Mar 2010 13:11:07 +0000 (15:11 +0200)]
Check the return of getsockopt and getsockname logging the errors
Luiz Augusto Von Dentz [Mon, 22 Mar 2010 12:31:34 +0000 (14:31 +0200)]
Add missing check for listen return
Luiz Augusto Von Dentz [Wed, 24 Mar 2010 21:16:26 +0000 (23:16 +0200)]
Fix directly dereferenced pointer 'auth'
Luiz Augusto Von Dentz [Fri, 5 Mar 2010 13:01:59 +0000 (15:01 +0200)]
Use correct sign for error value
Johan Hedberg [Mon, 22 Mar 2010 11:07:23 +0000 (13:07 +0200)]
Fix SCO connection error propagation
Johan Hedberg [Tue, 9 Mar 2010 03:31:36 +0000 (23:31 -0400)]
Coding style fixes for telephony-ofono.c
Vinicius Costa Gomes [Mon, 8 Mar 2010 23:01:32 +0000 (20:01 -0300)]
Fix compilation when --enable-test is passed
When --enable-test is passed along with --disable-alsa and
--disable-gstreamer, the SBC lib is not built, which breaks
compilation of the ipctest test program.
Marcel Holtmann [Sun, 7 Mar 2010 22:32:48 +0000 (14:32 -0800)]
Make interface callback tables const
Vinicius Costa Gomes [Mon, 1 Feb 2010 19:16:22 +0000 (16:16 -0300)]
Fix the case when the requested name is already in use
We weren't setting the dbus error in this situation.
Marcel Holtmann [Sun, 7 Mar 2010 21:41:00 +0000 (13:41 -0800)]
Release 4.62
Marcel Holtmann [Sun, 7 Mar 2010 21:34:06 +0000 (13:34 -0800)]
Update library version
Marcel Holtmann [Sun, 7 Mar 2010 21:30:50 +0000 (13:30 -0800)]
Pretty print HCI revision and LMP subversion
Marcel Holtmann [Sun, 7 Mar 2010 21:22:11 +0000 (13:22 -0800)]
Fix accidental OCF_READ_INQUIRY_TRANSMIT_POWER_LEVEL breakage
Luiz Augusto Von Dentz [Thu, 4 Mar 2010 08:45:13 +0000 (10:45 +0200)]
Fix using invalid data from previous headset connection
Data from previous connection should be reset once disconnected, to fix
this a new structure is introduced called headset_slc which represents
the Service Level Connection and hold the connection data which is freed
when disconnected.
Daniel Orstadius [Sun, 21 Feb 2010 12:39:49 +0000 (14:39 +0200)]
Fix double free on AVDTP Abort response
The pending request might be freed twice when receiving an Abort
response, in handle_unanswered_req and session_cb. Avoid freeing
it in handle_unanswered_req.
Denis Kenzior [Sat, 13 Feb 2010 02:06:53 +0000 (20:06 -0600)]
Punch a hole for HandsfreeAgent in dbus policy
Luiz Augusto Von Dentz [Thu, 18 Feb 2010 11:21:21 +0000 (13:21 +0200)]
Mark inuse flag whenever a stream is configured
Currently it was only marked when acting as the initiator.
Luiz Augusto Von Dentz [Wed, 17 Feb 2010 09:22:16 +0000 (11:22 +0200)]
Fix possible crash while verifying avdtp version
Reproducible with Codenomicon A2DP testsuite 1.4.2.
Vinicius Costa Gomes [Fri, 12 Feb 2010 20:35:08 +0000 (17:35 -0300)]
Fix: a pending call was leaking in check_service
This was triggering an assert inside libdbus when the timeout inside
the leaking pending call expired. The assert said that we were trying
to remove an nonexistent timeout.
Gustavo F. Padovan [Mon, 15 Feb 2010 19:34:21 +0000 (17:34 -0200)]
audio/gateway.c: Don't reply to DBus when connection comes from AG
Bastien Nocera [Mon, 15 Feb 2010 10:41:40 +0000 (10:41 +0000)]
Fix DSO linking
Explicitely link against libm, to avoid linking problems:
CCLD sbc/sbctester
/usr/bin/ld: sbc/sbctester.o: undefined reference to symbol 'sqrt@@GLIBC_2.2.5'
/usr/bin/ld: note: 'sqrt@@GLIBC_2.2.5' is defined in DSO /lib64/libm.so.6 so try adding it to the linker command line
/lib64/libm.so.6: could not read symbols: Invalid operation
Marcel Holtmann [Sat, 13 Feb 2010 22:16:51 +0000 (14:16 -0800)]
Fix accidental hci_read_inquiry_transmit_power_level symbol breakage
Marcel Holtmann [Sat, 13 Feb 2010 01:23:55 +0000 (02:23 +0100)]
Show HCI and LMP versions on separate lines
Marcel Holtmann [Sat, 13 Feb 2010 01:22:18 +0000 (02:22 +0100)]
Show controller type and bus type for every device
Marcel Holtmann [Sat, 13 Feb 2010 01:21:29 +0000 (02:21 +0100)]
Add helper functions for controller type string conversion
Marcel Holtmann [Sat, 13 Feb 2010 01:09:52 +0000 (02:09 +0100)]
Add Bluetooth controller types
Marcel Holtmann [Fri, 12 Feb 2010 19:53:58 +0000 (20:53 +0100)]
Release 4.61
Gustavo F. Padovan [Fri, 12 Feb 2010 18:16:32 +0000 (16:16 -0200)]
Deprecate the ListAdapters() method on Manager
Gustavo F. Padovan [Fri, 12 Feb 2010 18:16:31 +0000 (16:16 -0200)]
Add {deprecated} annotation to ListDevices()
Claudio Takahasi [Wed, 10 Feb 2010 14:29:16 +0000 (12:29 -0200)]
Fix segmentation fault when headset disconnects during authorization
Headset authorization callback is not being removed when the headset
disconnects during authorization. Cancel authorization function of
audio devices doesn't iterate the callbacks list properly.
Claudio Takahasi [Tue, 9 Feb 2010 21:36:26 +0000 (19:36 -0200)]
Add argument verification when unregistering Handsfree agent
The given object path argument must match the same value that has been
used on registration.
Daniel Orstadius [Tue, 9 Feb 2010 16:23:50 +0000 (18:23 +0200)]
Handle unanswered AVDTP request on disconnect
If the connection is lost when there is an AVDTP request the remote has
not replied to and which has not timed out, then at least in some cases
the callback for the request is not called leading to no Error response
being sent on the Audio API.
This patch checks if there is an outstanding request when the stream
state goes to idle and in that case triggers the corresponding callback
with an error.
Marcel Holtmann [Sat, 6 Feb 2010 04:16:38 +0000 (20:16 -0800)]
The TX power level is a signed int and not an unsigned int
Marcel Holtmann [Sat, 6 Feb 2010 04:16:03 +0000 (20:16 -0800)]
Print EIR attribute for Device ID
Marcel Holtmann [Sat, 6 Feb 2010 04:09:54 +0000 (20:09 -0800)]
Add support for handling Inquiry Response Transmit Power Level
Marcel Holtmann [Sat, 6 Feb 2010 03:52:59 +0000 (19:52 -0800)]
Fix another fallout from Inquiry Response Transmit Power Level typo
Marcel Holtmann [Sat, 6 Feb 2010 03:23:31 +0000 (19:23 -0800)]
Don't include PnP service class in EIR response
Marcel Holtmann [Fri, 5 Feb 2010 18:31:50 +0000 (10:31 -0800)]
Fix my stupid typo with Read Inquiry Response Transmit Power Level
Bastien Nocera [Fri, 5 Feb 2010 13:52:15 +0000 (13:52 +0000)]
Remove Sixaxis quirk
The quirk in input/device.c to make the Sixaxis joypad operational
in Bluetooth mode is now available directly in the kernel.
Nick Pelly [Wed, 3 Feb 2010 19:34:50 +0000 (11:34 -0800)]
Add 0xff (any object type) to sdptool OPUSH supported formats list.
This fixed an issue with sending an image from OSX. OSX would show a
warning that the bluez stack does not support this file type, but offer
to send it anyway (which works). This change to advertise support for
all object types will remove this warning.
The list of file types that can be advertised in the SDP record is very
limited anyway. It is best to list that we support all file types here,
and then filter at the OPP/OBEX connection instead.
For reference:
0x01 = vCard 2.1
0x02 = vCard 3.0
0x03 = vCal 1.0
0x04 = iCal 2.0
0x05 = vNote
0x06 = vMessage
0xFF = any type of object.
Gustavo F. Padovan [Thu, 4 Feb 2010 18:48:11 +0000 (16:48 -0200)]
Implement HandsfreeGateway Interface
Create a interface where a Handsfree agent can register and use BlueZ to
handle the rfcomm and sco links.
Many thanks to Zhenhua Zhang <zhenhua.zhang@intel.com> for his
prototype on this code.
Gustavo F. Padovan [Tue, 2 Feb 2010 21:41:07 +0000 (19:41 -0200)]
clean up audio/gateway.c
remove all code related to the AT engine
Marcel Holtmann [Wed, 3 Feb 2010 22:33:13 +0000 (14:33 -0800)]
Update configure checks for libcap-ng and libnl
Johan Hedberg [Wed, 3 Feb 2010 21:40:28 +0000 (13:40 -0800)]
Fix mode restoration when remember_powered is false
Johan Hedberg [Wed, 3 Feb 2010 20:02:42 +0000 (12:02 -0800)]
Check for cached remote host features during discovery
If a remote name is cached and we didn't got a non-EIR event we should
check for cached remote host features for SSP support to behave
correctly with SSP & non-EIR devices.
Johan Hedberg [Wed, 3 Feb 2010 18:52:59 +0000 (10:52 -0800)]
Implement caching of remote host features
Devices with SSP but no EIR requires looking at the remote host features
to get a correct value for the LegacyPairing property. Requesting a
remote name gives these features for free but if the name is already
cached we don't get them. This patch implements the caching part for the
features and a subsequent patch will actually make use of the cached
value for the device discovery process.
Johan Hedberg [Mon, 1 Feb 2010 14:33:48 +0000 (06:33 -0800)]
Use more sane default indicator values
Johan Hedberg [Tue, 26 Jan 2010 13:24:14 +0000 (15:24 +0200)]
Add initial skeleton for Phonet AT (DUN) plugin
Marcel Holtmann [Tue, 2 Feb 2010 18:20:59 +0000 (10:20 -0800)]
Rename network "Device" to "Interface"
Marcel Holtmann [Sat, 30 Jan 2010 16:26:23 +0000 (08:26 -0800)]
Check for dbus_connection_can_send_type() function
Daniel Orstadius [Thu, 28 Jan 2010 15:14:40 +0000 (17:14 +0200)]
Fix conference call releasing in telephony-maemo
Currently telephony-maemo only ends the first call found on
receiving AT+CHUP (hang up) from the headset. This patch checks
if the call is part of a conference call and in that case releases
the whole conference.
Marcel Holtmann [Wed, 27 Jan 2010 08:48:21 +0000 (09:48 +0100)]
Remove unneeded use of status variable
Forrest Zhao [Wed, 27 Jan 2010 08:24:23 +0000 (16:24 +0800)]
Introduce g_dbus_setup_private() to gdbus
g_dbus_setup_private() is used to setup private DBusConnection
Luiz Augusto Von Dentz [Tue, 26 Jan 2010 14:17:21 +0000 (16:17 +0200)]
Fix possible invalid read when removing a temporary device
An invalid read may happens when doing the reverse service discovery but
for some reason the device disconnects with the temporary flag set which
will make the device to be removed without cancelling the service.
Bastien Nocera [Tue, 26 Jan 2010 15:41:04 +0000 (15:41 +0000)]
Add icons for video-type devices
Marcel Holtmann [Fri, 22 Jan 2010 13:24:00 +0000 (14:24 +0100)]
Remove "(tentative)" comment
Peter Zotov [Thu, 14 Jan 2010 20:29:59 +0000 (23:29 +0300)]
Add preliminary voice dialling support for HSP
Marcel Holtmann [Sat, 9 Jan 2010 21:51:11 +0000 (13:51 -0800)]
Release 4.60
Johan Hedberg [Fri, 8 Jan 2010 11:32:51 +0000 (13:32 +0200)]
Fix voice mailbox number reading from SIM
The MBDN elementary file needs to be used instead of VMBX to fetch the
voice mailbox.
TS 151.011 contains following information:
"10.3.43 EFMBDN (Mailbox Dialling Numbers) This EF contains dialling
numbers to access mailboxes associated with Voicemail, Fax, Electronic
Mail and other messages. It may also contain associated alpha-tags for
each supported mailbox. Each dialing number shall be associated with a
message waiting indication group type using EFMBI (see 3GPP TS 23.038
[12] for message waiting indication group types)."
Luiz Augusto Von Dentz [Fri, 8 Jan 2010 10:17:19 +0000 (12:17 +0200)]
Fix regression when removing watches
filter_data_find return the first data registered in this case so there is
no guarantee that it return the same data as passed to
filter_data_remove_callback which is the one that should be removed.
The fix is to simple cache the connection removing the correct data before
checking if there is any filter left.
Marcel Holtmann [Thu, 7 Jan 2010 09:13:49 +0000 (01:13 -0800)]
Fix some missed copyrights
Marcel Holtmann [Thu, 7 Jan 2010 09:12:16 +0000 (01:12 -0800)]
Update Intel copyrights
Johan Hedberg [Thu, 7 Jan 2010 09:02:51 +0000 (11:02 +0200)]
Update Nokia copyrights
Marcel Holtmann [Sun, 3 Jan 2010 05:42:10 +0000 (21:42 -0800)]
Cleanup of D-Bus mainloop integration
Marcel Holtmann [Sat, 2 Jan 2010 01:08:17 +0000 (17:08 -0800)]
Update copyright information
Marcel Holtmann [Sat, 2 Jan 2010 01:04:13 +0000 (17:04 -0800)]
Update copyright information of D-Bus helper library
Luiz Augusto Von Dentz [Tue, 29 Dec 2009 12:10:15 +0000 (14:10 +0200)]
Fix undefined symbols
Luiz Augusto Von Dentz [Tue, 29 Dec 2009 09:15:32 +0000 (11:15 +0200)]
Port ofono telefony driver to use g_dbus_add_signal_watch