Commit Graph
2421 Commits
Author SHA1 Message Date
Marco Bascetta f67cc37956 iface-modem-voice: cleaned error debug messages 2015-08-02 10:39:47 +02:00
Marco Bascetta 9874f10e1f base-call,iface-modem-voice:: handle DTMF 2015-08-02 10:39:47 +02:00
Riccardo Vangelisti 40fae5fcba base-call: refactoring of error handling when call starts 2015-08-02 10:39:47 +02:00
Marco Bascetta bf416045df huawei: acquire incoming DTMF on active call 2015-08-02 10:39:47 +02:00
Marco Bascetta 55ae2c7f2f huawei: handle voice call state changes 2015-08-02 10:39:47 +02:00
Riccardo Vangelisti 5a281dbd34 base-call: created an unique function to switch call's state and reason 2015-08-02 10:39:47 +02:00
Marco Bascetta 65a64c9248 core: set number of incoming call 2015-08-02 10:39:47 +02:00
Riccardo Vangelisti 94c8371076 base-call: fixed bug when hangup call.
Ok, busy and no carrier messages are handled by serial-parser.
2015-08-02 10:39:13 +02:00
Marco Bascetta 6d85146bba core: handle incoming calls (RING/CRING, CLIP, NO CARRIER). 2015-08-02 10:39:13 +02:00
Riccardo Vangelisti c53bc10092 base-call: added deletion of a specified call 2015-08-02 10:39:12 +02:00
Riccardo Vangelisti ecbd146d5a fixes: added voice support in libmm-glib MMManager, also fixed wrong number of parameters in mm-call-list class init 2015-08-02 10:39:12 +02:00
Riccardo Vangelisti 5c9e2488bf build: added voice call include in libmm-glib and modified Makefile.am 2015-08-02 10:39:12 +02:00
Riccardo Vangelisti 5c446c3f43 broadband-modem: added voice call support 2015-08-02 10:39:12 +02:00
Riccardo Vangelisti 886e2963df core: implemented MMIfaceModemVoice interface 2015-08-02 10:39:12 +02:00
Riccardo Vangelisti ec5c539f55 core: implemented new MMBaseCall object 2015-08-02 10:39:12 +02:00
Aleksander Morgado 0337781ba7 base-manager: plug memleak
Don't g_strdup() the physdev string to store it in the hash table; instead store
the original string right away as it is already created with g_strdup_printf().

Reported by: Yunlian Jiang <yunlian@chromium.org>

https://code.google.com/p/chromium/issues/detail?id=515929
2015-08-02 09:03:20 +02:00
Dan Williams 9b051b14ed iface-modem: don't check the cache when asking for required unlocks
When passing known_lock=UNKNOWN to mm_iface_modem_update_lock_info()
we actually do want to ask the modem itself for locks instead of
checking the cache.  For example, when an unknown error is returned
after performing PIN/PUK operations, the cache value may well be
NONE if that was the prior lock state, and that bypasses the modem
which might now be locked.  Thus the state gets messed up.

Reproducer is to send 'ChangePin' with the wrong "old" PIN 3 times,
then send a wrong PUK.  No error was returned from mmcli and
the modem's lock state was shown as 'none'.
2015-07-20 12:24:22 -05:00
Dan Williams ad2c2ad14c blacklist: ignore POSNET POLSKA S.A. devices 2015-07-02 10:30:58 -05:00
Aleksander Morgado e09463dfb2 blacklist: ignore Palm M5xx devices
https://bugs.freedesktop.org/show_bug.cgi?id=91032
2015-06-19 12:20:21 -07:00
Aleksander Morgado 0ac7feb797 broadband-modem-qmi: retry unlock checks on 'UimUninitialized' errors
The Pantech UML290 takes a horribly great time to initialize the SIM, and
therefore we may even be losing the 3GPP capabilities as the SIM is not
detected during the initial checks:

    load_unlock_required_ready(): Couldn't check if unlock required: 'SIM failure: QMI protocol error (37): 'UimUninitialized''
    current_capabilities_internal_load_unlock_required_ready(): Multimode device without SIM, no 3GPP capabilities

