diff options
author | Daniele Palmas <dnlplm@gmail.com> | 2017-06-16 16:12:39 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2017-06-16 19:46:57 +0200 |
commit | 4dbea97e1bb74ddf1a1cee15892d18a2bdafa003 (patch) | |
tree | 03225bb64414cc9d95a12cf31b23bf0d4398012b | |
parent | 58206664959a73deb8008b82b5070edb4ef87df2 (diff) |
telit: fix #PSNT values interpretation for HSDPA and LTE modems
Telit LTE modems use #PSNT: 4 for LTE access technology,
and #PSNT: 5 for unknown access technology, while HSDPA
modems use #PSNT: 4 for unknown access technology.
This patch fixes those #PSNT values interpretation according
to the modem capabilities.
-rw-r--r-- | plugins/telit/mm-broadband-modem-telit.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/plugins/telit/mm-broadband-modem-telit.c b/plugins/telit/mm-broadband-modem-telit.c index bd568a08..55deeedb 100644 --- a/plugins/telit/mm-broadband-modem-telit.c +++ b/plugins/telit/mm-broadband-modem-telit.c @@ -954,8 +954,17 @@ response_processor_psnt_ignore_at_errors (MMBaseModem *self, *result = g_variant_new_uint32 (MM_MODEM_ACCESS_TECHNOLOGY_HSDPA); return TRUE; case 4: - *result = g_variant_new_uint32 (MM_MODEM_ACCESS_TECHNOLOGY_LTE); + if (mm_iface_modem_is_3gpp_lte (MM_IFACE_MODEM (self))) + *result = g_variant_new_uint32 (MM_MODEM_ACCESS_TECHNOLOGY_LTE); + else + *result = g_variant_new_uint32 (MM_MODEM_ACCESS_TECHNOLOGY_UNKNOWN); return TRUE; + case 5: + if (mm_iface_modem_is_3gpp_lte (MM_IFACE_MODEM (self))) { + *result = g_variant_new_uint32 (MM_MODEM_ACCESS_TECHNOLOGY_UNKNOWN); + return TRUE; + } + /* Fall-through since #PSNT: 5 is not supported in other than lte modems */ default: break; } |