Hi Redouane, > gprs: add function to handle activated context > ofono_gprs_context_activated : this function is symetric to > ofono_gprs_context_deactivated. > This function must be call by any gprs-context driver when a context has been > activated without explicit request. > > Behavior of the function : > > List all the context and try to find correct APN
we have to be careful to only match against APN==APN and Username=="" + Password=="". The username and password option is pretty much pointless, but it is present and we do support it. So we need to make sure the APN matching sensible. Or does the network provide us with additional information about the username + password as well? > If such context is not found create a new one with "Internet" type. I don't really agree that we should create a context if no match is found. I think the better sensible strategy is to hold this information internally and only map it to a context once the user or provisioning creates it. Also oFono will create at least one Internet context automatically. And in the future that might be auto-provisioned. Another option would be to introduce the concept of temporary context where the lifetime is mandated by the network. > For the context (found or created): > Update the settings > Set to active Regards Marcel _______________________________________________ ofono mailing list [email protected] http://lists.ofono.org/listinfo/ofono
