summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2015-10-16gril: Remove assertsAlfonso Sanchez-Beato3-14/+14
2015-10-15rildev: Do not create modems if no env var setAlfonso Sanchez-Beato1-1/+1
Do not create rilmodem instances if the environment variable OFONO_RIL_DEVICE is not set.
2015-10-15gril: Remove g_ril_request_read_imsiDenis Kenzior2-16/+0
2015-10-15rilmodem: Move get_imsi implementation to rilmodemDenis Kenzior1-1/+7
2015-10-14gril: Fix IO reference countingDenis Kenzior2-1/+2
2015-10-14gril: Remove unused structure membersDenis Kenzior1-8/+3
2015-10-14gril: Remove unused headerDenis Kenzior1-1/+0
2015-10-13gril: Remove unused functionDenis Kenzior2-26/+0
2015-10-13gril: Remove unused functionDenis Kenzior2-82/+0
2015-10-13build: Add rilmodem to the buildAlfonso Sanchez-Beato2-1/+48
Build gril, the rilmodem and infineon drivers, and the corresponding plugins.
2015-10-13rildev: plugin that creates ril-type modemsAlfonso Sanchez-Beato1-0/+133
This plugin creates modems that use the rilmodem driver by looking at environment variables: when OFONO_RIL_DEVICE exists it creates a ril modem of the sub-type specified by the variable. OFONO_RIL_NUM_SIM_SLOTS specifies the number of SIM slots for multi-SIM modems.
2015-10-13infineon: Definitions for infineon modemAlfonso Sanchez-Beato1-0/+77
2015-10-13infineon: Plugin for infineon modemsAlfonso Sanchez-Beato1-0/+77
Plugin for infineon modems, which is a variant of the ril modem.
2015-10-13ril: Plugin for Android modemsTony Espy2-0/+491
Plugin for Android modem, which uses the rilmodem driver. Co-authored-by: Tony Espy <espy@canonical.com> Co-authored-by: Ricardo Salveti de Araujo <ricardo.salveti@canonical.com> Co-authored-by: Alfonso Sanchez-Beato <alfonso.sanchez-beato@canonical.com> Co-authored-by: Islam Amer <islam.amer@jollamobile.com> Co-authored-by: Jussi Kangas <jussi.kangas@tieto.com> Co-authored-by: Juho Hämäläinen <juho.hamalainen@tieto.com> Co-authored-by: Martti Piirainen <martti.piirainen@canonical.com> Co-authored-by: Jarko Poutiainen <Jarko.Poutiainen@oss.tieto.com> Co-authored-by: Tommi Kenakkala <tommi.kenakkala@oss.tieto.com> Co-authored-by: Petri Takalokastari <petri.takalokastari@oss.tieto.com> Co-authored-by: Miia Leinonen <miia.leinonen@oss.tieto.com> Co-authored-by: Mikko Hurskainen <mikko.hurskainen@nomovok.com> Co-authored-by: You-Sheng Yang <vicamo.yang@canonical.com>
2015-10-13rilmodem: driver for Android modemsTony Espy22-0/+7558
Driver for modems that are accessed through the Android Radio Interface Layer (RIL) for telephony, using the gril library. The driver is almost feature complete with some exceptions, being CBS and SAT the most prominent. Co-authored-by: Tony Espy <espy@canonical.com> Co-authored-by: Ricardo Salveti de Araujo <ricardo.salveti@canonical.com> Co-authored-by: Alfonso Sanchez-Beato <alfonso.sanchez-beato@canonical.com> Co-authored-by: Islam Amer <islam.amer@jollamobile.com> Co-authored-by: Jussi Kangas <jussi.kangas@tieto.com> Co-authored-by: Juho Hämäläinen <juho.hamalainen@tieto.com> Co-authored-by: Petri Takalokastari <petri.takalokastari@oss.tieto.com> Co-authored-by: Jarko Poutiainen <Jarko.Poutiainen@oss.tieto.com> Co-authored-by: Tommi Kenakkala <tommi.kenakkala@oss.tieto.com> Co-authored-by: Miia Leinonen <miia.leinonen@oss.tieto.com> Co-authored-by: Martti Piirainen <martti.piirainen@canonical.com> Co-authored-by: You-Sheng Yang <vicamo.yang@canonical.com>
2015-10-13gril: Library to communicate with rildTony Espy16-0/+7471
gril is a library used to communicate with rild, the Android telephony daemon. Communication happens using a named socket over which binder parcels are transmitted. Co-authored-by: Tony Espy <espy@canonical.com> Co-authored-by: Ricardo Salveti de Araujo <ricardo.salveti@canonical.com> Co-authored-by: Alfonso Sanchez-Beato <alfonso.sanchez-beato@canonical.com> Co-authored-by: Mikko Hurskainen <mikko.hurskainen@nomovok.com> Co-authored-by: You-Sheng Yang <vicamo.yang@canonical.com> Co-authored-by: Ratchanan Srirattanamet <peathot@hotmail.com>
2015-10-13include: Add definitions for phone number typesAlfonso Sanchez-Beato1-0/+6
2015-10-13src: make bearer/operator enums publicTony Espy3-20/+20
Move enums for operator_status and packet_bearer to common.h to avoid duplication in drivers.
2015-10-06hfp_ag_bluez5: register audio cardSimon Fels1-0/+49
To let others (PulseAudio) be notified when a handsfree device is connected with us and can be used for audio routing we need to expose this by registering a audio card with the correct type.
2015-10-06emulator: Add ofono_emulator_set_handsfree_cardDenis Kenzior1-0/+17
2015-10-06include: Add ofono_emulator_set_handsfree_cardDenis Kenzior1-0/+4
2015-10-05AUTHORS: Mention Simon's contributionsDenis Kenzior1-0/+1
2015-10-05handsfree-audio: add type for our audio cardsSimon Fels4-5/+37
When registering audio cards for the handsfree and gateway roles we need a way for our users to differentiate between both to decide which of them they start using for their purpose.
2015-09-13Release 1.17Marcel Holtmann2-1/+11
2015-09-08sms: Add trace when datagram is not deliveredAlfonso Sanchez-Beato1-0/+7
2015-09-08smsutil: Do not check the origin portAlfonso Sanchez-Beato1-3/+0
Do not check if the origin port is reserved, as some operators use that range of values.
2015-09-08push-notification: Accept push from any originAlfonso Sanchez-Beato1-18/+7
Accept push notifications regardless of the origin port, as some operators do not insert there the WAP connectionless session service port, and use random values instead.
2015-08-24hfp: Handle extra CCWA eventKuba Pawlak1-0/+10
When a call is waitng, CCWA event is sent and call object in state WAITING is created. on ReleaseAndAnswer it is promoted to INCOMING and later to ACTIVE. iPhones send an extra CCWA event when active call is ended. This extra event is creating a second call object in state WAITING. It is not possible to have two WAITING calls, but previously waiting call was already promoted to INCOMING. For a brief time we have two calls from the same number, one INCOMING and one WAITING. Later WAITING one is removed. As we cannot have a waiting and incoming call at the same time, ignore CCWA when there is already an INCOMING call. < \r\n+CIEV: 3,3\r\n < \r\n+CIEV: 2,1\r\n < \r\n+CIEV: 3,0\r\n < \r\n+CCWA: "01234567890",129,1,"Me"\r\n < \r\n+CIEV: 3,1\r\n > AT+CLCC\r < \r\n+CLCC: 1,0,0,0,0,"09876543210",129,"Me"\r\n < \r\n+CLCC: 2,1,5,0,0,"01234567890",129,"Me"\r\n < \r\nOK\r\n < \r\n+CIEV: 2,0\r\n < \r\n+CCWA: "01234567890",129,1,"Me"\r\n < \r\n+CIEV: 2,1\r\n < \r\n+CIEV: 3,0\r\n > AT+CLCC\r < \r\n+CLCC: 2,1,0,0,0,"01234567890",129,"Me"\r\n < \r\nOK\r\n
2015-08-06voicecall: Don't accept USSD strings in Dial()Denis Kenzior1-0/+3
2015-08-05hfp: Synchronize call state in case of +CHUP errorKuba Pawlak1-0/+4
It is possible for the phone to accept Dial request but not actually dial. This leaves a voicecall object in state 'dialling' that cannot be removed. Proposed workaround is to trigger AT+CLCC when an error is returned for Hangup. As the call is not on the list, this would remove this hanging object and signal CallRemoved. Windows Phone trace with this fix: ofonod[273]: > ATD1;\r ofonod[273]: < \r\nOK\r\n ofonod[273]: src/voicecall.c:dial_handle_result() Registering new call: 1 ofonod[273]: < \r\n+CIEV: 5,4\r\n ofonod[273]: src/network.c:ofono_netreg_strength_notify() strength 80 ofonod[273]: > AT+CHUP\r ofonod[273]: < \r\nERROR\r\n ofonod[273]: src/voicecall.c:generic_callback() command failed with error: Unknown error type ofonod[273]: > AT+CLCC\r ofonod[273]: < \r\nOK\r\n ofonod[273]: src/voicecall.c:ofono_voicecall_disconnected() Got disconnection event for id: 1, reason: 2
2015-07-28cdma-connman: Make static analysis tools happyDenis Kenzior1-1/+1
The kernel simply puts a null terminator at index 15 prior to ifr_name processing. So we do the same. Original report by: Sabas Rosales, Blanca E <blanca.e.sabas.rosales@intel.com> Buffer not null terminated (BUFFER_SIZE_WARNING) buffer_size_warning: Calling strncpy with a maximum size argument of 16 bytes on destination array ifr.ifr_ifrn.ifrn_name of size 16 bytes might leave the destination string unterminated. 92 strncpy(ifr.ifr_name, interface, IFNAMSIZ);
2015-07-28ppp_net: Make static analysis tools happyDenis Kenzior1-1/+1
The kernel simply puts a null terminator at index 15 prior to ifr_name processing. So we do the same. Original report by: Sabas Rosales, Blanca E <blanca.e.sabas.rosales@intel.com> Buffer not null terminated (BUFFER_SIZE_WARNING) buffer_size_warning: Calling strncpy with a maximum size argument of 16 bytes on destination array ifr.ifr_ifrn.ifrn_name of size 16 bytes might leave the destination string unterminated. 67 strncpy(ifr.ifr_name, net->if_name, sizeof(ifr.ifr_name));
2015-07-20gprs: Try re-attaching when we switch cellsDenis Kenzior1-3/+2
2015-07-16message-waiting: Fix reading EF_MWIS recordsAlfonso Sanchez-Beato1-1/+1
2015-07-16message-waiting: Update properly EF_MWIS SIM fileAlfonso Sanchez-Beato1-0/+1
2015-07-16AUTHORS: Mention Johannes' contributionsDenis Kenzior1-0/+1
2015-07-16udevng: add support for Ericsson N5321 gwJohannes 'josch' Schauer1-0/+7
2015-07-12hfp_hf_bluez5: Fix crash on re-pairing a DeviceKuba Pawlak1-1/+10
It may happen that a Device object is unpaired an paired again without being removed from DBus. This in turn triggers second modem object to be created, but not fully initialized. If this modem object is used, oFono will crash.
2015-07-06handsfree: Mark GetProperties method ASYNCDenis Kenzior1-1/+1
2015-07-07u8500: Fix compiler warning with logical expressionMarcel Holtmann1-1/+1
CC plugins/u8500.o plugins/u8500.c: In function ‘reachable_cb’: plugins/u8500.c:235:28: error: logical not is only applied to the left hand side of comparison [-Werror=logical-not-parentheses] if (!g_isi_msg_error(msg) < 0) ^
2015-07-07n900: Fix compiler warning with logical expressionMarcel Holtmann1-1/+1
CC plugins/n900.o plugins/n900.c: In function ‘mtc_reachable_cb’: plugins/n900.c:241:28: error: logical not is only applied to the left hand side of comparison [-Werror=logical-not-parentheses] if (!g_isi_msg_error(msg) < 0) ^
2015-07-07isiusb: Fix compiler warning with logical expressionMarcel Holtmann1-1/+1
CC plugins/isiusb.o plugins/isiusb.c: In function ‘reachable_cb’: plugins/isiusb.c:207:28: error: logical not is only applied to the left hand side of comparison [-Werror=logical-not-parentheses] if (!g_isi_msg_error(msg) < 0) ^
2015-07-07gatchat: Fix compiler warning with logical expressionMarcel Holtmann1-1/+1
CC gatchat/gatchat.o gatchat/gatchat.c: In function ‘have_line’: gatchat/gatchat.c:586:28: error: logical not is only applied to the left hand side of comparison [-Werror=logical-not-parentheses] if (!strncmp(str, "AT", 2) == TRUE) ^
2015-07-05AUTHORS: Mention Marko's contributionsDenis Kenzior1-0/+1
2015-07-05configure.ac: fix typoMarko Sulejic1-1/+1
2015-07-01AUTHORS: Mention Sergey's contributionsDenis Kenzior1-0/+1
2015-07-01build: make ofono build against muslSergey Alirzaev2-1/+9
ifdef away GNU libc extensions and use a POSIXly correct pointer type
2015-06-30handsfree: Fix potential buffer overflowDenis Kenzior1-1/+5
Function: ag_features_list static const char *list[10]; (Out of bounds write, line 75) Incrementing i the value is now 10, for “hf-indicators” Reported by: blanca.e.sabas.rosales@intel.com
2015-06-18sim: Fix up whitespace issuesDenis Kenzior1-1/+1
2015-06-18Emit LockedPins after pin_type is queriedTommi Kenakkala1-1/+21
Fixes property change not being emited when hot-swapping a PIN-enabled card.