Problems switching between WiFi and Mobile Data on MTK-based phones

Bug #1426122 reported by Tony Espy
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
network-manager (Ubuntu)
Fix Released
High
Tony Espy

Bug Description

On recent vivid images running on phones with MTK modems ( arale, krillin ) switching between WiFi and mobile-data and back leads to broken networking where neither device ( WiFi or WWAN ) will establish a network connection.

It appears that the new version of network-manager in vivid ( 0.9.10-4ubuntu6 ) is incorrectly attempting to manage the devices created by rild when mobile-data connections are established.

For instance, on krillin running RTM, 'nmcli -d' reports the following networking devices:

% nmcli d
wlan0 wifi disconnected
ril_0 gsm connected
ril_1 gsm disconnected

On the same device running vivid, an extra device which should be unmanaged is listed:

% nmcli d
ril_0 gsm connected /310410786147829/context2
ccmni0 wifi connected ccmni0
wlan0 wifi disconnected --
ril_1 gsm unavailable --
ccmni1 wifi unmanaged

Note that ccmni0 is listed as a wifi device, with a status of connected whereas ccmni1 is listed as unmanaged.

If you look at syslog, you'll see a two log messages output after ril_0 is activated which show network-manager detecting a change in ccmni0 and deciding it should become managed:

This bug was discovered on ubuntu-touch/vivid-proposed #122.

Feb 25 21:17:08 ubuntu-phablet NetworkManager[1163]: <info> (ccmni0): device state change: unmanaged -> unavailable (reason 'connection-assumed') [10 20\
 41]
Feb 25 21:17:08 ubuntu-phablet NetworkManager[1163]: <info> (ccmni0): device state change: unavailable -> disconnected (reason 'connection-assumed') [20\
 30 41]

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

After discussing with Mathieu, we suspect that the fix involves modifying the ignore_rmnet_devices.patch to ignore ccmni* named devices.

It also might make sense to re-work this patch so that it doesn't hard-code device names but instead reads a device-name pattern from an environment variable ( possibly generated based on an Android property ) or optional text file that could be exported from the device tarball.

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

Initial fix seems to work on arale. I'm able to switch back and forth between Wi-Fi and mobile-data, and nm no longer attempts to manage the ccmni* devices.

Changed in network-manager (Ubuntu):
status: New → In Progress
importance: Undecided → High
assignee: nobody → Tony Espy (awe)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package network-manager - 0.9.10.0-4ubuntu7

---------------
network-manager (0.9.10.0-4ubuntu7) vivid; urgency=medium

  [ Tony Espy ]
  * touch: include the MTK specific modems in the ignore list
    (LP: #1426122)
 -- Ricardo Salveti de Araujo <email address hidden> Fri, 27 Feb 2015 18:50:35 -0300

Changed in network-manager (Ubuntu):
status: In Progress → Fix Released
Revision history for this message
scliss (scliss) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.