Commit Graph

6243 Commits

Author SHA1 Message Date
Forrest Zhao
a34c155f55 add support for HFP plugin for oFono 2009-05-13 00:30:47 -07:00
Johan Hedberg
47fe354060 Fix "HFP active" detection 2009-05-12 12:44:30 +03:00
Johan Hedberg
eb68caa06b Fix operator string to be in quotation marks 2009-05-12 11:03:59 +03:00
Denis Kenzior
1f6936fe7c Make the parent path invalidateable 2009-05-11 11:50:18 -07:00
Marcel Holtmann
f17f0e3e25 Mention Ilya's contributions 2009-05-10 13:20:28 -07:00
Ilya Rubtsov
384f136ae2 Add NameResolving option to main.conf
Patch adds new option to main.conf - NameResolving. If NameResolving=false
then we don't ask remote devices for their names after inquiry. Default
value is true.
2009-05-10 13:19:33 -07:00
Marcel Holtmann
81352f7d2d Increase BCSP timeout for setup and transaction 2009-05-10 09:32:09 -07:00
Marcel Holtmann
72c6ed7e2d Use timeout value also for BCSP timeout 2009-05-09 22:05:54 -07:00
Marcel Holtmann
9b3cfb2d89 Add tool to calculate HCI event mask 2009-05-09 22:05:07 -07:00
Marcel Holtmann
ccf3a03562 Check for LMP version and not HCI revision 2009-05-09 21:50:48 -07:00
Marcel Holtmann
045ef6816f Release 4.39 2009-05-09 11:18:19 -07:00
Luiz Augusto von Dentz
8d07c9eea9 Fix race condition while pairing.
Agent may quit/unregister while a response was already received but not
processed which may cause bluetoothd to misinterpret the response and unmark
temporary flag.
2009-05-08 18:26:58 -03:00
Luiz Augusto von Dentz
048cda340a Make sure temporary flag is only removed when Device.Create*Device succeed. 2009-05-08 18:26:58 -03:00
Luiz Augusto von Dentz
4aaa7dfcad Change var name inqmode to discov_interval to be more suggestive. 2009-05-08 18:26:58 -03:00
Johan Hedberg
929f754fbd Fix agent cancellation for sec mode 3 pairing acceptor failure 2009-05-08 23:56:02 +03:00
Marcel Holtmann
3818459c88 Use ppoll() instead of poll() for keeping line discipline 2009-05-08 10:55:15 -07:00
Johan Hedberg
0a4ec18352 Fix try_send error handling 2009-05-07 21:09:21 +03:00
Johan Hedberg
3a7936619f Fix fix typo in device-api.txt 2009-05-07 21:02:00 +03:00
Luiz Augusto von Dentz
be02c289d9 Fix crash when calling g_dbus_remove_watch from inside the watch callback. 2009-05-06 17:15:27 -03:00
Johan Hedberg
957f476952 Fix sink disconnect callback removal 2009-05-06 19:30:57 +03:00
Johan Hedberg
d34a99f009 Fix service class update when adapter is DOWN 2009-05-06 18:56:39 +03:00
Johan Hedberg
e1d35ca55c Add NULL pointer check to adapter_get_device return value 2009-05-06 18:10:33 +03:00
Luiz Augusto von Dentz
7283c356b0 Remove watch properly when doing bt_cancel_discovery.
Any watch listen on sdp socket should be removed since the user_data is
most likely to be freed and no callback should be called after it.
2009-05-06 17:57:57 +03:00
Johan Hedberg
d32b5acf1a Remove unnecessary "starting" variable
Now that the plugins are loaded before any adapter is initialized it is
not necessary to monitor bluetoothd startup using the "starting" variable
anymore.
2009-05-06 16:21:20 +03:00
Johan Hedberg
09cd069379 Fix service classes race condition upon starting bluetoothd
During initial startup if InitiallyPowered=false we might not get the
"write class of device complete" HCI event before bluetoothd puts the
adapter DOWN. In this case the correct class never gets written to storage
but stays in adapter->svc_cache instead. This patch makes sure that the
right class is always set in adapter_up().
2009-05-06 16:13:59 +03:00
Alok Barsode
4e71ac8617 Adding stop() functionality to hciops plugin. 2009-05-06 12:37:44 +03:00
Alok Barsode
87056b024e Code cleanup in adapter.c.
Not passing device descriptor to adater_up.
2009-05-06 12:34:08 +03:00
Luiz Augusto von Dentz
3a653bf55f Add workaround for dealing with unknown inquiry complete.
The workaround is necessary to identify situations when there is no device
around but periodic inquiry is active which would prevent DeviceDisappered
signals from being emitted.
2009-05-05 17:37:16 -03:00
Luiz Augusto von Dentz
be03cd6d97 Make use of struct remote_dev_info for out of range list. 2009-05-05 17:37:09 -03:00
Luiz Augusto von Dentz
bc105a56d4 Fix discovering when using software scheduler.
Software scheduling (inquiry) was not handling device founds correctly,
the devices found in a round are not removed from the out of range list.
2009-05-05 17:30:46 -03:00
Luiz Augusto von Dentz
66ef7864f7 Continue emitting DeviceFound for devices which the name was already resolved.
The ui may still be interested on receiving rssi updates for showing which
device is apparently closer.
2009-05-05 17:30:13 -03:00
Luiz Augusto von Dentz
e1125a71b6 Fix memory leak. 2009-05-05 17:27:08 -03:00
Johan Hedberg
eda1542f27 Fix NoInputNoOutput IO capability string 2009-05-05 00:08:58 +03:00
Johan Hedberg
6f99dcb195 Fix BtIO race condition in detecting a closed file descriptor
With the BtIO API the way to abort some operation is by calling
g_io_channel_shutdown. This will cause the corresponding file descriptor to be
closed and G_IO_NVAL to be reported to the BtIO internal watch callback. When
BtIO gets G_IO_NVAL it knows not to call back to the application since the
operation is considered aborted.