To avoid this, let 'UimUninitialized' be a retriable error.
2015-06-05 22:45:53 +02:00
David McCullough d5fb4284e1 qmi: fix '0' prefixed IMEI/ESN/MEID on QMI modems
QMI modems are incorrectly ignoring IMEI/ESN/MEID numbers that start with a
'0'.  Fix this up.  Seen on an AT&T Beam (340u)

Signed-off-by: David McCullough <david.mccullough@accelecon.com>
2015-05-28 09:41:42 +02:00
Aleksander Morgado 4fcae938fc build: request to generate the enum types support files before building
Instead of providing explicit dependency rules to generate the enum types
support files before they're first used, just pre-generate them before building
anything. Maintaining the explicit dependency rules is not really worth it.
2015-05-04 09:27:58 +02:00
Aleksander Morgado cc5f731102 blacklist: ignore all devices from Access Interface Solutions 2015-04-10 12:45:33 +02:00
Dan Williams 9293fd2bca base-manager: quiet message about unsupported ports
This message gets printed for all netdevs and ttys, including most
machines normal ethernet/Wi-Fi interfaces.  It seems a bit less critical
than 'warning' level would indicate.

ModemManager[32097]: <warn>  Couldn't find support for device at '/sys/devices/pci0000:00/0000:00:19.0': not supported by any plugin
ModemManager[32097]: <warn>  Couldn't find support for device at '/sys/devices/pci0000:00/0000:00:1c.1/0000:02:00.0': not supported by any plugin
2015-03-31 11:25:35 -05:00
Jason Simmons 3ad64c8f5a broadband-modem: default implementation of the network time interface
Add a default implementation that queries the real-time clock using the
AT+CCLK? command.  Also set AT+CTZU=1 in case a modem requires it.
2015-03-23 11:31:32 +01:00
Daniele Palmas 61ced36f83 Adding IMC flashing device in blacklist 2015-03-06 16:23:07 +01:00
Aleksander Morgado 6a8fbf917a iface-modem: don't artificially forbid power updates when in OFF state
If for any reason the modem is in OFF state and still can talk to the modem,
allow running the remaining transition requests to LOW or ON. This can happen
for example for modems that use CFUN:0, i.e. which can still go online with
CFUN=1.

https://bugs.freedesktop.org/show_bug.cgi?id=89368
2015-03-02 14:38:02 +01:00
Aleksander Morgado 28d4bb932c greylist: add Cypress USB<->RS232 adapters
https://bugs.freedesktop.org/show_bug.cgi?id=89362
2015-02-27 17:30:43 +01:00
Aleksander Morgado 0a31a466cb bearer,qmi: also print IPv6 gateway prefix 2015-02-26 12:37:20 +01:00
Aleksander Morgado 2dbebbd0bf bearer-qmi: avoid unref-ing arrays owned by the output bundles
When we get an array from a libqmi output or input bundle, the array is always
owned by the bundle (i.e. transfer-none).
2015-02-26 10:37:23 +01:00
Dan Williams 9186e2aa39 iface-modem-3gpp: used DENIED registration state if others are UNKNOWN
If all other registration states are UNKNOWN, use a registration state
of DENIED as the global modem state.
2015-02-23 10:25:14 -06:00
Aleksander Morgado 37bda21a37 plugin: add implicit QMI and MBIM forbidden drivers check 2015-02-18 20:00:01 +01:00
Aleksander Morgado 3c6a7ed3f3 plugin-manager: make sure there is some wait time before probing the first port
We really do need a wait time to make sure most ports are exposed by the
kernel, so that plugin filters based on "forbidden-drivers" work correctly. E.g.
the "gobi" plugin now flags as forbidden the "qmi_wwan" driver, which means that
modems exposing both TTYs and QMI/WWAN ports should never be handled by the Gobi
plugin.
2015-02-16 17:30:38 +01:00
Aleksander Morgado 07fcb807dd plugin: allow having both 'drivers' and 'forbidden drivers' filters 2015-02-16 17:30:38 +01:00
Aleksander Morgado 51ab292802 plugin: let vendor/product filter be complementary
So that a plugin can specify a full VID and a specific PID subset of another VID
as supported.
2015-02-16 17:30:38 +01:00
Aleksander Morgado 7133d72f69 ports: move serial parsers to the internal libports 2015-02-11 19:39:03 +01:00
Aleksander Morgado 9b2b46e2be broadband-modem-qmi: don't try FCC auth if the first Set Operating Mode succeeds 2015-02-10 18:21:30 +01:00
Aleksander Morgado a83d1c70b1 broadband-modem-qmi: use 'DMS Set FCC Authentication' if online mode fails
Some new devices, like the Dell DW5770, will return an internal error when
trying to bring the power mode to online. We can avoid this by sending the
magic "DMS Set FCC Auth" message before retrying.

