Commit Graph

2661 Commits

Author SHA1 Message Date
Denis Kenzior caeb1650a1 util: Remove last glib uses 2018-12-27 18:18:51 -06:00
Denis Kenzior 9d18385e5f util: Remove encode_hex 2018-12-27 18:18:51 -06:00
Denis Kenzior d793b291b3 util: Remove decode_hex 2018-12-27 18:18:51 -06:00
Denis Kenzior f7d8edeaac stkutil: Convert stk_image_to_xpm to ell 2018-12-27 18:18:51 -06:00
Denis Kenzior 1d08969613 stkutil: Convert stk_text_to_html to use ell 2018-12-27 18:18:51 -06:00
Denis Kenzior b66abb4902 stkutil: Use l_malloc 2018-12-27 18:18:51 -06:00
Denis Kenzior 4059d4226b util: Switch character conversions to ell
Switch various conversions from GSM/UCS2 to UTF8 from glib based
implementation over to ell.

This also converts all related g_free calls to l_free calls (though in
the end they are equivalent calls to free)
2018-12-27 18:18:51 -06:00
Denis Kenzior 44415e754b smsutil: Use l_utf8_from_utf16 instead of g_convert 2018-12-27 18:18:51 -06:00
Denis Kenzior 9c7a87673a util: Use l_utf8_to_ucs2be instead of g_convert 2018-12-27 18:18:51 -06:00
Denis Kenzior 5229080d92 util: Use ell in convert_utf8_to_gsm 2018-12-27 18:18:51 -06:00
Denis Kenzior c4ed942e40 util: use ell in convert_ucs2_to_gsm_with_lang 2018-12-27 18:18:51 -06:00
Denis Kenzior d5f117be80 util: Convert pack7_bit / unpack_7bit to use l_malloc 2018-12-27 18:18:51 -06:00
Denis Kenzior 70c70a67b0 util: Use bool instead of gboolean 2018-12-27 18:18:51 -06:00
Denis Kenzior 674b28f150 util: Use L_ARRAY_SIZE instead of TABLE_SIZE 2018-12-27 18:18:51 -06:00
Denis Kenzior 506243ef67 idmap: Remove
This has now been replaced by l_uintset
2018-12-19 14:46:08 -06:00
Denis Kenzior ab55f2f811 gprs: Use l_uintset instead of idmap 2018-12-19 14:46:08 -06:00
Antara Borwankar 20b1e957cb xmm7modem: modified ofono.conf for coex agent
Added coex agent interface to ofono.conf
2018-12-13 10:11:23 -06:00
Marcel Holtmann 6f431e2d70 main: Remove leftover HAVE_ELL conditions 2018-11-01 20:54:37 +01:00
Jonas Bonn 652a717f3a modem: global data is pre-zeroed
Module-local and global data are BSS symbols and don't require
zero-initialization.
2018-10-29 14:04:50 -05:00
Jonas Bonn ec3c6c67af stkutil: remove test for impossible condition
'string' is an array and therefore never NULL so this test always fails.
2018-10-29 13:59:19 -05:00
Giacinto Cifelli f20da0e7f9 modem: Implement ofono_modem_set_timeout_hint
this patch provides the handling for the modem-depending powered timeout

It provides the trivial implementation for
ofono_modem_set_powered_timeout_hint, introducing the ofono_modem
variable timeout_hint, used together with the existing ofono_modem
variable timeout.

The default value, previously hardcoded as a magic number, is provided
by the DEFAULT_POWERED_TIMEOUT define and set as soon as the
ofono_modem struct is created, and then can be overwritten by the
aforementioned ofono_modem_set_powered_timeout_hint.
2018-10-24 14:32:02 -05:00
Denis Kenzior 2637bfd4ec lte: Add additional sanity checks for username/password 2018-10-22 11:46:08 -05:00
Giacinto Cifelli 924edf03ce lte: protocol and authentication for default ctx
Many LTE networks require user authentication, even for the default
context. In particular, most of the private APNs use this facility
to add some control on top of the MNO providing the service, so that
another user of the same network cannot access the private one.
As such, we add these parameters to the default context
settings that will attempt to use when registering to the network.

The additional parameters added by this patch are:  protocol, user, and
password.  These are sufficient to allow to connect to networks
available to the patch author where ofono previously failed to register
to the network at all.