There's unfortunately a race condition associated with this. The G_IO_NVAL will
get reported only in the next main loop iteration that follows the one where
the file descriptor was closed. So, if there was input or an error for the file
descriptor in the same iteration where it was closed the BtIO internal watch
will get called with something other than G_IO_NVAL. In other words calling
g_io_channel_shutdown doesn't provide a 100% guarantee that the application
callback will not get called.

This patch fixes the problem by doing a secondary check for POLLNVAL by calling
poll() with a zero timeout in the BtIO internal watch functions.
2009-05-04 22:13:51 +03:00
Luiz Augusto von Dentz
6932b48abe Make sure unix clients are released before freeing audio device data. 2009-05-04 10:16:46 -03:00
Luiz Augusto von Dentz
56b3f3c383 Make sessions list per server rather than global. 2009-05-04 10:16:46 -03:00
Luiz Augusto von Dentz
c4f3b52e2f Fix bug which cause disconnect watches to run on freed data.
Watches were not being removed when the pointer passed as user_data is freed.
2009-05-04 10:16:46 -03:00
Marcel Holtmann
6f220b305b Make sure to initialize the feature mask variable 2009-05-04 02:42:55 -07:00
Johan Hedberg
18e22b01b6 Fix another format string issue 2009-05-04 11:00:23 +03:00
Marcel Holtmann
b6be7512a6 Release 4.38 2009-05-03 23:59:29 -07:00
Marcel Holtmann
d8263cd11e Update library version 2009-05-03 23:58:25 -07:00
Johan Hedberg
2f8164437d Add missing signal.h include 2009-05-04 09:28:10 +03:00
Marcel Holtmann
6790d4504a Newer flex versions generate better code and don't need special flags 2009-05-03 20:13:37 -07:00
Marcel Holtmann
1ab388feb3 Add support for builtin plugins 2009-05-03 18:54:22 -07:00
Johan Hedberg
c369f322aa Set HFP=true in audio.conf and update the comment 2009-05-03 23:39:53 +03:00
Marcel Holtmann
493b4ab0bf Add alias for setting ERTM mode value 2009-05-02 23:03:57 -07:00
Marcel Holtmann
2c28cf248b Add constants for Enhanced Retransmission and Streaming modes 2009-05-02 22:21:00 -07:00
Alok Barsode
076540a14a Adding start() functionality to hciops plugin. 2009-05-03 02:21:44 +03:00
Alok Barsode
59b5cef44c Moving adapter_ops registration to adapter.c. 2009-05-03 02:17:33 +03:00
Johan Hedberg
75c803c5e6 Fix HCI socket leak in device_remove_bonding 2009-05-03 01:58:44 +03:00