Bumping libqmi version to 1.13.4, which is the one that supports this new
message.

https://bugzilla.kernel.org/show_bug.cgi?id=92101
2015-02-07 21:39:15 +01:00
Aleksander Morgado b6f8e5f08d suspend: invalidate and remove modems on suspend, reprobe on resume 2015-02-07 12:57:48 +01:00
Aleksander Morgado 132fbb0a7f suspend: port upower backend to GDBus 2015-02-07 12:57:48 +01:00
Aleksander Morgado a92b6f286b suspend: imported suspend/resume support from NetworkManager
We're going to make this optional during build, not mandatory as was the case
in NM.
2015-02-07 12:57:48 +01:00
Aleksander Morgado c6ba09403a utils: imported singleton setup from NetworkManager 2015-02-07 12:57:48 +01:00
Aleksander Morgado 60cd66b4fa helpers: avoid segfault when empty pdp type string is given
https://bugzilla.redhat.com/show_bug.cgi?id=1183250
2015-01-29 21:28:52 +01:00
Aleksander Morgado dc38332224 plugin: avoid segfault when port driver is unknown
Based on a patch from Bastiaan Jacques <bastiaan@bjacques.org>

https://bugzilla.redhat.com/show_bug.cgi?id=1177799
https://bugs.freedesktop.org/show_bug.cgi?id=88864
2015-01-29 12:23:31 +01:00
Dan Williams 086a10ede0 blacklist: ignore PalmOS devices driven by 'visor'
MM probing appears to make 'visor' module die; and anyway
most of the devices driven by 'visor' are not phones, and
of the 3 that are phones they are so old (2002 - 2005 era)
that nobody is likely using them for dialup anymore.

http://www.spinics.net/lists/linux-usb/msg120483.html
2015-01-26 17:05:39 -06:00
Aleksander Morgado 1e62589cb1 bearer-qmi: even if we request DHCP in the bearer, expose available IPv4 config
Same as we do in IPv6. Note that NM won't use it if DHCP is requested.
2015-01-24 18:05:41 +01:00
Jakub Sitnicki fcfd52df10 core: perform clean-up when terminating due to a Unix signal
Since commit 2d700043ab ("core: use g_unix_signal_add() for more
reliable Unix signal handling") we no longer have to stick to
signal-safe functions in the SIGTERM/SIGINT handler.

Use exit() to terminate so that the clean-up functions are ran and code
coverage data gets written into files.
2015-01-11 19:32:49 +01:00
Jakub Sitnicki 7552030ef9 build: add code coverage support
Build all targets, except for CLI tools (mmcli, uml290), with special
flags needed for collecting code coverage information when the build has
been configured with --enable-code-coverage.

Three new targets are available in the top build directory:

 - `check-code-coverage' runs the test suite and generates a code
   coverage report,

 - `code-coverage-capture' generates a code coverage report from already
   collected data, which can come in handy when one wants to see code
   paths touched by a particular test,

 - `code-coverage-clean' removes the collected coverage data and the
   generated reports.
2015-01-11 19:32:43 +01:00
Aleksander Morgado 2edb00cbcb broadband-modem-qmi: fix memleak when listing SMS
If we get multiple message lists, we need to make sure the previous one is
cleared out before going to the next one.
2015-01-09 12:48:22 +01:00
Aleksander Morgado 46b707f847 mbim: use the new response checker helper method
mbim_message_response_get_result() is available in libmbim-glib 1.11.1.
2014-12-30 12:46:07 +01:00