Hi Redouane, ... > +static void gprs_cid_take(struct ofono_gprs *gprs, unsigned int id) > +{ > + idmap_take(gprs->cid_map, id); > +} > + How do we assure that this CID is not already in use? I think the M7400 is going to use CID=0 and M700 uses CID=1. Perhaps we should make sure CID=0 is a legal value and reserve CID 0 and 1 at start up.
There is probably other ways of handling this as well, but I think any other solution would end up with race conditions, as context could be initiated from two sources. Regards, Sjur _______________________________________________ ofono mailing list ofono@ofono.org http://lists.ofono.org/listinfo/ofono