Commit Graph

5790 Commits

Author SHA1 Message Date
Dan Williams
3e15dc15ef bearer-mbim: don't crash when modem doesn't send gateways
When the Ericsson F5321 with firmware R3C11/R4D04 is told to make
an IPv6-only connection, it reports that it has IPv4 configuration
but then returns no actual addresses.  Check both the flags and
actual data before trying to use them.

ModemManager[25850]: <debug> [1506958721.914717] IPv4 configuration available: 'address, gateway, dns, mtu'
ModemManager[25850]: <debug> [1506958721.914731]   IP addresses (0)
ModemManager[25850]: <debug> [1506958721.914741]   DNS addresses (0)
ModemManager[25850]: <debug> [1506958721.914748]   MTU: '0'
ModemManager[25850]: <debug> [1506958721.914758] IPv6 configuration available: 'address, dns, mtu'
ModemManager[25850]: <debug> [1506958721.914767]   IP addresses (1)
ModemManager[25850]: <debug> [1506958721.914852]     IP [0]: 'fe80::39:f622:7d01/64'
ModemManager[25850]: <debug> [1506958721.914866]   DNS addresses (2)
ModemManager[25850]: <debug> [1506958721.914883]     DNS [0]: 'fd00:976a::9'
ModemManager[25850]: <debug> [1506958721.914896]   MTU: '1500'
ModemManager[25850]: <debug> [1506958721.914947] (wwp0s20u1i6): port now connected
2017-10-02 10:49:32 -05:00
Aleksander Morgado
b252ab668f build,tests: make sure tests are rebuilt if helper libs are updated 2017-09-28 23:13:12 +02:00
Aleksander Morgado
280b72f15e mbm: remove unused struct member 2017-09-28 11:04:55 +02:00
Aleksander Morgado
6847fb48f6 mbm: no need to re-set self pointer 2017-09-28 10:58:00 +02:00
Ben Chan
e0a3eeee5d mbm: port get_ip_config_3gpp to use GTask 2017-09-28 10:49:57 +02:00
Ben Chan
a910c45c08 mbm: port {enable,disable}_location_gathering to use GTask 2017-09-28 10:49:57 +02:00
Ben Chan
414aac9510 mbm: port location_load_capabilities to use GTask 2017-09-28 10:49:57 +02:00
Ben Chan
d19593d344 mbm: port modem_3gpp_disable_unsolicited_events to use GTask 2017-09-28 10:49:57 +02:00
Ben Chan
f79719c518 mbm: port modem_3gpp_enable_unsolicited_events to use GTask 2017-09-28 10:49:56 +02:00
Ben Chan
4454f840bc mbm: port modem_3gpp_{setup,cleanup}_unsolicited_events to use GTask 2017-09-28 10:49:56 +02:00
Ben Chan
a0e3a889b0 mbm: port enabling_modem_init to use GTask 2017-09-28 10:49:56 +02:00
Ben Chan
0b37db42b4 mbm: port set_current_modes to use GTask 2017-09-28 10:49:56 +02:00
Ben Chan
43bf7c764b mbm: port modem_after_sim_unlock to use GTask 2017-09-28 10:49:56 +02:00
Ben Chan
2e7aff84a6 mbm: port modem_create_bearer to use GTask 2017-09-28 10:49:56 +02:00
Ben Chan
9f573d3bcf mbm: port common_send_pin_puk to use GTask 2017-09-28 10:49:56 +02:00
Ben Chan
5769d52d3b x22x: port x22x_custom_init to use GTask 2017-09-28 10:45:52 +02:00
Ben Chan
1f6e7c9931 x22x: port set_current_modes to use GTask 2017-09-28 10:45:52 +02:00
Ben Chan
4e3a6b4eb5 x22x: port load_supported_modes to use GTask 2017-09-28 10:45:52 +02:00
Ben Chan
fea6835592 mtk: port disable_unsolicited_events to use GTask 2017-09-28 10:39:25 +02:00
Ben Chan
fe58e5f498 mtk: port enable_unsolicited_events to use GTask 2017-09-28 10:39:25 +02:00
Ben Chan
bfac21fbb8 mtk: port modem_3gpp_{setup,cleanup}_unsolicited_events to use GTask 2017-09-28 10:39:25 +02:00
Ben Chan
42bde89bae mtk: port modem_after_sim_unlock to use GTask 2017-09-28 10:39:25 +02:00
Ben Chan
3b2873148c mtk: port set_current_modes to use GTask 2017-09-28 10:39:25 +02:00
Ben Chan
996612f8db mtk: port load_supported_modes to use GTask 2017-09-28 10:39:25 +02:00
Ben Chan
2991ae0e86 mtk: port load_unlock_retries to use GTask 2017-09-28 10:39:25 +02:00
Aleksander Morgado
766c934f54 po: add Hungarian translation
From: Gabor Kelemen <kelemeng@ubuntu.com>

