← Back to team overview

ubuntu-phonedations-bugs team mailing list archive

[Bug 1435328] Re: Leaving Wifi does not connect to mobile carrier data (GSM)

 

OK, I think I figured it out after looking at a radio log of the problem
reproduced by Alfonso.

First, there are a couple of MTK-specific unsolicited events that are
received that look suspicious:

RIL_UNSOL_RESPONSE_PS_NETWORK_STATE_CHANGED
UNSOL_RESTRICTED_STATE_CHANGED
RIL_UNSOL_RESPONSE_PS_NETWORK_STATE_CHANGED
UNSOL_RESTRICTED_STATE_CHANGED
UNSOL_DATA_CALL_LIST_CHANGED

Turns the mtkmodem code overrides the normal NETWORK_STATE_CHANGED
unsolicted request with the PS_NETWORK_STATE_CHANGED request.  The
RESTRICTED_STATE_CHANGED request doesn't seem to be listened for at all.

That said, I also see a UNSOL_DATA_CALL_LIST_CHANGED with the following
payload:

01 00 00 00 F2 03 00 00 09 00 00 00 00 00 00 00

01 00 00 00 = unsolicted
F2 03 00 00 = UNSOL_DATA_CALL_LIST_CHANGED
09 00 00 00 = version
00 00 00 00 = number of calls

The function ril_gprs_context_call_list_changed() in /drivers/rilmodem
/gprs-context.c handles this message.  If tries to iterator over the
call list, and if disconnect == TRUE, or active_cid_found == FALSE, it
calls set_context_disconnect().  This function however only sets the
internal rilmodem struct to disconnected state, and doesn't inform the
ofono core of the disconnect.  So, it leaves the connection internally
disconnected, but to the rest of the system, it's still connected.

I imagine this may be the same bug as bug #1436427 ( which has been a
theory all along ).

I'm working on a fix now, and should have something available to test by
tomorrow.



** Also affects: ofono (Ubuntu)
   Importance: Undecided
       Status: New

** Changed in: ofono (Ubuntu)
       Status: New => In Progress

** Changed in: ofono (Ubuntu)
   Importance: Undecided => Critical

** Changed in: ofono (Ubuntu)
     Assignee: (unassigned) => Tony Espy (awe)

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

Title:
  Leaving Wifi does not connect to mobile carrier data (GSM)

Status in the base for Ubuntu mobile products:
  Confirmed
Status in ofono package in Ubuntu:
  In Progress
Status in ofono package in Ubuntu RTM:
  In Progress

Bug description:
  After leaving my home or work wifi, my Bq phone cannot connect to the
  data from my mobile carrier. The only thing that works is rebooting
  the phone.

  Steps to reproduce:

  1- Connect your phone to password secure Wifi.
  2- Suspend phone.
  3- Leave wifi area and resume phone
  4- Wait for 3g data to kick in (appears 3g indicator instead of wifi)
  5- No connection established. I have waited for more than 30 mins.

  6- A reboot of the phone fixes this issue.

  Really annoying to have to reboot phone 3-4 times a day.

To manage notifications about this bug go to:
https://bugs.launchpad.net/canonical-devices-system-image/+bug/1435328/+subscriptions