On 01/04/2018 07:01 AM, Enrico Sau wrote:
I'm facing what seems to be a limit in ofono implementation.
I'm working with some Telit modems and some of them have reserved
contexts which can't be used for data connection.
Define 'reserved contexts'? Is it just the context id that is reserved
or the USB port?
Currently, from telit plugin, I can only send the "vendor"
the interface create function and there is no way to specify the product.
What you think?
Did anyone ever have to set different behaviors for different products
of the same vendor?
I'm thinking about different solutions:
- extend the vendors enum in order to be a vendor/product enum.
This can certainly be done, but not preferable.
- add a product parameter to the function prototype
This would be too invasive. Are you using the telit gprs-context
driver? If so, you'd be better off changing that one to accept a custom
data structure instead of a GAtChat. See drivers/hfpmodem for an
example. Or write a custom driver for your needs...
- change the vendor parameter with a structure of two variables