https://bugs.freedesktop.org/show_bug.cgi?id=103014
2017-09-27 21:56:06 +02:00
Aleksander Morgado
3ee1dc5fa0 libmm-glib,sms: fix get|dup_data() introspection annotations
We need to specify explicitly that the return type is an array of
guint8 elements.
2017-09-27 17:33:31 +02:00
Aleksander Morgado
bda7b9a74a ublox: plug memleak when parsing UAUTHREQ test 2017-09-26 13:45:17 +02:00
Aleksander Morgado
4c36bd42d4 huawei: plug memleak when listing cdc-wdm AT ports
The returned list contains full references, so make sure we unref them
before going on. Note that it's ok to return a pointer to one object
inside this list even if we're unref-ing them all, because we're sure
that the caller knows it's peek-ing a port object.
2017-09-26 10:46:55 +02:00
Aleksander Morgado
1e318bec54 broadband-bearer: fix object types in connect_3gpp() steps
All the steps in the connect_3gpp() sequence are implemented as
methods in the MMBroadbandBearer class, and therefore the objects
received in the corresponding ready() methods are all bearers, not
modems.

This issue wasn't found before because the objects received were not
really being used after all, as we were relying on the ones kept in
the context or lately in the GTask itself.
2017-09-26 10:03:17 +02:00
Ben Chan
9f9c88a72a broadband-modem-qmi: support loading hardware revision
This patch implements hardware revision loading in MMBroadbandModemQmi
using QMI DMS 'Get Hardware Revision' command.
2017-09-20 09:56:23 -07:00
Ben Chan
a848b6c368 broadband-modem-mbim: support loading hardware revision
This patch implements hardware revision loading in MMBroadbandModemMbim
by extracting the HardwareInfo field from the response to a
MBIM_CID_DEVICE_CAPS query.
2017-09-20 09:56:23 -07:00
Ben Chan
4a5a73eb1e cli: show hardware revision property of Modem interface 2017-09-20 09:56:23 -07:00
Ben Chan
9c6a1ebb1e libmm-glib: add helpers for loading hardware revision 2017-09-20 09:56:23 -07:00
Ben Chan
daa59aeb4c iface-modem: add hook to load hardware revision 2017-09-20 09:56:23 -07:00
Ben Chan
e32510418a api,introspection: new 'HardwareRevision' property
This property will let the clients know the hardware revision reported
by the modem.
2017-09-20 09:56:23 -07:00
Ben Chan
795ecad0e6 hso: port disconnect_3gpp to use GTask 2017-09-20 09:30:27 -07:00
Ben Chan
ee80e1f660 hso: port get_ip_config_3gpp to use GTask 2017-09-20 09:30:27 -07:00
Ben Chan
8bae1a785a hso: port {enable,disable}_location_gathering to use GTask 2017-09-20 09:30:27 -07:00
Ben Chan
227eae3f31 hso: port location_load_capabilities to use GTask 2017-09-20 09:30:27 -07:00
Ben Chan
616cfa9959 hso: port modem_3gpp_{setup,cleanup}_unsolicited_events to use GTask 2017-09-20 09:30:27 -07:00
Ben Chan
0131f9b006 hso: port modem_create_bearer to use GTask 2017-09-20 09:30:27 -07:00
Ben Chan
d23dd2343a hso: port load_unlock_retries to use GTask 2017-09-20 09:30:27 -07:00
Ben Chan
a62d34c35a hso: port hso_custom_init to use GTask 2017-09-20 09:30:27 -07:00
Ben Chan
4cb6f0e5aa broadband-modem-mbim: fix preservation logic for PIN1 unlock retries
This patches fixes commit 334273979 "broadband-modem-mbim: preserve
unlock retries for PIN1 when appropriate", which doesn't correctly
propagate the unlock retries information for PIN1 observed from
responses to MBIM_CID_PIN set operations (see commit eb9ec1b61
"sim-mbim: update unlock retries information after PIN operations").
2017-09-20 09:28:16 -07:00
Ben Chan
4f8e9e2e1c iface-modem: add mm_iface_modem_get_unlock_retries helper
This patch adds a mm_iface_modem_get_unlock_retries helper for getting
the current MMUnlockRetries value of a MMIfaceModem object, which later
allows us to partially update (e.g. a specific MMModemLock) the
MMUnlockRetries value of a MMIfaceModem object.
2017-09-20 09:28:12 -07:00
Aleksander Morgado
bb5cd9b4e2 option: remove unneeded explicit casts 2017-09-18 21:23:05 -07:00
Aleksander Morgado
f710278b3d sierra: remove unneeded explicit casts 2017-09-18 21:21:59 -07:00
Aleksander Morgado
fd508d7057 sierra: skip setting GError if not used
The return status of mm_base_modem_at_command_finish() already
specifies whether an error has happened or not, so skip creating the
GError if we don't care about the actual error details.
2017-09-18 20:50:45 -07:00
Ben Chan
4fbd88395d sierra: port get_detailed_registration_state to use GTask 2017-09-18 20:39:03 -07:00