Hi Dragos, On 11/16/2016 09:54 AM, Dragos Tatulea wrote: > The U-Blox documentation specifies the following: > * get interface ip and dns from +CGDCONTRDP > * get gw ip and netmask from +UIPADDR > > However, different firmware versions have different befaviour: > > * On newer firmware, +UIPADDR returns error. But it's possible to configure > gateway ip == ipterface ip (read from CGDCONTRDP). > > * On older firmware, we can actually use the commands specified in the > docs. > > This patch runs +CGDCONTRDP, configures everything and then tries to run > +UIPADDR. In that works, reconfigures gw ip and netmask. > --- > drivers/ubloxmodem/gprs-context.c | 51 +++++++++++++++++++++++++++++++++++++++ > 1 file changed, 51 insertions(+) > Amended the patch for a couple of small whitespace issues. Applied, thanks! Regards, -Denis