Commit Graph
2693 Commits
Author SHA1 Message Date
Ben Chan 00a092db2e iface-modem: port mm_iface_modem_enable to use GTask 2017-06-30 12:00:09 +02:00
Ben Chan 66f10d61a2 iface-modem: port mm_iface_modem_initialize to use GTask 2017-06-30 12:00:09 +02:00
Ben Chan 6e9334e317 sms-qmi: port MMSmsQmi to use GTask 2017-06-30 11:58:53 +02:00
Ben Chan b9345bb41a sim-mbim: port MMSimMbim to use GTask 2017-06-30 11:39:14 +02:00
Ben Chan 7ac30db4b7 iface-modem-3gpp: port mm_iface_modem_3gpp_register_in_network to use GTask 2017-06-30 11:39:14 +02:00
Ben Chan 48b154f265 iface-modem-cdma: port mm_iface_modem_cdma_run_registration_checks to use GTask 2017-06-30 11:02:29 +02:00
Ben Chan 0d2fb2fe45 iface-modem-cdma: port mm_iface_modem_cdma_register_in_network to use GTask 2017-06-30 11:02:29 +02:00
Ben Chan 3cf23b6c44 iface-modem-cdma: port mm_iface_modem_cdma_disable to use GTask 2017-06-30 11:02:29 +02:00
Ben Chan b94ed662f7 iface-modem-cdma: port mm_iface_modem_cdma_enable to use GTask 2017-06-30 11:02:29 +02:00
Ben Chan d9918afa99 iface-modem-cdma: port mm_iface_modem_cdma_initialize to use GTask 2017-06-30 11:02:29 +02:00
Ben Chan 1bfe5434bb iface-modem-3gpp: port mm_iface_modem_3gpp_reload_current_registration_info to use GTask 2017-06-30 10:56:47 +02:00
Ben Chan c973eb41b2 iface-modem-3gpp: port mm_iface_modem_3gpp_disable to use GTask 2017-06-30 10:56:47 +02:00
Ben Chan da8b069f80 iface-modem-3gpp: port mm_iface_modem_3gpp_enable to use GTask 2017-06-30 10:56:47 +02:00
Ben Chan c08de58668 iface-modem-3gpp: port mm_iface_modem_3gpp_initialize to use GTask 2017-06-30 10:56:47 +02:00
Ben Chan 7c5f308af2 iface-modem-time: port update_network_timezone to use GTask 2017-06-29 10:59:05 +02:00
Ben Chan 3e925d3b2d iface-modem-time: port mm_iface_modem_time_disable to use GTask 2017-06-29 10:59:05 +02:00
Ben Chan fe85ded3e1 iface-modem-time: port mm_iface_modem_time_enable to use GTask 2017-06-29 10:59:05 +02:00
Ben Chan 07c5d78e13 iface-modem-time: port mm_iface_modem_time_initialize to use GTask 2017-06-29 10:59:05 +02:00
Ben Chan d34cb65828 iface-modem-voice: port mm_iface_modem_voice_disable to use GTask 2017-06-29 10:57:34 +02:00
Ben Chan 121d43fcc6 iface-modem-voice: port mm_iface_modem_voice_enable to use GTask 2017-06-29 10:57:34 +02:00
Ben Chan 1ff9fe6ac2 iface-modem-voice: port mm_iface_modem_voice_initialize to use GTask 2017-06-29 10:57:34 +02:00
Ben Chan b7a0afaf95 iface-modem-oma: port mm_iface_modem_oma_disable to use GTask 2017-06-29 10:52:37 +02:00
Ben Chan 193784ebf8 iface-modem-oma: port mm_iface_modem_oma_enable to use GTask 2017-06-29 10:52:37 +02:00
Ben Chan f23f3f2c3f iface-modem-oma: port mm_iface_modem_oma_initialize to use GTask 2017-06-29 10:52:37 +02:00
Ben Chan 04425e8ee0 iface-modem-3gpp-ussd: port mm_iface_modem_3gpp_ussd_disable to use GTask 2017-06-28 18:45:34 +02:00
Ben Chan bee90dc103 iface-modem-3gpp-ussd: port mm_iface_modem_3gpp_ussd_enable to use GTask 2017-06-28 18:45:34 +02:00
Ben Chan e8a647ddee iface-modem-3gpp-ussd: port mm_iface_modem_3gpp_ussd_initialize to use GTask 2017-06-28 18:45:34 +02:00
Ben Chan 989ade7b8c enums: replace Roman numeral suffixes in MM_MODEM_BAND_EUTRAN_*
3GPP TS 36.101 Table 5.5-1 refers the E-UTRA operating bands as 1, 2, 3,
..., etc.
2017-06-28 18:21:25 +02:00
Ben Chan 0fb0184a2f iface-modem-messaging: port mm_iface_modem_messaging_disable to use GTask 2017-06-28 10:21:27 +02:00
Ben Chan 1603e6e4bd iface-modem-messaging: port mm_iface_modem_messaging_enable to use GTask 2017-06-28 10:21:27 +02:00
Ben Chan 6aa4e05108 iface-modem-messaging: port mm_iface_modem_messaging_initialize to use GTask 2017-06-28 10:21:27 +02:00
Ben Chan 2442058667 iface-modem-firmware: port mm_iface_modem_firmware_initialize to use GTask 2017-06-28 10:18:55 +02:00
Ben Chan 8101ce3f15 iface-modem-location: port mm_iface_modem_location_enable to use GTask 2017-06-28 10:17:20 +02:00
Ben Chan 7c2c7bc763 iface-modem-location: port mm_iface_modem_location_initialize to use GTask 2017-06-28 10:17:20 +02:00
Ben Chan adc30c7073 iface-modem-location: port setup_gathering to use GTask 2017-06-27 10:27:13 +02:00
Ben Chan ed8cc03f97 iface-modem-location: port mm_iface_modem_location_disable to use GTask 2017-06-27 10:27:13 +02:00
Ben Chan 8ad785925a core: use g_list_copy_deep for deep copying a GList 2017-06-23 22:32:07 +02:00
Aleksander Morgado 4d6896f0d9 build: rename --with-suspend-resume to --with-systemd-suspend-resume
And only define WITH_SYSTEMD_SUSPEND_RESUME when enabled.

