Commit Graph

6822 Commits

Author SHA1 Message Date
Luiz Augusto Von Dentz
0085717ed4 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.
2010-03-24 23:23:37 +02:00
Luiz Augusto Von Dentz
e03a348e34 Rename maemo telephony driver to maemo5 2010-03-24 23:16:45 +02:00
Luiz Augusto Von Dentz
463763c080 Fix unhandled returns of dbus_message_get_args 2010-03-24 23:16:45 +02:00
Luiz Augusto Von Dentz
ee8b0de2de Add check for g_dbus_register_interface return 2010-03-24 23:16:45 +02:00
Luiz Augusto Von Dentz
08342d21d5 Add check for sdp_record_find 2010-03-24 23:16:45 +02:00
Luiz Augusto Von Dentz
dd7494fa11 Check the return of getsockopt and getsockname logging the errors 2010-03-24 23:16:45 +02:00
Luiz Augusto Von Dentz
ec98e03076 Add missing check for listen return 2010-03-24 23:16:45 +02:00
Luiz Augusto Von Dentz
2bf0e14286 Fix directly dereferenced pointer 'auth' 2010-03-24 23:16:45 +02:00
Luiz Augusto Von Dentz
37ba10ff87 Use correct sign for error value 2010-03-22 13:10:37 +02:00
Johan Hedberg
fa2686f9bf Fix SCO connection error propagation 2010-03-22 13:07:23 +02:00
Johan Hedberg
4ebb87203d Coding style fixes for telephony-ofono.c 2010-03-08 23:31:43 -04:00
Vinicius Costa Gomes
f62006a861 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.
2010-03-08 16:34:10 -08:00
Marcel Holtmann
d44989c514 Make interface callback tables const 2010-03-07 14:33:40 -08:00
Vinicius Costa Gomes
e6b83be22e Fix the case when the requested name is already in use
We weren't setting the dbus error in this situation.
2010-03-07 14:31:15 -08:00
Marcel Holtmann
ee620aca94 Release 4.62 2010-03-07 13:41:00 -08:00
Marcel Holtmann
2b416a2fdc Update library version 2010-03-07 13:34:06 -08:00
Marcel Holtmann
fae1aebd13 Pretty print HCI revision and LMP subversion 2010-03-07 13:30:50 -08:00
Marcel Holtmann
39d6894702 Fix accidental OCF_READ_INQUIRY_TRANSMIT_POWER_LEVEL breakage 2010-03-07 13:22:11 -08:00
Luiz Augusto Von Dentz
8e01fb1560 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.
2010-03-04 16:16:15 -04:00
Daniel Orstadius
c63916361c 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.
2010-02-21 10:44:08 -03:00
Denis Kenzior
2a89d23a37 Punch a hole for HandsfreeAgent in dbus policy 2010-02-18 14:10:05 -03:00
Luiz Augusto Von Dentz
3a16e6d242 Mark inuse flag whenever a stream is configured
Currently it was only marked when acting as the initiator.
2010-02-18 14:08:17 -03:00
Luiz Augusto Von Dentz
28d337cd21 Fix possible crash while verifying avdtp version
Reproducible with Codenomicon A2DP testsuite 1.4.2.
2010-02-17 02:01:07 -08:00
Vinicius Costa Gomes
9839edb217 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.
2010-02-17 01:58:51 -08:00
Gustavo F. Padovan
3eb33daebf audio/gateway.c: Don't reply to DBus when connection comes from AG 2010-02-15 21:26:30 -08:00
Bastien Nocera
4e68b91447 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
2010-02-15 11:24:01 -08:00
Marcel Holtmann
372a952dab Fix accidental hci_read_inquiry_transmit_power_level symbol breakage 2010-02-13 14:16:51 -08:00
Marcel Holtmann
5e5b0fdcd3 Show HCI and LMP versions on separate lines 2010-02-13 02:23:55 +01:00
Marcel Holtmann
3e0db2b27a Show controller type and bus type for every device 2010-02-13 02:22:18 +01:00
Marcel Holtmann
4aa4bdb16a Add helper functions for controller type string conversion 2010-02-13 02:21:29 +01:00
Marcel Holtmann
bbd888d066 Add Bluetooth controller types 2010-02-13 02:09:52 +01:00
Marcel Holtmann
920c3587d5 Release 4.61 2010-02-12 20:53:58 +01:00
Gustavo F. Padovan
6744ec5967 Deprecate the ListAdapters() method on Manager 2010-02-12 20:39:53 +01:00
Gustavo F. Padovan
ff38bd9092 Add {deprecated} annotation to ListDevices() 2010-02-12 20:39:53 +01:00
Claudio Takahasi
d9b3dff970 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.
2010-02-11 23:36:49 -02:00
Claudio Takahasi
cc9913c73e Add argument verification when unregistering Handsfree agent
The given object path argument must match the same value that has been
used on registration.
2010-02-10 09:05:02 -02:00
Daniel Orstadius
e9b1a8f726 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.
2010-02-10 05:29:40 -05:00
Marcel Holtmann
06e9ad1e95 The TX power level is a signed int and not an unsigned int 2010-02-05 20:16:38 -08:00
Marcel Holtmann
12b7f844c0 Print EIR attribute for Device ID 2010-02-05 20:16:03 -08:00
Marcel Holtmann
b6958147b8 Add support for handling Inquiry Response Transmit Power Level 2010-02-05 20:09:54 -08:00
Marcel Holtmann
c886503a79 Fix another fallout from Inquiry Response Transmit Power Level typo 2010-02-05 19:52:59 -08:00
Marcel Holtmann
78e00df337 Don't include PnP service class in EIR response 2010-02-05 19:23:31 -08:00
Marcel Holtmann
ed9e3ff848 Fix my stupid typo with Read Inquiry Response Transmit Power Level 2010-02-05 10:31:50 -08:00
Bastien Nocera
0e6dfbda8e 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.
2010-02-05 06:55:10 -08:00
Nick Pelly
fc3764769f 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.
2010-02-04 17:10:50 -08:00
Gustavo F. Padovan
a2b958337f 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.
2010-02-04 10:54:45 -08:00
Gustavo F. Padovan
f3ad234092 clean up audio/gateway.c
remove all code related to the AT engine
2010-02-03 18:36:38 -08:00
Marcel Holtmann
69c1b49a87 Update configure checks for libcap-ng and libnl 2010-02-03 14:33:13 -08:00
Johan Hedberg
d1f115e612 Fix mode restoration when remember_powered is false 2010-02-03 13:40:28 -08:00
Johan Hedberg
989c60c0b9 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.
2010-02-03 12:07:51 -08:00