mirror of
https://github.com/sailfishos/ofono
synced 2025-12-02 15:41:03 +08:00
Compare commits
2 Commits
mer/1.23+g
...
mer/1.21+g
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b3380c6eca | ||
|
|
f98e9a2193 |
@@ -1253,7 +1253,7 @@ static guint ril_perso_change_state(struct ofono_sim *sim,
|
|||||||
if (req) {
|
if (req) {
|
||||||
id = grilio_queue_send_request_full(sd->q, req, code,
|
id = grilio_queue_send_request_full(sd->q, req, code,
|
||||||
ril_sim_pin_change_state_cb, ril_sim_pin_req_done,
|
ril_sim_pin_change_state_cb, ril_sim_pin_req_done,
|
||||||
ril_sim_pin_cbd_new(sd, passwd_type, TRUE, cb, data));
|
ril_sim_pin_cbd_new(sd, passwd_type, FALSE, cb, data));
|
||||||
grilio_request_unref(req);
|
grilio_request_unref(req);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1309,7 +1309,7 @@ static void ril_sim_pin_change_state(struct ofono_sim *sim,
|
|||||||
id = grilio_queue_send_request_full(sd->q, req,
|
id = grilio_queue_send_request_full(sd->q, req,
|
||||||
RIL_REQUEST_SET_FACILITY_LOCK,
|
RIL_REQUEST_SET_FACILITY_LOCK,
|
||||||
ril_sim_pin_change_state_cb, ril_sim_pin_req_done,
|
ril_sim_pin_change_state_cb, ril_sim_pin_req_done,
|
||||||
ril_sim_pin_cbd_new(sd, passwd_type, TRUE, cb, data));
|
ril_sim_pin_cbd_new(sd, passwd_type, FALSE, cb, data));
|
||||||
grilio_request_unref(req);
|
grilio_request_unref(req);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -417,13 +417,18 @@ void ofono_ussd_notify(struct ofono_ussd *ussd, int status, int dcs,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (status == OFONO_USSD_STATUS_TERMINATED) {
|
if (status == OFONO_USSD_STATUS_TERMINATED) {
|
||||||
ussd_change_state(ussd, USSD_STATE_IDLE);
|
if (ussd->state == USSD_STATE_ACTIVE && data && data_len > 0) {
|
||||||
|
/* Interpret that as a Notify */
|
||||||
|
status = OFONO_USSD_STATUS_NOTIFY;
|
||||||
|
} else {
|
||||||
|
ussd_change_state(ussd, USSD_STATE_IDLE);
|
||||||
|
|
||||||
if (ussd->pending == NULL)
|
if (ussd->pending == NULL)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
reply = __ofono_error_network_terminated(ussd->pending);
|
reply = __ofono_error_network_terminated(ussd->pending);
|
||||||
goto out;
|
goto out;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (status == OFONO_USSD_STATUS_NOT_SUPPORTED) {
|
if (status == OFONO_USSD_STATUS_NOT_SUPPORTED) {
|
||||||
|
|||||||
Reference in New Issue
Block a user