We already have other systemd specific features under the
--with-systemd-* name scheme, so consolidate that, given that we don't
have any other method to support suspend/resume notifications.
2017-06-22 10:51:40 +02:00
Aleksander Morgado b2a859a782 build: WITH_UDEV is only defined when enabled
Looks like the preprocessor doesn't choke when using #if WITH_UDEV and
it isn't defined to any value, but anyway, better explicitly say that
we're checking if it's defined or not.
2017-06-22 10:43:45 +02:00
Aleksander Morgado 341555504e build: only define WITH_SYSTEMD_JOURNAL if enabled 2017-06-22 10:40:58 +02:00
Aleksander Morgado acf36f2ae0 build: only define WITH_POLKIT if enabled 2017-06-22 10:26:12 +02:00
Torsten Hilbrich fd0bed1df9 log: Add support for journal logging
This logging is available if the software was build with the configure
option --with-systemd-journal.

It will be enabled by default if libsystemd is found.

The runtime parameter --log-journal enables to output of log messages
to the systemd journal.

Please note that the journal priority field has the same value as the
syslog level so no conversion is required here.
2017-06-21 13:08:17 +02:00
Torsten Hilbrich 13592c5d2d log: Introduce function pointer to handle different log backends
This allows for easier additions of other logging mechanism.

Using the syslog loglevel as parameter because we need to be able to
map the MMLogLevel and the GLogLevelFlags to a common representation
when using the log_backend in _mm_log and log_handler.

The syslog level is more suitable because it supports more values than
the MMLogLevel.
2017-06-21 13:06:23 +02:00
Torsten Hilbrich 7917c85c6b log: Add mapping from glib loglevel to syslog priority
Improves readability of log_handler function.
2017-06-21 13:05:27 +02:00
Torsten Hilbrich 9160f4e350 log: Refactor log level text output
Adding a helper function to turn the log level into the text. Also
add an internal flag to disable this output. This flag will become
useful when adding systemd journal support.
2017-06-21 13:04:24 +02:00
Torsten Hilbrich b4ad1e8a21 log: Refactor evaluation of log level
Starting with adding a typed enum type for the log level named
MMLogLevel.

Suggested-By: Aleksander Morgado <aleksander@aleksander.es>

The level was checked twice in _mm_log. Once at the beginning and
again when turning the level into both the syslog priority and some
descriptive text which was added to the log level. Removing the check
at the second location as it was redundant.

Also adding a helper function to turn the MMLogLevel into the syslog
equivalent. This will become handy when adding support for systemd
journal.
2017-06-21 13:02:39 +02:00
Daniele Palmas 5820666495 helpers: extend +WS46=? response parser to support ranges
Telit LTE modems could reply to +WS46=? with:

+WS46: (12,22,25,28-31)

This patch extends +WS46=? response parser to support ranges.
2017-06-16 15:48:18 +02:00
Dan Williams e37e81c2e4 broadband-modem-qmi: allow prefix match for Modem images ending with '?'
Assume that a modem image build_id "02.08.02.00_?" matches a pri build_id
of "02.08.02.00_ATT" or "02.08.02.00_GENERIC".
2017-06-14 20:22:49 -05:00
Ben Chan 75e8527987 helpers: remove unnecessary `>= 0' checks on guint value
This CL removes the unnecessary `>= 0' check on `mode_val' and
`ind_val', which are both guint values extracted from a GArray with
guint values, in mm_3gpp_parse_cmer_test_response to address the
following compiler warnings:

mm-modem-helpers.c:2933:22: error: comparison of unsigned expression >=
0 is always true [-Werror,-Wtautological-compare]
        if (mode_val >= 0 && mode_val <= 3)
            ~~~~~~~~ ^  ~
mm-modem-helpers.c:2943:21: error: comparison of unsigned expression >=
0 is always true [-Werror,-Wtautological-compare]
        if (ind_val >= 0 && ind_val <= 2)
            ~~~~~~~ ^  ~
2017-06-07 09:17:15 +02:00
Aleksander Morgado fbfb3d182d port-serial-at: always prepend unsolicited message handlers
The generic modem has several URC handlers for generic messages, like
+CIEV. But, there may be cases where the plugins themselves want to
provide their own URC handlers to be run before the generic one.

This patch enables this setup by always prepending the new URC
handlers, so that the last ones added are processed before the ones
already in the list. So if a plugin does its own unsolicited
messages setup, they can run first the parent setup and then their
own.

The only thing to consider is that the regex provided by the plugin
must be specific enough not to match the specific messages required
by the parent implementation.
2017-06-06 15:21:03 +02:00