summaryrefslogtreecommitdiffstats
path: root/src/common.c
AgeCommit message (Collapse)AuthorFilesLines
2013-05-22common: Fix parsing SS control stringLucas De Marchi1-1/+1
It's not possible to be both greater than '9' and less than '0'. This would lead to accepting things like "#$33#" as activation and "*$33#" as deactivation, even though the string makes no sense.
2012-06-18common: Match logic to comment: valid_ussd_stringDenis Kenzior1-1/+1
2012-05-30common: Fix typos in error stringsPhilippe Nunes1-9/+10
2011-10-10core: Update copyright informationMarcel Holtmann1-1/+1
2011-03-23common: fix buffer length in phone_number_to_stringFrédéric Danis1-5/+5
update buffer length related to OFONO_MAX_PHONE_NUMBER_LENGTH change 78c1e96bf9601b5e5d31d04413baa1265a1c284f
2011-02-24common: '+' is not valid phone number anymorePaavo Leinonen1-0/+3
Reject phone number if it contains only plus sign.
2011-02-08sim: Allow usage of SIM codes longer than 8 digitsJussi Kangas1-37/+0
Some PIN codes (e.g. subsidy locks, etc) can have PIN codes much longer than the default 8 digits.
2011-02-01common: implement initializer for ofono_callLucas De Marchi1-0/+7
2011-01-25common: add function to validate long numbersRafael Ignacio Zurita1-2/+18
Also, adapt voicecall to use the new function for outgoing calls.
2011-01-20gprs: Move packet bearer stuff into gprs.cDenis Kenzior1-23/+0
2011-01-20common: Define packet switched bearersRémi Denis-Courmont1-0/+23
2010-12-22cdma-voicecall: Minor style fixesDenis Kenzior1-2/+2
2010-12-22cdma-voicecall: Add CDMA MO Call SupportDara Spieker-Doyle1-0/+41
2010-11-29core: explicitly compare pointers to NULLLucas De Marchi1-1/+1
This patch was generated by the following semantic patch (http://coccinelle.lip6.fr/) // <smpl> @fix disable is_null,isnt_null1@ expression *E; @@ - !E + E == NULL // </smpl>
2010-11-23common: remove redundant predicateRémi Denis-Courmont1-1/+1
If the first character is a plus sign, then it is not a nul, then the string length is true anyway.
2010-10-19common: Fix mmi code to bearer class mappingsDenis Kenzior1-5/+17
MMI services 22, 21, 20 and 26 were mapped incorrectly. See the comment in the code for more information and the thread 'Call Barring and MMI Supplementary Service codes' on the oFono mailing list.
2010-10-15common: Update the basic services in commentsDenis Kenzior1-5/+5
2010-10-10common: fixup logic of valid_ussd_string()Pekka Pessi1-25/+19
The logic of valid_ussd_string was not quite correct as it didn't take care of size 1 USSD strings. In addition, call_in_progress parameter is passed in to take care of size 2 USSD strings which might start with a '1' according to the rules of 22.030. The comment about USSD routing is removed, it is out of scope of oFono. The cellular network routes the USSD requests based on the rules laid out in the 22.090, however, any string that can be encoded according to the rules of 23.030 is valid USSD.
2010-10-07Fix typo in SS enum to string conversionAlexander Kanavin1-1/+1
2010-09-21Fix multi-line comment style issuesJeevaka Badrappan1-5/+10
2010-09-21common: Implement ofono_uuid_to_strDenis Kenzior1-0/+8
2010-04-23Fix a typo in telephony_error_to_strZhenhua Zhang1-1/+1
2010-04-02Fix: Regression in PIN validity checkingDenis Kenzior1-1/+1
2010-03-25Refactor: Simplify Technology valuesDenis Kenzior1-8/+8
Applications don't really understand our current values very well and would need to look up the spec. Instead we change to much more commonly accepted terms.
2010-03-20Revert the default statement for PIN type checkingMarcel Holtmann1-4/+1
Also fix the coding style for the switch statement and remove the number assignment for an internal enum.
2010-03-19Trivial: Add break statementDenis Kenzior1-0/+3
In case we ever extend the enum/switch and unwittingly introduce a bug.
2010-03-19Fix: Check password length based on its typePekka Pessi1-7/+26
The different password types have different length requirements, so update is_valid_pin to validate according to the password type being validated (PIN / PUK / NET)
2010-01-01Update copyright informationMarcel Holtmann1-1/+1
2009-10-30Add utility to test for valid APN namesDenis Kenzior1-0/+26
2009-10-16Always return a string from telephony_error_to_str.Andrzej Zaborowski1-2/+2
So that it can be used as a printf argument directly.
2009-10-16Refactor: Move network registration status utilsAndrzej Zaborowski1-0/+44
Move the status to string functions to common.c so that they can be reused in data connection related network registration code.
2009-09-22Fix: Make sure pin isn't emptyDenis Kenzior1-0/+4
2009-09-17Use g_ascii_isdigitDenis Kenzior1-2/+1
2009-09-08Write state of SMS assembly to disk and restore on startup.Andrzej Zaborowski1-0/+1
This way we can continue receiving segmented messages over a reset or crash.
2009-08-20Use types.h instead of driver.h hereDenis Kenzior1-1/+1
2009-06-19Fix minor bug in phone number handlingDenis Kenzior1-3/+3
2009-06-18Teach USSD to recognise password change strings.Andrzej Zaborowski1-1/+2
This is slightly hacky, part of ussd.c responsible for registering services is duplicated and parse_ss_control_string is modified to accept a fourth SI fragment in the input string.
2009-05-26Create ofono_phone_number structDenis Kenzior1-9/+10
Creates a new structure in driver.h called ofono_phone_number. This is meant to replace const char *number, int number_type arguments everywhere. Fix up all existing code to use this structure instead.
2009-05-21Fix Supplementary Service MMI strings per 22.030Denis Kenzior1-5/+22
2009-05-05Add implementation of telephony daemonDenis Kenzior1-0/+576