Skip to content

Commit 1099b0d

Browse files
committed
Merge pull request mozilla-b2g#48 from jessi3py/bug-909688
Bug 909688 - Emulator: do not auto attach data registration. r=vicamo
2 parents c090c9c + 7137389 commit 1099b0d

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

telephony/android_modem.c

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1303,16 +1303,10 @@ amodem_activate_data_call( AModem modem, int cid, int enable)
13031303
return "+CME ERROR: 131";
13041304
}
13051305

1306-
if (data->active == enable)
1307-
return NULL;
1308-
1309-
if (enable &&
1310-
modem->data_state != A_REGISTRATION_HOME &&
1306+
if (modem->data_state != A_REGISTRATION_HOME &&
13111307
modem->data_state != A_REGISTRATION_ROAMING) {
1312-
if (modem->oper_index == OPERATOR_ROAMING_INDEX)
1313-
amodem_set_data_registration(modem, A_REGISTRATION_ROAMING);
1314-
else
1315-
amodem_set_data_registration(modem, A_REGISTRATION_HOME);
1308+
// service option temporarily out of order
1309+
return "+CME ERROR: 134";
13161310
}
13171311

13181312
data->active = enable;

0 commit comments

Comments
 (0)