Hi Fred, Frederic wrote: > The collision can only occur if the +CGDCONT (or +CGDSCONT) command from > Ofono is sent at the same time as PDP context activation URC from the modem, > and both use the same CID. > > But in that case, the modem should not reply "OK" to the PDP context > configuration command, but "ERROR". > And Ofono should not consider that the PDP configuration command as > successful. > Moreover, the "OK" for the context configuration and the context activation > URC are sent of the same control channel so they cannot be sent in parallel > but only in sequence. > > Sjur, is that a correct assumption?
Yes, this sounds about right. But I think Denis' proposal for using ofono_gprs_set_cid_range(gprs, <min>, <max>) pretty much solves this issue, We can use this to reserve the CID used for Initial PDN, and void this race condition. Regards, Sjur _______________________________________________ ofono mailing list [email protected] http://lists.ofono.org/listinfo/ofono
