summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2014-10-20emulator: Add +BIEV implementationDenis Kenzior1-0/+39
2014-10-20emulator: Add +BIND implementationDenis Kenzior1-0/+65
2014-10-20emulator: Fix CHLD=? not treated as part of SLCDenis Kenzior1-7/+37
2014-10-20emulator: Improve SLC establishment logicDenis Kenzior3-1/+43
2014-10-20hfp: Add enum for known HF IndicatorsDenis Kenzior1-0/+4
2014-10-20hfp: Update for new HFP 1.7 valuesDenis Kenzior1-1/+4
2014-10-20doc: Fixup Handsfree APIDenis Kenzior1-1/+3
2014-09-20handsfree-audio: Fix broken coding style in switch statementMarcel Holtmann1-4/+4
2014-09-15gdbus: Fix match rule for NameOwnerChangedAlban Crequy1-1/+2
When subscribing to the D-Bus signal NameOwnerChanged from the bus driver, specify the object path and the sender in the match rule. Otherwise, random connections on the bus could impersonate the bus driver.
2014-09-08gdbus: Fix crash when watch is toggled or disconnectedLuiz Augusto von Dentz1-2/+8
This partially reverts 510b32b7156625b9df737c916b7a7a5c6fb285b9 since it still necessary to take a reference before calling dbus_watch_handle since internally it can call watch_info_free as in the following trace: Invalid read of size 8 at 0x121085: watch_func (mainloop.c:105) by 0x4C72694: g_main_context_dispatch (gmain.c:2539) by 0x4C729C7: g_main_context_iterate.isra.23 (gmain.c:3146) by 0x4C72DC1: g_main_loop_run (gmain.c:3340) by 0x120541: main (main.c:551) Address 0x5bbcd90 is 16 bytes inside a block of size 24 free'd at 0x4A079AE: free (vg_replace_malloc.c:427) by 0x4C7837E: g_free (gmem.c:252) by 0x4F708BF: dbus_watch_set_data (dbus-watch.c:614) by 0x4F70938: _dbus_watch_unref (dbus-watch.c:132) by 0x4F6E9A7: _dbus_transport_handle_watch (dbus-transport.c:884) by 0x4F59AFB: _dbus_connection_handle_watch (dbus-connection.c:1497) by 0x4F70AF9: dbus_watch_handle (dbus-watch.c:683) by 0x121084: watch_func (mainloop.c:103) by 0x4C72694: g_main_context_dispatch (gmain.c:2539) by 0x4C729C7: g_main_context_iterate.isra.23 (gmain.c:3146) by 0x4C72DC1: g_main_loop_run (gmain.c:3340) by 0x120541: main (main.c:551)
2014-09-08gdbus: Fix crash when calling g_dbus_add_service_watchLuiz Augusto von Dentz1-1/+0
If g_dbus_add_service_watch is called for service which bus name is already known the following crash can happen: invalid read of size 1 at 0x4C2A2F2: strlen (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so) by 0x4E97722: g_strdup (in /usr/lib64/libglib-2.0.so.0.3800.2) by 0x405B0C: update_name_cache (watch.c:435) by 0x405C37: update_service (watch.c:593) by 0x4E7A2A5: g_main_context_dispatch (in /usr/lib64/libglib-2.0.so.0.3800.2) by 0x4E7A627: ??? (in /usr/lib64/libglib-2.0.so.0.3800.2) by 0x4E7AA39: g_main_loop_run (in /usr/lib64/libglib-2.0.so.0.3800.2) by 0x4038EA: client_ready (test-gdbus-client.c:1014) by 0x4E9E5E0: ??? (in /usr/lib64/libglib-2.0.so.0.3800.2) by 0x4E9E7A5: ??? (in /usr/lib64/libglib-2.0.so.0.3800.2) by 0x4E9EB1A: g_test_run_suite (in /usr/lib64/libglib-2.0.so.0.3800.2) by 0x403614: main (test-gdbus-client.c:1058) Address 0x5dbe5d0 is 0 bytes inside a block of size 7 free'd at 0x4C28577: free (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so) by 0x4E7FF7E: g_free (in /usr/lib64/libglib-2.0.so.0.3800.2) by 0x405B04: update_name_cache (watch.c:434) by 0x405C37: update_service (watch.c:593) by 0x4E7A2A5: g_main_context_dispatch (in /usr/lib64/libglib-2.0.so.0.3800.2) by 0x4E7A627: ??? (in /usr/lib64/libglib-2.0.so.0.3800.2) by 0x4E7AA39: g_main_loop_run (in /usr/lib64/libglib-2.0.so.0.3800.2) by 0x4038EA: client_ready (test-gdbus-client.c:1014) by 0x4E9E5E0: ??? (in /usr/lib64/libglib-2.0.so.0.3800.2) by 0x4E9E7A5: ??? (in /usr/lib64/libglib-2.0.so.0.3800.2) by 0x4E9EB1A: g_test_run_suite (in /usr/lib64/libglib-2.0.so.0.3800.2) by 0x403614: main (test-gdbus-client.c:1058)
2014-09-08Revert "gdbus: Don't include just added interfaces in GetManagedObjects"Luiz Augusto von Dentz1-7/+1
This actually creates a problem since the code now does flush any pending message on the queue any signal will be send right away before the actual reply to GetManagedObjects which will not contain those interfaces.
2014-09-08gdbus: Fix use after freeAndrei Emeltchenko1-3/+8
Refactor filter_data_remove_callback so that we do not iterate over freed pointer.
2014-09-08gdbus: Avoid reporting GDBusClient disconnect twiceClaudio Takahasi1-2/+12
No matter if disconnection was reported previously, g_dbus_client_unref() was always calling service disconnect callback. This patch fix the following scenario: 1) service disconnects from the bus 2) disconnect callback gets called 3) client calls g_dbus_client_unref(), disconnect callback is called again.
2014-08-01build: Avoid warnings about _FORTIFY_SOURCEDenis Kenzior1-1/+1
Gentoo (and others) define _FORTIFY_SOURCE=2 by default. We redefine it, resulting in an error / configure failure.
2014-07-08ublox: Minor style cleanupDenis Kenzior1-0/+1
2014-07-08ublox: Remove unneeded VENDOR flagsDenis Kenzior1-4/+2
devinfo and netreg atoms don't use vendor specific behavior
2014-07-08plugins: new driver for u-blox SARA-U270 modemsPhilip Paeps2-0/+296
This driver may also work (perhaps with more or less trivial changes) with other u-blox modems (SARA, LISA, LEON) but this hasn't been tested.
2014-07-08atmodem: set the auth method for u-blox modemsPhilip Paeps1-3/+28
2014-07-08sim: query u-blox PIN retries with AT+UPINCNTPhilip Paeps1-0/+45
2014-07-08udevng: add detection logic for u-blox modemsPhilip Paeps1-0/+42
2014-07-08quectel: Minor style cleanupDenis Kenzior1-0/+1
2014-07-08quectel: Remove unneeded VENDOR flagsDenis Kenzior1-8/+4
Only the sim atom has QUECTEL specific code
2014-07-08plugins: add a new driver for Quectel UC15 modemsPhilip Paeps2-0/+382
2014-06-30gprs: add support for u-blox +UREG URCsPhilip Paeps1-0/+44
2014-06-30atmodem: add vendor u-bloxPhilip Paeps1-1/+2
2014-06-30atmodem: Minor style fixupsDenis Kenzior1-0/+2
2014-06-30sim: query Quectel UC15 PIN retries with AT+QPINC?Philip Paeps1-0/+49
2014-06-30udevng: add detection logic for Quectel modemsPhilip Paeps1-0/+42
2014-06-30atmodem: add vendor QuectelPhilip Paeps1-1/+2
2014-06-30hfpmodem: Fix crash with more than two callsSergio Checa Blanco1-1/+1
A periodic CLCC polling is started when there is an ongoing multiparty call and a new call appears in the system. A simple way to reproduce the crashing scenario is: 1. Place a call. 2. Place a second call. 3. Create a multiparty call with both calls. 4. Place a third call (incoming or outgoing does not matter). 5. Disconnect HFP from the modem. Within the function ciev_callheld_notify, the AT+CLCC command is also invoked, thus a new cyclic CLCC polling is started, and it overwrites the timer resource identifier stored in voicecall_data.clcc_source. This means that there are several timers doing the CLCC polling, but only one of those is under control, i.e. it can be removed through its source identifier, hence a timer source leak. This has a fatal consequence when the HFP modem is disconnected. The function hfp_voicecall_remove stops the timer that is under control before freeing the voicecall_data struct. However there are other timers that are still active and will execute its handler poll_clcc afterwards. Inside poll_clcc the driver_data is accessed, which is already NULL. A solution for this is to avoid starting a CLCC polling if there is already one active, i.e. clcc_source is not 0. By doing this the uncontrolled timers will not cycle forever.
2014-06-29Release 1.15Marcel Holtmann2-1/+12
2014-06-24gprs: provision the authentication methodPhilip Paeps1-0/+2
2014-06-24mbpi: add support for provisioning the auth methodPhilip Paeps1-0/+35
Use the authentication method from the mobile-broadband-provider-info database if it is specified and supported (we support CHAP and PAP). Default to CHAP if the database does not specify a method (i.e.: the previous behaviour).
2014-06-24include: add auth method to the provisioning APIPhilip Paeps1-0/+1
2014-06-21AUTHORS: Mention Philip's contributionsDenis Kenzior1-0/+1
2014-06-21atmodem: set the PPP authentication method to usePhilip Paeps1-0/+14
2014-06-21gprs: Make the code a bit easier to readDenis Kenzior1-3/+6
2014-06-21gprs: make PPP authentication method configurablePhilip Paeps1-0/+84
Add a new "AuthenticationMethod" property to select between "pap" and "chap" PPP authentication, defaulting to "chap" (i.e.: previous behaviour).
2014-06-21include: add auth method to the gprs context APIPhilip Paeps1-0/+6
2014-06-21doc: describe the AuthenticationMethod propertyPhilip Paeps1-0/+4
2014-06-21gatchat: Fix up minor coding style issuesDenis Kenzior2-1/+7
2014-06-21gatchat: implement PAP authenticationPhilip Paeps5-21/+247
Make the authentication method configurable, CHAP or PAP, defaulting to CHAP (i.e.: previous behaviour). Implementation details: o If PAP is configured, we NAK the CHAP authentication protocol option in LCP configuration requests and suggest PAP instead. This works around the amusing requirement of 3GPP TS 29.061 that modems must send a forced positive acknowledgement of the authentication method tried (i.e.: the modem will successfully accept any CHAP handshake, but if the network only supports PAP, the modem will hang up when it tries and fails to activate the PDP context) o The PAP Authenticate-Request is resent a hard-coded three times at ten-second intervals. This may be a bit too persistent. Chances are if it doesn't work the first time, it'll never work, but the RFC insists that we MUST retry.
2014-06-21AUTHORS: Mention Sergio's contributionsDenis Kenzior1-0/+1
2014-06-21hfpmodem: Split AT+VTS command into multiple +VTSSergio Checa Blanco1-3/+8
According to the standard "3GPP 27.007 v6.8.0" Appendix C.2.11, when sending multiple DTMF characters, these must go in individual +VTS commands for each tone. This adopts the AT modem approach. Before: AT+VTS=1234\r After: AT+VTS=1;+VTS=2;+VTS=3;+VTS=4\r
2014-06-10test: Adapt data test scripts to multi-modemAlfonso Sanchez-Beato2-47/+81
Some tests scripts were not ready to handle situations with more than one modem present. This change fixes the data context scripts.
2014-06-10test: Adapt voice call test scripts to multi-modemAlfonso Sanchez-Beato5-34/+75
Some tests scripts were not ready to handle situations with more than one modem present. This change fixes the scripts that handle voice calls.
2014-05-30hfp: Fix case where RING never arrivesDenis Kenzior1-1/+28
2014-05-21hfp: Use proper prefixDenis Kenzior1-1/+2
Otherwise the BCS command can consume unsolicited notifications. ofonod[3270]: < \r\n+BCS: 2\r\n ofonod[3270]: > AT+BCS=2\r ofonod[3270]: < \r\n+CIEV: 1,1\r\n ofonod[3270]: < \r\n+CIEV: 2,0\r\n ofonod[3270]: < \r\nOK\r\n
2014-04-22handsfree: correct crash on connect of hfpAndrew Earl1-1/+2