aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2018-11-26api,modem: deprecate ListBearers() methodAleksander Morgado
This method is completely unnecessary as we have the readable Bearers property already in place, so let's deprecate it. Worth noting that the mm_modem_list_bearers() async/sync methods in libmm-glib were not really using the ListBearers() method anyway, they are using the property directly. These methods are NOT deprecated, because they allow us to get a list of MMBearer objects, instead of just the list of DBus paths that we get when reading the Bearers property directly. We also remove --list-bearers from the mmcli operation list as we have already the same information in the standard modem output.
2018-11-26broadband-modem: enable and handle +CGEV indicationsAleksander Morgado
The +CGEV indications allow us to get notified of packet domain events like network-initiated or ME-initiated disconnections on specific connected contexts, as well as full PS detach events (all contexts disconnected). If the modem supports these indications, we will enable them with +CGEREP and will then process them when they are emitted by the modem. If a full PS detach event happens, we will explicitly disconnect all connected bearers. If a deactivation inidication is received for a single context, we will look for the associated bearer by CID and explicitly disconnect it.
2018-11-20cli,signal: fix missing separator in GSM blockAleksander Morgado
Each group of items should have a separator.
2018-11-20cli,signal: fix unknown value reportingAleksander Morgado
At this point we want the values enclosed between single quotes, e.g. so that the fields are parsed easier by scripts. This issue will not have any practical relevance as soon as the key-value pair output support is merged.
2018-11-12dell: don't ignore ttyUSB1 in the DW5821eAleksander Morgado
This port was ignored because it was non-functional in early development firmware images, and made device probing very slow. This has been solved in the first production images of the DW5821e module.
2018-11-12doc,libmm-glib: mm_pco_new() is not part of public APIAleksander Morgado
2018-11-12docs,libmm-glib: flag as private the mm_location_3gpp_reset() methodAleksander Morgado
2018-11-12libmm-glib,bearer-properties: don't document non-public APIAleksander Morgado
To avoid gtk-doc complaining about that.
2018-11-12libmm-glib,3gpp: add missing set_eps_ue_mode_operation() API docsAleksander Morgado
2018-11-12docs: remove duplicated mm-call-audio-format sectionAleksander Morgado
2018-11-08tests: use memcmp() instead of g_assert_cmpmem() for nowBen Chan
g_assert_cmpmem() isn't available until glib 2.46, while the minimum glib version required by ModemManager is 2.36. This patch replaces the uses of g_assert_cmpmem() with memcmp() instead.
2018-11-07broadband-modem-mbim: update ms-basic-connect-extensions namingBen Chan
libmbim 1.17.4 (commit 3eeaa4248b98 "ms-basic-connect-extensions: rename service") added a MS prefix to the Basic Connectivity Extensions service. This patch updates the MMBroadbandModemMbim code accordingly.
2018-10-31ublox: Add CDC-ECM support for SARA/LISA-U2xxSven Schwermer
The SARA-U2xx and LISA-U20x require the PDP context to be activated via +UCEDATA instead of +CGACT=1 when using the CDC-ECM USB profile. Furthermore, they expect the DHCP discover packet from the TE while the command is running, i.e. while the modem has not replied yet. In order to achieve that, the bearer is marked as connected as soon as the command is issued. This makes the NetworkManager start the DHCP process. If the modem replies with an error, the bearer will be marked disconnected later on. Signed-off-by: Sven Schwermer <sven.schwermer@disruptive-technologies.com>
2018-10-27docs: add missing MMCallAudioFormat reference in docsAleksander Morgado
2018-10-27doc: fix multiple missing referencesAleksander Morgado
2018-10-27build: ignore generated ChangeLogBen Chan
2018-10-27libqcdm: remove useless checks on always true conditionBen Chan
result.c: In function ‘qcdm_result_add_u8_array’: result.c:338:36: error: comparison of unsigned expression >= 0 is always true [-Werror=type-limits] qcdm_return_if_fail (array_len >= 0); result.c: In function ‘qcdm_result_add_u16_array’: result.c:418:36: error: comparison of unsigned expression >= 0 is always true [-Werror=type-limits] qcdm_return_if_fail (array_len >= 0); ^
2018-10-27modem-helpers: remove useless checks on always true conditionBen Chan
mm-modem-helpers.c:3075:31: error: comparison of unsigned expression >= 0 is always true [-Werror=type-limits] g_return_val_if_fail (idx >= 0, NULL); ^
2018-10-26ublox: fix username and password passed to +UAUTHREQBen Chan
2018-10-26sim-qmi: use QMI UIM service to read IMSI if neededBen Chan
If a QMI modem doesn't support the deprecated DMS_UIM_GET_IMSI command, use the UIM_READ_TRANSPARENT command to read EFimsi on the SIM to determine the IMSI.
2018-10-26sim-qmi: use QMI UIM service to read ICCID if neededBen Chan
If a QMI modem doesn't support the deprecated DMS_UIM_GET_ICCID command, use the UIM_READ_TRANSPARENT command to read EFiccid on the SIM to determine the ICCID.
2018-10-26modem-helpers: new helper to convert binary-coded decimalsBen Chan
This patch adds a mm_bcd_to_string() helper function to convert a byte array representing a binary-coded decimal (BCD) number to a string representing the equivalent decimal number.
2018-10-26api: deprecate SubscriptionState propertyAleksander Morgado
2018-10-26altair-lte: migrate from SubscriptionState to Pco propertyBen Chan
In preparation of deprecating the SubscriptionState property in the Modem3gpp interface, this CL updates the altair-lte plugin to update the Pco property in the Modem3gpp interface upon receiving %PCOINFO notification.
2018-10-22sierra: remove unused 'self' variable in scact_periodic_query_ready()Ben Chan
2018-10-22broadband-bearer: remove unused 'self' variablesBen Chan
2018-10-20xmm: remove unused 'priv' variable in xact_query_bands_ready()Ben Chan
2018-10-20base-call: remove unused 'self' variablesBen Chan
2018-10-18core: use g_clear_pointer() to avoid explicitly checking and resetting pointersBen Chan
2018-10-18core: remove unnecessary NULL checks for g_match_info_free()Ben Chan
g_match_info_free() already check if the given pointer is NULL and does nothing on a NULL pointer.
2018-10-18core: remove unnecessary NULL checks for g_free()Ben Chan
g_free() already check if the given pointer is NULL and does nothing on a NULL pointer.
2018-10-17xmm: implement A-GPS supportAleksander Morgado
2018-10-17libmm-glib,gps-raw: prefer $GNGGA over $GPGGAAleksander Morgado
The $GNGGA traces provide "combined" values when multiple satellite constellations are used (e.g. GPS+GLONASS). Prefer these values over the GPS-only $GPGGA traces if both are received.
2018-10-17xmm: implement XLCSLSR based GPS management and reportAleksander Morgado
2018-10-17modem-helpers-qmi: include string.h for memset()Ben Chan
This patch fixes the following compiler warning: mm-modem-helpers-qmi.c:568:5: error: implicitly declaring library function 'memset' with type 'void *(void *, int, unsigned int)' [-Werror,-Wimplicit-function-declaration] memset (extended_qmi_lte_bands, 0, extended_qmi_lte_bands_size * sizeof (guint64)); ^
2018-10-16sim-qmi: avoid unnecessary MM_SIM_QMI() call on MMSimQmi objectBen Chan
2018-10-16huawei,call: check for ^CVOICE support and enable audio streamingAleksander Morgado
USB sticks only support voice if ^CVOICE returns 0. And to enable audio streaming on the "Application" port (whatever is returned by AT^DDSETEX=?) we need to send AT^DDSETEX=<port> after starting the call. After that the serial port will send and accept signed 16-bit 8000hz PCM audio, or whatever format is returned by ^CVOICE?. This patch is a rework of the original implementation by: Dan Williams <dcbw@redhat.com>
2018-10-16port-serial: don't allow opens when a port is connectedDan Williams
2018-10-16base-call: implement generic audio channel setup/cleanup handlersAleksander Morgado
Modems that require specific commands to setup or cleanup the audio channel as soon as a call is ongoing can subclass these two new methods. The setup() method is considered part of the call start/accept process, and so if it fails, the whole operation will fail. The failures in the cleanup() method will be reported in the log, but otherwise ignored, as this operation may be executed without any user intervention (e.g. if the remote party hangs up).
2018-10-16api,call: new state reason to report audio setup failuresAleksander Morgado
2018-10-16api/libmm-glib/cli: add AudioPort and AudioFormat properties to the Call objectDan Williams
2018-10-16ublox: implement detailed call state transitions with +UCALLSTATAleksander Morgado
Among other things, we now support: * Dialing to Ringing Out transition. * Ringing Out to Active transition.
2018-10-16iface-modem-voice: remove unused declarationAleksander Morgado
2018-10-16iface-modem-voice: simplify reporting new incoming callsAleksander Morgado
Allow creating a new incoming call object also when we receive +CLIP, so that we can have the remote caller number as soon as the object is created.
2018-10-16base-call: treat 'ringing-in' as an in-call stateAleksander Morgado
So that we setup in-call events as soon as we get the incoming call ringing in. This allows us to have plugin-specific implementations e.g. reporting call termination when the remote caller hangs up.
2018-10-16mm-iface-mode: provide direction and number when creating callsAleksander Morgado
Calls created from property bundles are always outgoing, while calls created as input events from URCs during runtime are always incoming. This change makes it mandatory to provide at least direction of the call when the object is created, leaving the number as an optional property that may or may not be known in advance (e.g. it would be optional only for incoming calls).
2018-10-16iface-modem-voice: always create plugin-specified call objectsAleksander Morgado
The Voice interface logic must always use the create_call() object from its own interface to create call objects, as that is the method that plugins can subclass to provide plugin-specific call objects. This applies to both incoming and outgoing calls.
2018-10-16huawei,call: handle in-call URCs in the call object itselfAleksander Morgado
Instead of handling the URCs in the modem object and using the MMIfaceModem as a bridge to report the status read from the URC to a call obtained from the MMCallList... just handle the URCs in the call object itself.
2018-10-16huawei: ignore voice origination info URCsAleksander Morgado
These are not used for anything, so just simplify code.
2018-10-16huawei: if URCs fully ignored always, don't treat them as voice-specificAleksander Morgado