Commit Graph

8444 Commits

Author SHA1 Message Date
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
Jonas Bonn 67701b1c40 drivers: constify vtables
The driver vtables are read-only structures.  This patch declares them as
'const' allowing the compiler to (optionally) put them in the RELRO
section.  RELRO pages may be marked as read-only by the linker after
the relocations have been done ensuring that they aren't inadvertently
or maliciously altered at runtime.
2018-10-17 09:56:27 -05:00
Nandini Rebello ef6c257a3e test: add support for new languages
Adding new language support to set "alphabet" parameter.
2018-10-15 14:09:53 -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 1f0ea2b882 doc: add support for 8 additional sms alphabets
Adding support for hindi,kannada,malayalam,oriya,punjabi,tamil,
telugu and urdu for GSM 7 bit.
2018-10-15 14:06:23 -05:00
Denis Kenzior 352a9f4b23 xmm7modem: Fix memory leak in netmon 2018-10-12 13:45:23 -05:00
Denis Kenzior 37d856c071 phonesim: Fix memory leak 2018-10-12 13:45:01 -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 93caa4ceef include: move auth_method and proto enumerations
ofono_gprs_proto and ofono_gprs_auth_method, and related length consts,
moved to types.h from gprs-context.h,
so that they can be shared also with lte core functions
2018-10-09 15:06:36 -05:00
Antara d9e3329f55 netmon: Enabled netmon atom for xmm7modem plugin
enabling netmon atom to report current serving cell measurements
for xmm7modem
2018-10-09 12:54:27 -05:00
Antara a4a7e553dc netmon: Added netmon driver for xmm7modem
adding netmon driver for xmm7modem which uses intel proprietary
AT command +XMCI
2018-10-09 12:54:24 -05:00
Giacinto Cifelli bd6f807849 drivers: support for auth NONE
Added the explicit support for auth NONE.
It needs to be added in all drivers/*/gprs-context.c atoms.

This method is already supported by all atoms that support
authentication (ie, all but Sierra' swmodem driver).

The behavior is left unchanged in case of inconsistent parameters:
if username is empty, then fallback to auth NONE.
2018-10-09 12:35:44 -05:00
Giacinto Cifelli a5bdf48ca7 mbpi: support for auth NONE
support of 'none' in mbpi:
the default method remains CHAP, but it is overridden by NONE after
parsing the entire key for the apn and detecting no username/password
2018-10-09 10:44:17 -05:00
Giacinto Cifelli a5aa268747 file-provision: support for auth type of NONE 2018-10-09 10:43:31 -05:00
Giacinto Cifelli cc79162470 gprs: support for NONE auth type 2018-10-09 10:43:01 -05:00
Giacinto Cifelli 6cf24fe1f9 gprs-context: added OFONO_GPRS_AUTH_METHOD_NONE
This method makes explicit the lack of authentication.

When selected, the username and password are ignored, but they are not
changed in the user-defined properties for the context.
This treatment is necessary to allow setting independently auth_method,
username and password.

This method is also selected implicitly when username is set to
an empty string. Also this selection is done without changing the
user-defined auth_method for the context, so that the behavior is
consistent.
2018-10-09 10:40:15 -05:00
Giacinto Cifelli f2fa45b830 connman-api: added "none" auth_method 2018-10-09 10:40:12 -05:00
Giacinto Cifelli 6fc119d9ea gatchat: support for auth NONE
Added authentication method G_AT_PPP_AUTH_METHOD_NONE and its handling.
2018-10-03 11:44:03 -05:00
Anirudh Gargi 3317cc6f45 xmm7xxx: enable sms and phonebook support 2018-10-03 11:42:51 -05:00
Denis Kenzior cfbb202435 AUTHORS: Mention Nandini's contributions 2018-10-01 14:55:31 -05:00
Nandini Rebello 638583522e test: Add test script to set sms alphabet 2018-10-01 14:54:29 -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
Nandini Rebello 5d316b1dea doc: add support for 2 additional sms alphabets
Adding support for bengali and gujrati for GSM 7 bit.
2018-10-01 14:50:54 -05:00
Anirudh Gargi 4b44fb3910 gprs: fix seg fault in case of NULL callback
In case of AT callback if callback handler is NULL, check for null
before calling the success macro.

Logs:
ofonod[32496]: src/network.c:current_operator_callback() 0x157ad60, (nil)
ofonod[32496]: src/gprs.c:netreg_status_changed() 0
ofonod[32496]: src/gprs.c:gprs_netreg_update() attach: 0, driver_attached: 1
ofonod[32496]: src/gprs.c:ofono_gprs_detached_notify() /xmm7xxx_0
ofonod[32496]: drivers/ifxmodem/gprs-context.c:ifx_gprs_detach_shutdown()
ofonod[32496]: drivers/ifxmodem/gprs-context.c:ifx_gprs_deactivate_primary() cid 0
ofonod[32496]: src/gprs.c:ofono_gprs_detached_notify() /xmm7xxx_0
ofonod[32496]: src/gprs.c:gprs_attach_callback() /xmm7xxx_0 error = 0
ofonod[32496]: drivers/ifxmodem/gprs-context.c:deactivate_cb() ok 0
ofonod[32496]: Aborting (signal 11) [./../src/ofonod]
ofonod[32496]: ++++++++ backtrace ++++++++
ofonod[32496]: +++++++++++++++++++++++++++
2018-10-01 14:46:35 -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
Anirudh Gargi eb70ba464a doc: Clarify LTE registration status documentation 2018-10-01 14:42:57 -05:00
Marcel Holtmann 7dd0597ac1 Release 1.25 2018-09-29 10:31:40 +02:00
Pavel Machek 33be5732f1 udevng: Move debug print to more useful place
in setup_gobi()
2018-09-27 17:26:49 -05:00
Pavel Machek 84f7ca1ffd doc: Fix typo in location-reporting-api.txt 2018-09-27 17:25:03 -05:00
Pavel Machek 1a5fd30baa test: Better help for delivery reports
Explain "delivery report" parameter in send-sms.
2018-09-27 17:21:16 -05:00
Anirudh Gargi 276330abc4 atmodem: add EUTRAN tech for creg read status
Add handling for CREG's status to get the technology type. CREG
notify URC does not need additional handling as 'AcT' is mapped
one-on-one to tech.
2018-09-27 07:35:17 -05:00
Giacinto Cifelli 579e9dd3ec atmodem/sms: no mms support for Gemalto 2018-09-27 07:32:03 -05:00
Giacinto Cifelli 8077e61ee5 gemalto: Use GEMALTO vendor for sms 2018-09-25 09:44:50 -05:00
Giacinto Cifelli df5bc68fcf atmodem: change vendor CINTERION in GEMALTO in sms 2018-09-25 09:44:30 -05:00
Giacinto Cifelli 635085b30e gemalto: Use GEMALTO vendor instead of CINTERION
The sim atom is now created with the GEMALTO vendor instead of
CINTERION.  This is because GEMALTO has superceeded CINTERION and the
gemalto plugin will be updated to handle (legacy) modems from cinterion
as well as current gemalto devices.
2018-09-25 09:40:18 -05:00
Giacinto Cifelli 66e9a30040 atmodem: change vendor CINTERION to GEMALTO in sim 2018-09-25 09:39:56 -05:00
Giacinto Cifelli 9556d7bd78 atmodem: added Gemalto vendor to CBS CSCB logic 2018-09-24 15:57:58 -05:00
Giacinto Cifelli f6d26de613 lte: add implementation for ofono_lte_get_modem 2018-09-24 15:52:02 -05:00
Giacinto Cifelli 9dd545ad75 include: add ofono_lte_get_modem global function
this function can be used in the drivers to query the functions
ofono_modem_get_* to retrieve modem-specific properties
2018-09-24 15:50:57 -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 abd219c89f atmodem/sms: Do not print an error message incorrectly
add missing return in at_cmt_notify.  Without it an error message was
generated in all cases, even successful ones.
2018-09-20 10:50:44 -05:00
Giacinto Cifelli 9f747730a8 mbim: fix calling mbim_sms_exit instead of _init 2018-09-20 10:49:06 -05:00
Giacinto Cifelli 59162e4363 tools: remove calls to g_thread_init 2018-09-20 10:40:29 -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