Merge lp://staging/~phablet-team/network-manager/lp1461593 into lp://staging/~phablet-team/network-manager/vivid-phone-overlay
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 | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Alfonso Sanchez-Beato | Approve | ||
Review via email: mp+261450@code.staging.launchpad.net |
Commit message
debian/
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 ).
Just some minor comments, besides that it looks great to me.