Age | Commit message (Collapse) | Author | Files | Lines |
|
When a RequestDisconnect() is received, the socket must be closed.
This way, the related emulator will be freed.
|
|
A watch to G_IO_HUP is added to remove the file descriptor when the
emulator is automatically disconnected when its GAtServer closes.
We use a dupped file descriptor because the events aren't delivered to
the file descriptor who originated them.
|
|
We need to store active connections so we can disconnect them at
RequestDisconnect().
When we remove a connection from the hash, we also close it.
|
|
|
|
|
|
|
|
For example, in the case of a remote-initiated pairing, the device may
be created and Paired first, then the UUID array is emitted later.
|
|
This patch adds a function to monitor when the AG sends a new codec
before establishing the SCO connection.
|
|
|
|
|
|
|
|
|
|
This patch parses and reads the profile "Version" that comes in the fd
dictionary of the NewConnection method. "Version" is input for Audio Card
registration.
|
|
|
|
|
|
This is just the skeleton of a Handsfree Audio Card for the HF side of
HFP 1.6.
|
|
|
|
make --no-print-directory all-am
CC plugins/sim900.o
cc1: warnings being treated as errors
plugins/sim900.c: In function ‘shutdown_device’:
plugins/sim900.c:180:9: error: unused variable ‘fd’
make[1]: *** [plugins/sim900.o] Error 1
make: *** [all] Error 2
|
|
|
|
|
|
Also add gprs and call-volume support.
|
|
|
|
We should be checking that modems != NULL, not modems->data. This is
because the list can be empty and we would crash.
|
|
We should be checking that modems != NULL, not modems->data. This is
because the list can be empty and we would crash.
|
|
|
|
This patch adds initial implementation of the D-Bus Profile1
interface and methods responsible for handling Bluetooth connections.
The DUN GW profile interface is registered as soon as a GPRS capable
modem is registered in oFono.
|
|
As BlueZ 5 introduced backwards incompatible API changes, and we want to
keep support for BlueZ 4 based DUN GW plugin for some time, we need to
separate DUN GW plugin which is based on BlueZ 4 from the one based on
BlueZ 5.
The dun_gw.c plugin is renamed to dun_gw_bluez4. This will make it easy
to add a DUN GW plugin for BlueZ 5.
|
|
|
|
|
|
|
|
This patch moves the SCO socket handling from hfp_hf_bluez5 plugin. It
will be instead handled by the handsfree-audio functionality. This is
the initial step to be able to support sending the file descriptor
through the Agent NewConnection method.
|
|
|
|
|
|
This function allows to specify which role is registering when the
profile does not have specific UUIDs for each role.
|
|
This commit moves the ref / unref to hfp_hf_bluez5 to make
bluez5 more generic and reusable.
|
|
For local initiated disconnection the GAtChat disconnect callback is not
called. For this case, Audio Card remove function needs to be called.
|
|
|
|
This patch removes previous registered Audio Card when the remote
Bluetooth device triggers the service level disconnection.
|
|
This patch removes the previously created Audio Card if the service
level negotiation fails.
|
|
|
|
This patch registers the Handsfree Audio Card when the service level
connection is established.
|
|
RequestAuthorization method call may trigger pairing and/or pop up a
dialog in the remote device to which the user needs to react. Thus
increase D-Bus timeouts to 60 seconds for the Bluez 4 plugin.
|
|
|
|
|
|
|
|
This patch adds sending of the Version argument to RegisterProfile
method. The version is required to create the service record
containing the correct profile version.
|
|
Fallback to HFP 1.5 if defer setup is not supported since it is not
possible to proceed with codec negotiation.
|
|
Whenever a SCO connection is attempted, ensure that the SLC link is
already active between us and the same remote peer.
|
|
The number of paired devices is quite small, so the use of the hash
table for lookup seems unnecessary. The typical user will have no more
than 1-2 devices paired, maybe half a dozen in a less common case.
|
|
|