Merge lp://staging/~phablet-team/network-manager/lp1461593 into lp://staging/~phablet-team/network-manager/vivid-phone-overlay

Proposed by Tony Espy
Status: Merged
Approved by: Alfonso Sanchez-Beato
Approved revision: 964
Merged at revision: 963
Proposed branch: lp://staging/~phablet-team/network-manager/lp1461593
Merge into: lp://staging/~phablet-team/network-manager/vivid-phone-overlay
Diff against target: 278 lines (+258/-0)
3 files modified
debian/changelog (+9/-0)
debian/patches/lp1461593-add-modem-reconnect-delay.patch (+247/-0)
debian/patches/series (+2/-0)
To merge this branch: bzr merge lp://staging/~phablet-team/network-manager/lp1461593
Reviewer Review Type Date Requested Status
Alfonso Sanchez-Beato Approve
Review via email: mp+261450@code.staging.launchpad.net

Commit message

  debian/patches/lp1461593-add-modem-reconnect-delay.patch: add
  a 5s delay to NM_POLICY's activation logic triggered when a
  device is disconnected. This allows the modem time to settle
  and NM to process the resulting DBus state changes (LP: #1461593).

Description of the change

This change adds a 5s delay into NM_POLICY's re-connect logic, specifically so that the retry_limit of the associated connection isn't exhausted immediately whenever the connection drops, which then used to result in a 5m timer being set.

There are two changes...

1. The afore-mentioned 5m timer is now reduced to 30s for modem devices. In theory, connections shouldn't be getting disabled anymore due to the above fix, so this is a just-in-case change.

2. The low-level NM_MODEM_OFONO code wasn't setting the modem state to DISCONNECTING when disconnect() was called. This is now done, and in the associated callback ( disconnect_cb ) the new state is now determined by the ofono cached properties ( online && powered && attached ).

To post a comment you must log in.
Revision history for this message
Alfonso Sanchez-Beato (alfonsosanchezbeato) wrote :

Just some minor comments, besides that it looks great to me.

review: Needs Fixing
Revision history for this message
Alfonso Sanchez-Beato (alfonsosanchezbeato) wrote :

I downloaded NM from the phablet PPA (0.9.10.0-4ubuntu15.1.2~awe2) and did some testing. Switching the preferred technology between 2G and 3G works fine. Flight mode seems to be ok too. But NM was not re-establishing the connection when switching the slot with 3G capabilities.

This happened on krillin, using 2 SIMs. Version is

channel: ubuntu-touch/rc-proposed/bq-aquaris.en
last update: 2015-06-09 10:58:15
version version: 28

Revision history for this message
Tony Espy (awe) wrote :

Replies to comments added.

Revision history for this message
Alfonso Sanchez-Beato (alfonsosanchezbeato) :
Revision history for this message
Alfonso Sanchez-Beato (alfonsosanchezbeato) wrote :

Just tested RTM, NM does re-establish the connection when switching the slot with 3G capabilities in that case.

'Powered' does not migrate from one SIM to the other when switching the 3g slot, in vivid and in rtm.

Revision history for this message
Tony Espy (awe) wrote :

Thanks Alfonso... that makes sense as the NM/ofono code was forward ported to 0.9.10 for the vivid cycle, so the logic is significantly different.

964. By Tony Espy

Fixed ws formatting in patch, and added NL to series file.

Revision history for this message
Alfonso Sanchez-Beato (alfonsosanchezbeato) wrote :

LGTM

review: Approve
Revision history for this message
Alfonso Sanchez-Beato (alfonsosanchezbeato) wrote :

Silo 31 tested (krillin/vivid ubuntu-touch/rc-proposed/bq-aquaris.en #29)

Same results as previously, as expected:

* Switching the preferred technology between 2G and 3G works fine
* Flight mode seems to be ok too.
* NM was not re-establishing the connection when switching the slot with 3G capabilities.

Additionally, I confirmed that switching cellular data between SIM1 and SIM2 does work.

Revision history for this message
Tony Espy (awe) wrote :

Silo 31 tested (arale/vivid ubuntu-touch/rc-proposed/meizu.en #11)

Ran the basic test cases from the new network-manager touch-specific test plan:

https://wiki.ubuntu.com/Process/Merges/TestPlans/network-manager

Skipped the FlightMode tests due the following bug:

https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/1445080

Revision history for this message
Tony Espy (awe) wrote :

Silo 31 tested (mako/vivid ubuntu-touch/rc-proposed/ubuntu #153)

Ran the basic test cases from the network-manager component test plan:

https://wiki.ubuntu.com/Process/Merges/TestPlans/network-manager

The only tests not performed were the out-of-range Wi-Fi tests and the force-mobile-disconnect tests.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches

to all changes: