diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2022-03-16 11:57:53 +0100 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2022-03-16 11:04:06 +0000 |
commit | 2c8cfb47688da244e9312c291a250f7cceab02ff (patch) | |
tree | 45f030850d85005647e06ef5ac5ca41d4d1e37df /src/mm-modem-helpers.h | |
parent | 5ba67aff826a13580d6352ef82ba3a36ae7642fa (diff) |
modem-helpers: improve and fix COPS=? numeric fields parsing
The numeric fields in the +COPS=? response were relying on a very weak
parsing logic, assuming that they were single-digit numeric values and
not using the common string to integer conversion utilities.
This commit improves the conversion from the 3GPP/ETSI defined network
availability and access technology values to the MM defined ones,
providing enum-based matches even if the numeric values are the same.
The commit also fixes the parsing of access technology values > 10,
required to report 5G related values.
Diffstat (limited to 'src/mm-modem-helpers.h')
-rw-r--r-- | src/mm-modem-helpers.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mm-modem-helpers.h b/src/mm-modem-helpers.h index 0d8b96a0..c04d0e09 100644 --- a/src/mm-modem-helpers.h +++ b/src/mm-modem-helpers.h @@ -160,6 +160,7 @@ gboolean mm_3gpp_parse_cops_read_response (const gchar *response, guint *out_format, gchar **out_operator, MMModemAccessTechnology *out_act, + gpointer log_object, GError **error); /* Logic to compare two APN names */ |