[PATCH 06/13] gprs: Default CID range to 1..NUM_CONTEXTS -1
Denis Kenzior <[email protected]>
| Newsgroups | dev.linux.lists.ofono |
|---|---|
| Message-ID | <[email protected]> |
For those drivers where CIDs have no meaning (such as non-AT command
based modems), set a default range between 1 and NUM_CONTEXTS - 1 (255).
This allows the driver to omit this method invocation.
---
src/gprs.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/gprs.c b/src/gprs.c
index 3c71f8084417..c5287661b9d9 100644
--- a/src/gprs.c
+++ b/src/gprs.c
@@ -3082,6 +3082,7 @@ OFONO_DEFINE_ATOM_CREATE(gprs, OFONO_ATOM_TYPE_GPRS, {
atom->status = NETWORK_REGISTRATION_STATUS_UNKNOWN;
atom->netreg_status = -1;
atom->used_pids = l_uintset_new(MAX_CONTEXTS);
+ atom->used_cids = l_uintset_new_from_range(1, MAX_CONTEXTS - 1);
})
static void netreg_watch(struct ofono_atom *atom,
--
2.45.2