summaryrefslogtreecommitdiffstats
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2016-01-27sim: Implement ServiceProviderName propertySlava Monich1-0/+13
2016-01-07network: Fix crash caused by empty Scan() resultsJohn Ernberg1-2/+14
When issuing a Scan() in poor reception while attached to an operator it's fully possible to get no results, which causes the attached operator to be cleaned up. In certain scenarios this would cause a use-after-free as there are still references to this operator. Transfer the attached operator to the new list regardless of removal caused by the Scan() results.
2015-12-22gprs: Fix the ContextAdded() signal IntrospectionJohn Ernberg1-1/+1
This matches the behavior described by the documentation the signal value returned by the code. This was causing a headache when using stricter D-Bus wrappers like dbus-c++.
2015-12-21cbs: Resolve a use-after-freeJohn Ernberg1-1/+4
In situations where location changes rapidly, a use-after-free condition can occur. What happens is that the timeout leaks and then the cbs struct with the callback is cleaned up, resulting in a SIGSEGV when the callback occurs from the glib loop.
2015-12-15modem: Don't move to pre-sim state in case of failureDenis Kenzior1-0/+3
In ofono_modem_reset, if the enable() callback fails, do not proceed to the pre-sim state
2015-12-13gprs: Implement ofono_gprs_context_get_typeDenis Kenzior1-0/+6
2015-12-03gprs: Implement ofono_gprs_get_modemDenis Kenzior1-0/+5
2015-11-29voicecall: don't dereference a supplied null valueSimon Fels1-3/+12
When the voicecall atom is unregistered we remove all HFP support as well but were supplying a zero as value to the emulator status callbacks which caused the process to crash as we were dereferencing the supplied value always and not respecting a zero as indicator to reset.
2015-11-13gprs: Allow synchronous callbacks for set_attachedDenis Kenzior1-1/+1
2015-11-05radio-settings: Implement get_modem()Denis Kenzior1-0/+6
2015-10-26emulator: add codec negotiation supportSimon Fels1-0/+259
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-06emulator: Add ofono_emulator_set_handsfree_cardDenis Kenzior1-0/+17
2015-10-05handsfree-audio: add type for our audio cardsSimon Fels1-2/+22
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-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-08-06voicecall: Don't accept USSD strings in Dial()Denis Kenzior1-0/+3
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-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-06handsfree: Mark GetProperties method ASYNCDenis Kenzior1-1/+1
2015-07-01build: make ofono build against muslSergey Alirzaev1-0/+8
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.
2015-06-17sim: Reset pin_type on card removeTommi Kenakkala1-2/+5
Fixes PinRequired not being emitted when a card is inserted
2015-05-18gprs: Add comment to gprs_reset_contextsAlfonso Sanchez-Beato1-0/+5
2015-05-18gprs: Refactor to remove forward declarationAlfonso Sanchez-Beato1-104/+102
2015-05-18gprs: Add DBus method to reset contextsAlfonso Sanchez-Beato1-24/+118
Add DBus method that removes the current contexts and re-provisions using the APN database.
2015-05-13handsfree-audio: Call sco_connected_hintDenis Kenzior1-0/+3
2015-05-13handsfree-audio: Add additional debugsDenis Kenzior1-0/+5
2015-02-13smsutil: Add additional sanity checkDenis Kenzior1-0/+5
We make sure that after performing the UTF8 -> GSM conversion, the number of GSM bytes is not greater than 11, which is the maximum payload.
2015-02-13sms: Fix alphanumeric TP-OA handlingTommi Kenakkala2-4/+14
TP-OA max length comparisons were incorrect because TP-OA's 7-bit coded octets transport eleven 8-bit chars. The current code assumed only 10 chars were possible. The patch - increases the array size to 23, (maximum of 22 bytes for UTF8 encoding + null terminator) - Updates the sanity check to account for the correct maximum - For encoding, checks the maximum length in UTF8 characters instead of bytes
2015-02-02handsfree-audio: Refactor manager init / cleanupTommi Kenakkala1-8/+8
2015-02-02main: Remove handsfree_audio_manager init/cleanupTommi Kenakkala1-4/+0
Init allocates a SCO audio socket always. oFono should do that with bluez5 but not with bluez4. This patch starts the refactoring of the handsfree_audio_manager init/cleanup functionality.
2014-12-12radio-settings: Show all available technologiesAlfonso Sanchez-Beato1-2/+2
Not all possible futures technologies were being showed on the DBus interface.
2014-12-10radio-settings: Always query available ratsDenis Kenzior1-1/+1
If fast dormancy query is not implemented the available rats are not queried.
2014-12-10radio-settings: Add additional sanity checkDenis Kenzior1-1/+1
2014-12-10radio-settings: rework AvailableTechnologies logicDenis Kenzior1-10/+14
Take advantage of the new enum structure to future proof and simplify the logic of generating the AvailableTechnologies property
2014-12-10src: Implement RAT list propertyAlfonso Sanchez-Beato1-1/+46
2014-12-04sim: Fix pin retries bogus values on some arch-esDenis Kenzior1-14/+25
On some architectures the SimManager.Retries property was getting bogus values. This is because we were sending an array which pointed to int values instead of the expected unsigned char values. This fix allocates a temporary array of unsigned chars to hold the actual D-Bus values being sent. Additionally, the dictionary array is changed to point to the temporary unsigned char based values instead of the raw 'int' based retry values.
2014-10-20emulator: Refine +BIND supportDenis Kenzior1-1/+11
2014-10-20emulator: Implement new APIDenis Kenzior1-0/+19
2014-10-20handsfree: Be extra pedantic with booleansDenis Kenzior1-0/+5
2014-10-20handsfree: Don't try to send a method returnDenis Kenzior1-1/+11
When we are simply updating the AG of HF indicator changes, do not try to send a method return message.
2014-10-20handsfree: Implement new HF indicators APIDenis Kenzior1-4/+62
2014-10-20emulator: Refactor data typesDenis Kenzior1-6/+7
2014-10-20handsfree: Skeleton implementation of DDRDenis Kenzior1-0/+44
Distracted Driving Reduction or Enhanced Safety is implemented using HF indicator 0x0001
2014-10-20handsfree: Implement new Features property valueDenis Kenzior1-0/+3