summaryrefslogtreecommitdiffstats
path: root/plugins
AgeCommit message (Collapse)AuthorFilesLines
2013-04-22hfp_ag_bluez5: Implement RequestDisconnection()Paulo Borges1-3/+27
When a RequestDisconnect() is received, the socket must be closed. This way, the related emulator will be freed.
2013-04-22hfp_ag_bluez5: Add watch for G_IO_HUP when connectPaulo Borges1-1/+22
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.
2013-04-22hfp_ag_bluez5: Create a hash to store connectionsPaulo Borges1-0/+15
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.
2013-04-18hfp_ag_bluez5: Remove unused includesPaulo Borges1-4/+0
2013-04-18hfp_ag_bluez5: Include hfp.hPaulo Borges1-0/+1
2013-04-18phonesim: Include hfp.hPaulo Borges1-0/+1
2013-04-18hfp_hf_bluez5: UUIDs can change after PairingVinicius Costa Gomes1-1/+2
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.
2013-04-15hfp_hf_bluez5: Watch for changes in the selected codecVinicius Costa Gomes1-0/+40
This patch adds a function to monitor when the AG sends a new codec before establishing the SCO connection.
2013-04-09hfp_hf_bluez5: Include hfp.hDenis Kenzior1-0/+1
2013-04-09hfp_hf_bluez5: Remove redundant parenthesesDenis Kenzior1-2/+2
2013-04-09hfp_hf_bluez5: Add audio card .connect() for HFP 1.6Vinicius Costa Gomes1-1/+29
2013-04-05hfp_hf_bluez5: Use 1.6 card driverVinicius Costa Gomes1-2/+10
2013-04-05hfp_hf_bluez5: Add extracting versionClaudio Takahasi1-1/+48
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.
2013-04-01huawei: Use AlwaysOnline for CDMA modemsForest Bond1-0/+7
2013-03-28hfp_hf_bluez5: Make sure to call the callbackDenis Kenzior1-1/+2
2013-03-28hfp_hf_bluez5: Add a card driver for HFP 1.6Vinicius Costa Gomes1-0/+37
This is just the skeleton of a Handsfree Audio Card for the HF side of HFP 1.6.
2013-03-26sim900: Fix disable cleanup procedureDenis Kenzior1-7/+1
2013-03-26sim900: Fix compile errorDenis Kenzior1-1/+1
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
2013-03-26sim900: Remove unneeded goto / labelDenis Kenzior1-2/+0
2013-03-26sim900: Properly clean up device IOChannel on errorDenis Kenzior1-1/+5
2013-03-26sim900: Add multiplexer supportRenat Zaripov1-30/+171
Also add gprs and call-volume support.
2013-03-26sim900: Fix leak of options hash tableDenis Kenzior1-0/+2
2013-03-21hfp_ag_bluez5: Fix sanity checkDenis Kenzior1-2/+2
We should be checking that modems != NULL, not modems->data. This is because the list can be empty and we would crash.
2013-03-21dun_gw_bluez5: Fix sanity checkDenis Kenzior1-2/+2
We should be checking that modems != NULL, not modems->data. This is because the list can be empty and we would crash.
2013-03-21dun_gw_bluez5: Fix copy-paste errorDenis Kenzior1-1/+1
2013-03-21dun_gw: Add BlueZ 5 versionFrédéric Danis2-0/+236
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.
2013-03-21bluetooth: Rename DUN GW pluginFrédéric Danis1-2/+3
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.
2013-03-18hfp_hf_bluez5: Set remote and local informationDenis Kenzior1-0/+2
2013-03-18hfp_hf_bluez5: Update to the new APIDenis Kenzior1-1/+1
2013-03-12hfp_hf_bluez5: Remove duplicated includeClaudio Takahasi1-1/+0
2013-03-04hfp_hf_bluez5: Remove SCO handlingClaudio Takahasi1-101/+1
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.
2013-03-04hfp_hf_bluez5: Use new bluetooth.h headerClaudio Takahasi1-0/+1
2013-03-04bluez5: Remove Bluetooth related utilitiesClaudio Takahasi2-58/+0
2013-03-04bluez5: Add bt_register_profile_with_rolePaulo Borges2-2/+17
This function allows to specify which role is registering when the profile does not have specific UUIDs for each role.
2013-03-01bluez5: Move ref / unref handsfree audioPaulo Borges2-14/+6
This commit moves the ref / unref to hfp_hf_bluez5 to make bluez5 more generic and reusable.
2013-02-28hfp_hf_bluez5: Remove Card on RequestDisconnectionClaudio Takahasi1-0/+3
For local initiated disconnection the GAtChat disconnect callback is not called. For this case, Audio Card remove function needs to be called.
2013-02-28hfp_hf_bluez5: Remove Card when modem is disabledClaudio Takahasi1-0/+3
2013-02-28hfp_hf_bluez5: Remove Card if SLC is disconnectedClaudio Takahasi1-0/+3
This patch removes previous registered Audio Card when the remote Bluetooth device triggers the service level disconnection.
2013-02-28hfp_hf_bluez5: Remove Card when SLC failsClaudio Takahasi1-0/+3
This patch removes the previously created Audio Card if the service level negotiation fails.
2013-02-28hfp_hf_bluez5: Add local address to Audio CardClaudio Takahasi1-2/+15
2013-02-28hfp_hf_bluez5: Add registering Audio CardClaudio Takahasi1-0/+21
This patch registers the Handsfree Audio Card when the service level connection is established.
2013-02-26bluez4: Increase Bluez 4 D-Bus timeouts to 60 secondsPatrik Flykt1-1/+1
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.
2013-02-21bluez5: ref / unref handsfree audioDenis Kenzior1-1/+14
2013-02-20hfp_ag_bluez5: Send HFP version when registeringClaudio Takahasi1-2/+6
2013-02-20hfp_hf_bluez5: Send HFP version when registeringClaudio Takahasi1-1/+1
2013-02-20bluez5: Add profile version argumentClaudio Takahasi2-2/+5
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.
2013-02-20hfp_hf_bluez5: Add local HFP version trackingClaudio Takahasi1-1/+4
Fallback to HFP 1.5 if defer setup is not supported since it is not possible to proceed with codec negotiation.
2013-02-14hfp_hf_bluez5: Ensure active SLC for SCO linksDenis Kenzior1-1/+23
Whenever a SCO connection is attempted, ensure that the SLC link is already active between us and the same remote peer.
2013-02-14hfp_hf_bluez5: Remove use of hash tableDenis Kenzior1-10/+14
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.
2013-02-14hfp_hf_bluez5: Use faster method of disable()Denis Kenzior1-9/+14