So I re-tested your incorrect APN scenario and another that was as close
as I could get to your original scenario.  Note, I didn't check the
mobile data settings in any of these tests.

Here's what I did on mako, running rtm image #26 plus a modified version
of the latest ofono from the rtm.

I stopped ofono & NM, then edited ofono's gprs settings file for the
current SIM ( more on that later ) and appended ".foo" to each of the
context "AccessPointName" values.   I also deleted
/var/lib/NetworkManager/timestamps and then rebooted.

NM tries context1 ( "ATT PHONE" ) four times ( each failing ), then
context2 ( "ATT WAP" ) which also fails.  NM marks each connection as
"Invalid".

Note, I also discovered that NM tries to activate other contexts found
in previous SIM card directories under /var/lib/ofono.  I will open
another bug for this problem.

Next, I stopped ofono and NM again, edit the gprs file, and correct the
AccessPointName values and reboot.   After rebooting, NM seems to
properly find the correct context and activates it.

I also tried to simulate your first scenario, but checking an
environment variable ( "OFONO_RIL_DATA_FAIL" ) in rilmodem/gprs-
context.c in the callback that handles the data reply.  If the env var
is set, I treat it like a FAILED reply from ril.   Again I rebooted and
watched NM fail to connect either context and mark both Invalid.  After
removing the env var from the upstart job, I rebooted and again NM comes
up and properly activates the correct context.

I will try to reproduce on krillin next.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1349273

Title:
  NM does not retry opening mobile data on reboot

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/1349273/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to