summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2015-11-04rilmodem: Implement ril_imsi_cb inlineDenis Kenzior1-13/+11
2015-11-04gril: Remove g_ril_reply_parse_get_clir & relatedDenis Kenzior2-54/+0
2015-11-04rilmodem: Implement ril_clir_query_cb inlineDenis Kenzior1-7/+11
2015-11-04gril: Remove g_ril_reply_parse_query_clipDenis Kenzior2-28/+0
2015-11-04rilmodem: Implement ril_clip_query_cb inlineDenis Kenzior1-7/+18
2015-11-04gril: Remove g_ril_reply_parse_query_call_waitingDenis Kenzior2-33/+0
2015-11-04rilmodem: Implement ril_cw_query_cb inlineDenis Kenzior1-7/+27
2015-11-04gril: Remove g_ril_request_set_clirDenis Kenzior2-16/+0
2015-11-04rilmodem: Implement ril_clir_set inlineDenis Kenzior1-1/+6
2015-11-04gril: g_ril_request_query_call_waitingDenis Kenzior2-20/+0
2015-11-04rilmodem: Implement ril_cw_query inlineDenis Kenzior1-1/+11
2015-11-04gril: Remove g_ril_request_set_call_waitingDenis Kenzior2-29/+0
2015-11-04rilmodem: Implement ril_cw_set inlineDenis Kenzior1-1/+17
2015-11-02gril: Fix access to notify callbacksAlfonso Sanchez-Beato1-24/+12
Entries to the table of notification callbacks can be added by the callbacks while being called. This caused a glib error as gril was using an iterator to the hash table while the table was being modified. Fixed by avoiding the unnecesary loop.
2015-10-26hfp_ag_bluez5: use codec negotiationSimon Fels1-1/+55
2015-10-26emulator: add codec negotiation supportSimon Fels2-0/+264
2015-10-19hfp_ag_bluez5: Add initial handsfree audio driverSimon Fels1-3/+52
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