Aleksander Morgado
cff9d4a797
option: fix warnings with -Wdiscarded-qualifiers
...
option/mm-broadband-modem-option.c:978:7: error: initialization discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]
978 | { "_OSSYS=1", 3, FALSE, NULL },
| ^~~~~~~~~~
option/mm-broadband-modem-option.c:979:7: error: initialization discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]
979 | { "_OCTI=1", 3, FALSE, NULL },
| ^~~~~~~~~
option/mm-broadband-modem-option.c:980:7: error: initialization discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]
980 | { "_OUWCTI=1", 3, FALSE, NULL },
| ^~~~~~~~~~~
option/mm-broadband-modem-option.c:981:7: error: initialization discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]
981 | { "_OSQI=1", 3, FALSE, NULL },
| ^~~~~~~~~
option/mm-broadband-modem-option.c:1033:7: error: initialization discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]
1033 | { "_OSSYS=0", 3, FALSE, NULL },
| ^~~~~~~~~~
option/mm-broadband-modem-option.c:1034:7: error: initialization discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]
1034 | { "_OCTI=0", 3, FALSE, NULL },
| ^~~~~~~~~
option/mm-broadband-modem-option.c:1035:7: error: initialization discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]
1035 | { "_OUWCTI=0", 3, FALSE, NULL },
| ^~~~~~~~~~~
option/mm-broadband-modem-option.c:1036:7: error: initialization discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]
1036 | { "_OSQI=0", 3, FALSE, NULL },
| ^~~~~~~~~
2020-01-31 14:52:50 +01:00
Aleksander Morgado
2fd6d401f5
option: fix warnings with -Wswitch-default
2020-01-31 14:52:49 +01:00
Aleksander Morgado
b8a8b772b4
sierra: remove unused cdma_manual_activation_context_free()
2020-01-31 14:52:49 +01:00
Aleksander Morgado
54a6e9fc85
sierra: fix warnings with -Wdiscarded-qualifiers
...
sierra/mm-broadband-modem-sierra.c:1815:7: error: initialization discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]
1815 | { "!TIME?", 3, FALSE, parse_time_reply }, /* 3GPP */
| ^~~~~~~~
sierra/mm-broadband-modem-sierra.c:1816:7: error: initialization discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]
1816 | { "!SYSTIME?", 3, FALSE, parse_time_reply }, /* CDMA */
| ^~~~~~~~~~~
2020-01-31 14:52:49 +01:00
Aleksander Morgado
4a74ae07bc
sierra: fix warnings with -Wimplicit-fallthrough
...
sierra/mm-broadband-bearer-sierra.c: In function ‘dial_3gpp_context_step’:
sierra/mm-broadband-bearer-sierra.c:304:18: error: this statement may fall through [-Werror=implicit-fallthrough=]
304 | ctx->step++;
| ~~~~~~~~~^~
sierra/mm-broadband-bearer-sierra.c:306:5: note: here
306 | case DIAL_3GPP_STEP_PS_ATTACH:
| ^~~~
sierra/mm-broadband-bearer-sierra.c:398:18: error: this statement may fall through [-Werror=implicit-fallthrough=]
398 | ctx->step++;
| ~~~~~~~~~^~
2020-01-31 14:52:49 +01:00
Aleksander Morgado
8e216b30a6
sierra: fix warnings with -Wswitch-enum
...
sierra/mm-broadband-modem-sierra.c: In function ‘modem_time_load_network_time’:
sierra/mm-broadband-modem-sierra.c:1733:5: error: enumeration value ‘TIME_METHOD_UNKNOWN’ not handled in switch [-Werror=switch-enum]
1733 | switch (MM_BROADBAND_MODEM_SIERRA (self)->priv->time_method) {
| ^~~~~~
2020-01-31 14:52:49 +01:00
Aleksander Morgado
e71819fcfe
sierra: fix warnings with -Wswitch-default
2020-01-31 14:52:49 +01:00
Aleksander Morgado
8d2fbc8429
icera: fix warnings with -Wsign-compare
...
icera/mm-broadband-modem-icera.c: In function ‘icera_band_to_mm’:
icera/mm-broadband-modem-icera.c:1105:20: error: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’ [-Werror=sign-compare]
1105 | for (i = 0 ; i < G_N_ELEMENTS (modem_bands); i++) {
| ^
2020-01-31 14:52:49 +01:00
Aleksander Morgado
7af58f3450
icera: fix warnings with -Wdiscarded-qualifiers
...
CC icera/libmm_shared_icera_la-mm-broadband-modem-icera.lo
icera/mm-broadband-modem-icera.c:1082:30: error: initialization discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]
1082 | { MM_MODEM_BAND_UTRAN_1, "FDD_BAND_I", FALSE },
| ^~~~~~~~~~~~
icera/mm-broadband-modem-icera.c:1083:30: error: initialization discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]
1083 | { MM_MODEM_BAND_UTRAN_2, "FDD_BAND_II", FALSE },
| ^~~~~~~~~~~~~
icera/mm-broadband-modem-icera.c:1084:30: error: initialization discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]
1084 | { MM_MODEM_BAND_UTRAN_3, "FDD_BAND_III", FALSE },
| ^~~~~~~~~~~~~~
icera/mm-broadband-modem-icera.c:1085:30: error: initialization discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]
1085 | { MM_MODEM_BAND_UTRAN_4, "FDD_BAND_IV", FALSE },
| ^~~~~~~~~~~~~
icera/mm-broadband-modem-icera.c:1086:30: error: initialization discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]
1086 | { MM_MODEM_BAND_UTRAN_5, "FDD_BAND_V", FALSE },
| ^~~~~~~~~~~~
2020-01-31 14:52:49 +01:00
Aleksander Morgado
281f656000
icera: fix warnings with -Wshadow
...
icera/mm-broadband-modem-icera.c: In function ‘modem_create_bearer’:
icera/mm-broadband-modem-icera.c:873:42: error: declaration of ‘properties’ shadows a global declaration [-Werror=shadow]
873 | MMBearerProperties *properties,
| ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
icera/mm-broadband-modem-icera.c:57:20: note: shadowed declaration is here
57 | static GParamSpec *properties[PROP_LAST];
| ^~~~~~~~~~
2020-01-31 14:52:49 +01:00
Aleksander Morgado
1e39e2a7dd
simtech,helpers: fix warnings with -Wdiscarded-qualifiers
...
simtech/tests/test-modem-helpers-simtech.c: In function ‘test_clcc_urc_single’:
simtech/tests/test-modem-helpers-simtech.c:98:64: error: initialization discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]
98 | { 1, MM_CALL_DIRECTION_INCOMING, MM_CALL_STATE_ACTIVE, "123456789" }
| ^~~~~~~~~~~
simtech/tests/test-modem-helpers-simtech.c: In function ‘test_clcc_urc_multiple’:
simtech/tests/test-modem-helpers-simtech.c:113:65: error: initialization discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]
113 | { 2, MM_CALL_DIRECTION_INCOMING, MM_CALL_STATE_ACTIVE, "123456789" },
| ^~~~~~~~~~~
simtech/tests/test-modem-helpers-simtech.c:114:65: error: initialization discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]
114 | { 3, MM_CALL_DIRECTION_INCOMING, MM_CALL_STATE_ACTIVE, "987654321" },
| ^~~~~~~~~~~
simtech/tests/test-modem-helpers-simtech.c: In function ‘test_clcc_urc_complex’:
simtech/tests/test-modem-helpers-simtech.c:130:65: error: initialization discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]
130 | { 1, MM_CALL_DIRECTION_INCOMING, MM_CALL_STATE_ACTIVE, "123456789" },
| ^~~~~~~~~~~
simtech/tests/test-modem-helpers-simtech.c:131:65: error: initialization discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]
131 | { 2, MM_CALL_DIRECTION_INCOMING, MM_CALL_STATE_WAITING, "987654321" },
| ^~~~~~~~~~~
2020-01-31 14:52:49 +01:00
Aleksander Morgado
71afc23261
huawei,helpers: fix warnings with -Wimplicit-fallthrough
...
huawei/mm-modem-helpers-huawei.c: In function ‘parse_mode_combination_string’:
huawei/mm-modem-helpers-huawei.c:991:20: error: this statement may fall through [-Werror=implicit-fallthrough=]
991 | *preferred = MM_MODEM_MODE_NONE;
| ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
huawei/mm-modem-helpers-huawei.c:993:5: note: here
993 | default:
| ^~~~~~~
2020-01-31 14:52:49 +01:00
Aleksander Morgado
dcce64a116
huawei: fix warnings with -Wsign-compare
...
huawei/mm-modem-helpers-huawei.c: In function ‘mm_huawei_parse_prefmode_response’:
huawei/mm-modem-helpers-huawei.c:550:18: error: comparison of integer expressions of different signedness: ‘gint’ {aka ‘int’} and ‘guint’ {aka ‘const unsigned int’} [-Werror=sign-compare]
550 | if (mode == combination->prefmode)
| ^~
2020-01-31 14:52:49 +01:00
Aleksander Morgado
d6c3d8929e
huawei,tests: fix warnings with -Wdiscarded-qualifiers
...
CC huawei/tests/test_modem_helpers_huawei-test-modem-helpers-huawei.o
huawei/tests/test-modem-helpers-huawei.c:1176:41: error: initialization discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]
1176 | { "^TIME: 14/08/05 04:00:21", TRUE, "2014-08-05T04:00:21" },
| ^~~~~~~~~~~~~~~~~~~~~
huawei/tests/test-modem-helpers-huawei.c:1177:43: error: initialization discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]
1177 | { "^TIME: 2014/08/05 04:00:21", TRUE, "2014-08-05T04:00:21" },
| ^~~~~~~~~~~~~~~~~~~~~
2020-01-31 14:52:49 +01:00
Aleksander Morgado
52e4a6744c
cinterion,helpers: fix warnings with -Wdiscarded-qualifiers
...
CC cinterion/tests/test_modem_helpers_cinterion-test-modem-helpers-cinterion.o
cinterion/tests/test-modem-helpers-cinterion.c: In function ‘test_slcc_urc_single’:
cinterion/tests/test-modem-helpers-cinterion.c:749:64: error: initialization discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]
749 | { 1, MM_CALL_DIRECTION_INCOMING, MM_CALL_STATE_ACTIVE, "123456789" }
| ^~~~~~~~~~~
cinterion/tests/test-modem-helpers-cinterion.c: In function ‘test_slcc_urc_multiple’:
cinterion/tests/test-modem-helpers-cinterion.c:764:65: error: initialization discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]
764 | { 2, MM_CALL_DIRECTION_INCOMING, MM_CALL_STATE_ACTIVE, "123456789" },
| ^~~~~~~~~~~
cinterion/tests/test-modem-helpers-cinterion.c:765:65: error: initialization discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]
765 | { 3, MM_CALL_DIRECTION_INCOMING, MM_CALL_STATE_ACTIVE, "987654321" },
| ^~~~~~~~~~~
cinterion/tests/test-modem-helpers-cinterion.c: In function ‘test_slcc_urc_complex’:
cinterion/tests/test-modem-helpers-cinterion.c:781:65: error: initialization discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]
781 | { 1, MM_CALL_DIRECTION_INCOMING, MM_CALL_STATE_ACTIVE, "123456789" },
| ^~~~~~~~~~~
cinterion/tests/test-modem-helpers-cinterion.c:782:65: error: initialization discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]
782 | { 2, MM_CALL_DIRECTION_INCOMING, MM_CALL_STATE_WAITING, "987654321" },
|
2020-01-31 14:52:49 +01:00
Aleksander Morgado
20c23edb83
altair,helpers: fix warnings with -Wsign-compare
...
CC altair/tests/test_modem_helpers_altair_lte-test-modem-helpers-altair-lte.o
In file included from /usr/lib/glib-2.0/include/glibconfig.h:9,
from /usr/include/glib-2.0/glib/gtypes.h:32,
from /usr/include/glib-2.0/glib/galloca.h:32,
from /usr/include/glib-2.0/glib.h:30,
from altair/tests/test-modem-helpers-altair-lte.c:20:
altair/tests/test-modem-helpers-altair-lte.c: In function ‘test_parse_cid’:
altair/tests/test-modem-helpers-altair-lte.c:98:58: error: comparison of integer expressions of different signedness: ‘guint’ {aka ‘unsigned int’} and ‘int’ [-Werror=sign-compare]
98 | g_assert (mm_altair_parse_cid ("%CGINFO:blah", NULL) == -1);
| ^~
/usr/include/glib-2.0/glib/gmacros.h:937:25: note: in definition of macro ‘G_LIKELY’
937 | #define G_LIKELY(expr) (expr)
| ^~~~
altair/tests/test-modem-helpers-altair-lte.c:98:5: note: in expansion of macro ‘g_assert’
98 | g_assert (mm_altair_parse_cid ("%CGINFO:blah", NULL) == -1);
| ^~~~~~~~
2020-01-31 14:52:49 +01:00
Aleksander Morgado
759ab6d94d
telit,helpers: fix format of flags built during #BND request generation
...
We explicitly need 64bit values for 3G flags and 4G flags.
2020-01-31 14:52:49 +01:00
Aleksander Morgado
ee8e81e55c
telit,helpers: use correct flag to check caps when building #BND request
2020-01-31 14:52:49 +01:00
Aleksander Morgado
53784f95aa
tests,fixture: fix warnings with -Wsign-compare
...
tests/test-fixture.c:130:28: error: comparison of integer expressions of different signedness: ‘gboolean’ {aka ‘int’} and ‘guint’ {aka ‘unsigned int’} [-Werror=sign-compare]
130 | if (modem_expected == n_modems) {
| ^~
2020-01-31 14:52:49 +01:00
Aleksander Morgado
7655f3b35c
telit: fix warnings with -Wdiscarded-qualifiers
...
telit/tests/test-mm-modem-helpers-telit.c:48:9: error: initialization discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]
48 | "#BND: (0-3)", TRUE, FALSE, FALSE, FALSE, 4,
| ^~~~~~~~~~~~~
...
2020-01-31 14:52:49 +01:00
Aleksander Morgado
b0f9ddd295
icera: fix warnings with -Wsign-compare
...
icera/mm-modem-helpers-icera.c:256:13: error: comparison of integer expressions of different signedness: ‘gint’ {aka ‘int’} and ‘guint’ {aka ‘unsigned int’} [-Werror=sign-compare]
256 | num != expected_cid) {
| ^~
2020-01-31 14:52:49 +01:00
Aleksander Morgado
1c078531a0
build: use AX_IS_RELEASE() and AX_COMPILER_FLAGS()
...
The autoconf macros AX_COMPILER_FLAGS_{CFLAGS|GIR|LDFLAGS} test
for compiler and linker support of various flags, and add the flags to
the generated output.
If the command-line option '--enable-compile-warnings' is specified to
'configure', a number of additional warning options is also added to the
output. This is the default.
This update requires the presence of the GNU autoconf-archive in the
system.
2020-01-30 11:59:14 +01:00
Aleksander Morgado
40e9434cc3
altair-lte: use autoptr support from glib
2020-01-15 18:56:01 +01:00
Aleksander Morgado
88983fd157
cinterion: use common re-registration logic when needed
...
If the modem requires +COPS re-registration after setting modes,
use the common logic provided by the 3GPP interface, which
already knows e.g. whether the registration was automatic or the
actual requested operator id in case of being manual.
2020-01-06 20:17:08 +00:00
Aleksander Morgado
a1966222e9
ublox: use common re-registration logic when needed
...
If the modem requires +COPS re-registration after setting bands or
modes, use the common logic provided by the 3GPP interface, which
already knows e.g. whether the registration was automatic or the
actual requested operator id in case of being manual.
This will also make the u-blox plugin use the common +COPS set command
implemented in the broadband modem object, which has the fallback to
use the MCCMNC encoded in the current charset if needed.
2020-01-06 20:17:08 +00:00
Aleksander Morgado
a23040756b
novatel-lte: fallback to parent scan method
...
There is no need to run +COPS=? in the same way as the parent does it,
just fallback to the parent implementation.
2020-01-06 20:17:08 +00:00
Aleksander Morgado
7d1e949137
ublox: ignore error when disconnecting last LTE bearer
...
This is required in the TOBY-L2 and TOBY-L4 modules in order to report
a proper disconnection, even if there is none in reality. The default
LTE bearer is always reported connected while registered in LTE.
Fixes https://gitlab.freedesktop.org/mobile-broadband/ModemManager/issues/166
2019-12-16 14:39:22 +01:00
Aleksander Morgado
42aa9cc2f6
ublox: implement support to enable and detect +UUDTMF URCs
...
Also, make sure we enable/disable the voice related unsolicited events
in both primary and secondary ports, because it may happen that the
primary port is connected with PPP and we're using the secondary port
for control.
2019-12-05 15:48:55 +01:00
Aleksander Morgado
8d96d1d660
cinterion: fix using correct finish() method in AT command
...
When using mm_base_modem_at_command_full(), the corresponding
mm_base_modem_at_command_full_finish() should be used.
2019-12-05 15:45:38 +01:00
Aleksander Morgado
32d1f1deda
sierra: implement manual CDMA activation
2019-12-03 08:43:40 +00:00
Aleksander Morgado
af08492209
sierra: implement automatic CDMA activation
2019-12-03 08:43:39 +00:00
Aleksander Morgado
8fa622ddbb
novatel: implement manual CDMA activation
...
Including IOTA-based update, e.g. for Sprint.
2019-12-03 08:43:39 +00:00
Aleksander Morgado
5712c71593
novatel: implement automatic CDMA activation
2019-12-03 08:43:39 +00:00
Aleksander Morgado
f7418da3bc
huawei: avoid using the QCDM port during a voice call
2019-12-02 22:15:53 +00:00
Aleksander Morgado
09080073ff
build: setup plugin selection logic
2019-11-27 10:11:43 +00:00
Aleksander Morgado
1d1f597b55
telit: setup as loadable 'shared' utils
2019-11-27 10:11:43 +00:00
Aleksander Morgado
7bcb8c9515
foxconn: setup as loadable 'shared' utils
2019-11-27 10:11:43 +00:00
Aleksander Morgado
fce7892058
xmm: setup as loadable 'shared' utils
2019-11-27 10:11:43 +00:00
Aleksander Morgado
b765e88e57
novatel: setup as loadable 'shared' utils
2019-11-27 10:11:43 +00:00
Aleksander Morgado
2d779b97c4
option: setup as loadable 'shared' utils
2019-11-27 10:11:43 +00:00
Aleksander Morgado
23df25f25c
sierra: setup as loadable 'shared' utils
2019-11-27 10:11:43 +00:00
Aleksander Morgado
9907407fd1
mbm: skip setting up as common utils library
...
The Ericsson MBM modem management is only used by the MBM plugin.
2019-11-27 10:11:43 +00:00
Aleksander Morgado
a6d76cfceb
icera: setup as loadable 'shared' utils
2019-11-27 10:11:43 +00:00
Aleksander Morgado
b1c3f1eb1c
plugin-manager: dynamically load 'shared' util libraries
2019-11-27 10:11:43 +00:00
Aleksander Morgado
1bd6980510
plugins: add README explaining plugin relationships
2019-11-27 10:11:43 +00:00
Amol Lad
8f4b5b52ee
sierra: add port hints for EM7565 modem
2019-11-19 16:01:41 +05:30
Aleksander Morgado
d7d2b9108e
foxconn: new plugin to support the T77W968
...
The Dell DW5821e is really a re-branded Foxconn T77W968.
2019-11-13 12:31:58 +01:00
Aleksander Morgado
ad371cecd1
dell,dw5821e: add support for the DW5821e with eSIM variant
...
Same port layout as the default one, just a different PID.
2019-11-07 12:30:26 +01:00
Daniele Palmas
c9e603a388
telit: add AT$GPSNMUN description
2019-11-05 15:52:31 +01:00
Krzysztof Drobinski
4a2e907e30
telit: minor coding style fix
2019-11-02 17:34:13 +01:00