On 04/05/2019 03:13 PM, Nguyen, Tom wrote:
> Hi Denis,
> Thank you for the quick response. By the way, I'm not able to post to ofono(a)ofono.org, so this reply probably won't show up there. I've not figured out what the problem is, but suspect it's blocking "garmin.com".
Please contact ofono-owner address again and see if someone can help. I
don't really have any idea why we would be blocking any domain and you
are the first to complain in 10 or so years.
> The issue is that Quectel has a single mode LTE modem that populates all 3 fields. They do this because they also have the same modem that only supports CDMA. So, the current oFono code returns the ESN even though my modem is LTE only. Your info below is very informative, thanks! The CDMA info also confirms my observation about its level of support.
> I have an alternative idea. What if I query QMI_DMS_GET_CAPS, figure out which radio_if is supported, then return IMEI if GSM/UMTS/LTE is supported, else ESN or MEID? This way Modem.Serial property will still behave as it does now.
That sounds workable.
From: Richard Röjfors <richard(a)puffinpack.se>
This fix is similar to the one in the following commit,
but fixes allocation for context ids after ap's are
read from settings.
Author: Denis Kenzior <denkenz(a)gmail.com>
Date: Thu Jan 3 17:17:21 2019 -0600
gprs: Fix allocation of context id
src/gprs.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/gprs.c b/src/gprs.c
index b0d56e1e..d432c9fd 100644
@@ -2340,7 +2340,11 @@ static void provision_context(const struct ofono_gprs_provision_data *ap,
strlen(ap->message_center) > MAX_MESSAGE_CENTER_LENGTH)
- id = l_uintset_find_unused(gprs->used_pids, gprs->last_context_id);
+ if (gprs->last_context_id)
+ id = l_uintset_find_unused(gprs->used_pids,
+ id = l_uintset_find_unused_min(gprs->used_pids);
if (id > l_uintset_get_max(gprs->used_pids))