Co-authored-by: Martin Baschin <martin.baschin@googlemail.com>
Co-authored-by: Denis Kenzior <denis.kenzior@intel.com>
2018-10-22 11:44:29 -05:00
Jonas Bonn 3beeff758d treewide: Remove superfluous use of _GNU_SOURCE
There are a large number of files in the tree that define _GNU_SOURCE
despite not actually using features hidden behind this flag.  This patch
removes all these definitions in one fell swoop...
2018-10-17 10:01:57 -05:00
Nandini Rebello 4f0ba39cbe sms: support 8 national lang in Alphabet property
Adding support for 8 additional languages for GSM 7 bit.
2018-10-15 14:09:07 -05:00
Nandini Rebello d984a59f3d util: adding 8 national sms alphabets
Adding national language tables for hindi,kannada,malayalam,
oriya,punjabi,tamil,telugu and urdu.
2018-10-15 14:07:27 -05:00
Nandini Rebello 032aaef87d sms: fix a missing entry in single shift table
Fix a missing char in the nation language set in single shift table
for a special character. Character set again validated.
2018-10-11 10:15:49 -05:00
Giacinto Cifelli 597ab6683f common: Move proto and auth_method related helpers
the following functions:
	gprs_proto_to_string
	gprs_proto_from_string
	gprs_auth_method_to_string
	gprs_auth_method_from_string

are moved from gprs.c to common.c, with related declaration in common.h
so that they can also be accessed from lte core functions
2018-10-09 15:10:25 -05:00
Giacinto Cifelli cc79162470 gprs: support for NONE auth type 2018-10-09 10:43:01 -05:00
Nandini Rebello a2168cd136 sms: support bengali and gujrati in Alphabet property 2018-10-01 14:53:11 -05:00
Nandini Rebello 7e82a2d940 util: add bengali and gujrati sms alphabets 2018-10-01 14:52:03 -05:00
Anirudh Gargi 40f5916316 sms: allow sms send for EUTRAN sms only state
Patch to be considered, if support for EUTRAN SMS states accepted.

SMS registered flag while sending sms to consider the new EUTRAN
registered status also.
2018-10-01 14:43:23 -05:00
Anirudh Gargi 88358047c8 network: add support eutran sms only states
EUTRAN SMS states mapped to registered and roaming respectively.
2018-10-01 14:42:57 -05:00
Giacinto Cifelli f6d26de613 lte: add implementation for ofono_lte_get_modem 2018-09-24 15:52:02 -05:00
Giacinto Cifelli 0e733b8b05 lte: clarify failed registration message 2018-09-24 15:17:20 -05:00
Marcel Holtmann d37c22be20 build: Remove setup of thread support 2018-09-21 20:35:18 +02:00
Giacinto Cifelli 460040f427 gprs: make sure that the context is properly released 2018-09-20 11:05:06 -05:00
Giacinto Cifelli f11633f837 main: Remove call to g_thread_init
according to g_thread documentation, this call is no longer needed,
and starting from g_thread version 2.32 it must not be used
2018-09-20 10:39:55 -05:00
Giacinto Cifelli ce6c1087a2 gprs: Fix use of invalid operator for bitwise flags 2018-09-20 10:28:15 -05:00
Slava Monich 376af6c85c plugin: Don't unload external plugins too early
Plugins may reference data structures allocated by each other.
They all need to be deinitialized first, only then it should be
safe to unload the libraries.
2018-07-23 19:57:56 -05:00
Slava Monich 3c10ae7fb3 modem: Implement ofono_modem_get_voicecall 2018-07-02 10:34:25 -05:00
Slava Monich 0caaf32117 dbus: Add D-Bus mapping for OFONO_ERROR_TYPE_ERRNO 2018-06-28 11:35:10 -05:00
Slava Monich c87e6c20a4 emulator: Handle OFONO_ERROR_TYPE_ERRNO in switch 2018-06-28 11:35:10 -05:00
Slava Monich c35fb6b1a3 dbus: Make cme_errors_mapping static const 2018-06-28 10:52:39 -05:00
Slava Monich c292d771b7 voicecall: Implement ofono_voicecall_get_modem 2018-06-25 10:26:26 -05:00
Denis Kenzior d715486525 sim: Fix not updating sim pin state
In case we try to enter the PIN/PUK and fail to enter a correct code,
the PIN/PUK retries are not rechecked as they should be.

Reported by: Florent Beillonnet <florent.beillonnet@gmail.com>
2018-06-05 12:56:05 -05:00
Slava Monich ecc3f1bf73 ussd: Cancel pending requests when unregistering
And reset state to idle before unregistering the D-Bus interface.
This may occur e.g. when we receive REFRESH from STK.
2018-05-23 10:23:25 -05:00
James Prestwood 19e8d21a7e simutil: fix bug when parsing AID type 2018-05-03 17:43:31 -05:00
Slava Monich 3cb55b65cb modem: Implement ofono_modem_get_gprs 2018-04-27 11:13:23 -05:00
Slava Monich 0f171dac45 ussd: Don't ignore data from TERMINATED response
Typically responses to USSD requests are coming with status
zero (NOTIFY) but some are coming with status 2 (TERMINATED).
If those contain data, the data should be presented to the user.
2018-04-23 13:49:36 -05:00