[PATCH] drivers/qmimodem: don't change the RAT when registering to an operator
by Alexander Couzens
When registering to an operator ofono uses the old RAT.
In the case the modem is not connected to any network, this would use
QMI_NAS_NETWORK_RAT_NONE which results in the error OP_DEVICE_UNSUPPORTED.
Use QMI_NAS_NETWORK_RAT_NO_CHANGE instead to not define any preference.
---
drivers/qmimodem/nas.h | 1 +
drivers/qmimodem/network-registration.c | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/qmimodem/nas.h b/drivers/qmimodem/nas.h
index 09807f83..d2feb464 100644
--- a/drivers/qmimodem/nas.h
+++ b/drivers/qmimodem/nas.h
@@ -97,6 +97,7 @@ struct qmi_nas_network_rat {
} __attribute__((__packed__)) info[0];
} __attribute__((__packed__));
+#define QMI_NAS_NETWORK_RAT_NONE 0x00
#define QMI_NAS_NETWORK_RAT_GSM 0x04
#define QMI_NAS_NETWORK_RAT_UMTS 0x05
#define QMI_NAS_NETWORK_RAT_LTE 0x08
diff --git a/drivers/qmimodem/network-registration.c b/drivers/qmimodem/network-registration.c
index 52ad69a6..04de5a5b 100644
--- a/drivers/qmimodem/network-registration.c
+++ b/drivers/qmimodem/network-registration.c
@@ -356,7 +356,7 @@ static void qmi_register_manual(struct ofono_netreg *netreg,
info.mcc = atoi(mcc);
info.mnc = atoi(mnc);
- info.rat = data->current_rat;
+ info.rat = QMI_NAS_NETWORK_RAT_NO_CHANGE;
qmi_param_append(param, QMI_NAS_PARAM_REGISTER_MANUAL_INFO,
sizeof(info), &info);
--
2.13.3
3 years, 8 months
[PATCH] plugins/allowed-apns: remove dbus interface when modem disappear
by Alexander Couzens
Previous a disappeared modem still shows the following methods:
org.ofono.AllowedAccessPoints.GetAllowedAccessPoints
---
plugins/allowed-apns.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/plugins/allowed-apns.c b/plugins/allowed-apns.c
index 532d17af..b222b91c 100644
--- a/plugins/allowed-apns.c
+++ b/plugins/allowed-apns.c
@@ -195,6 +195,7 @@ static void sim_watch(struct ofono_atom *atom,
if (cond == OFONO_ATOM_WATCH_CONDITION_UNREGISTERED) {
if (ctx->simwatch_id) {
+ sim_state_watch(OFONO_SIM_STATE_NOT_PRESENT, data);
ofono_sim_remove_state_watch(ctx->sim, ctx->simwatch_id);
ctx->simwatch_id = 0;
}
--
2.13.3
3 years, 8 months
need your advice
by Sheila Cho
Hi!
A very unpleasant situation happened to me a couple of days ago, I need your advice. Please read more about it here http://www.underhood.com.mx/templates/beez3//athlete.php?a0a1
All best, Sheila Cho
From: ofono [mailto:ofono@ofono.org]
Sent: Sunday, August 06, 2017 8:09 AM
To: minjun_li(a)sina.com
Subject: HurriKane and HurriDane
Well I hate toolbars because whenever I get called in for family Geek Squad needs, the old people always bitch that I uninstalled all of their toolbars without their permission, even though the download files for the toolbars were the cause of the problem... Trying to explain this to the old people is an exercise in futility.
Sent from Mail for Windows 10
3 years, 8 months
Re: i love that stuff!
by Max Ezell
Yo!
Have you ever seen stuff like that? I just love it. Please take a look here http://www.bfchurch.tv/favor.php?7a7b
Warmest, Max Ezell
From: ofono [mailto:ofono@ofono.org]
Sent: Wednesday, August 02, 2017 2:33 PM
To: minjun_li(a)sina.com
Subject: gorilla
Wasn't Disney (at the time), but when I was little I pretended to be Princess Leia and would only fall asleep after a stormtrooper (mom or dad) hit me with a stun gun (point and make a laser noise).
It worked really well, because even if I wasn't tired, I was pretend-stunned so I pretend-couldn't move for long enough I actually fell asleep.
Sent from Mail for Windows 10
3 years, 8 months