forked from sailfishos/ofono
Compare commits
7 Commits
mer/1.14+g
...
mer/1.14+g
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d8270409d0 | ||
|
|
e644196aa3 | ||
|
|
fed4a94862 | ||
|
|
ccc8d1afd4 | ||
|
|
417f20c662 | ||
|
|
304f7cc197 | ||
|
|
354285a438 |
@@ -89,18 +89,16 @@ static void ril_registration(struct ofono_call_forwarding *cf, int type,
|
|||||||
|
|
||||||
parcel_w_int32(&rilp, type);
|
parcel_w_int32(&rilp, type);
|
||||||
|
|
||||||
/* Modem seems to respond with error to all queries
|
/*
|
||||||
|
* Modem seems to respond with error to all queries
|
||||||
* or settings made with bearer class
|
* or settings made with bearer class
|
||||||
* BEARER_CLASS_DEFAULT. Design decision: If given
|
* BEARER_CLASS_DEFAULT. Design decision: If given
|
||||||
* class is BEARER_CLASS_DEFAULT let's map it to
|
* class is BEARER_CLASS_DEFAULT let's map it to
|
||||||
* SERVICE_CLASS_VOICE effectively making it the
|
* SERVICE_CLASS_NONE as with it e.g. ./send-ussd '*21*<phone_number>#'
|
||||||
* default bearer. This in line with API which is
|
* returns cls:53 i.e. 1+4+16+32 as service class.
|
||||||
* contains only voice anyways. TODO: Checkout
|
|
||||||
* the behaviour with final modem
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if (cls == BEARER_CLASS_DEFAULT)
|
if (cls == BEARER_CLASS_DEFAULT)
|
||||||
cls = BEARER_CLASS_VOICE;
|
cls = SERVICE_CLASS_NONE;
|
||||||
|
|
||||||
parcel_w_int32(&rilp, cls);
|
parcel_w_int32(&rilp, cls);
|
||||||
|
|
||||||
@@ -137,18 +135,16 @@ static void ril_send_forward_cmd(struct ofono_call_forwarding *cf,
|
|||||||
|
|
||||||
parcel_w_int32(&rilp, type);
|
parcel_w_int32(&rilp, type);
|
||||||
|
|
||||||
/* Modem seems to respond with error to all queries
|
/*
|
||||||
|
* Modem seems to respond with error to all queries
|
||||||
* or settings made with bearer class
|
* or settings made with bearer class
|
||||||
* BEARER_CLASS_DEFAULT. Design decision: If given
|
* BEARER_CLASS_DEFAULT. Design decision: If given
|
||||||
* class is BEARER_CLASS_DEFAULT let's map it to
|
* class is BEARER_CLASS_DEFAULT let's map it to
|
||||||
* SERVICE_CLASS_VOICE effectively making it the
|
* SERVICE_CLASS_NONE as with it e.g. ./send-ussd '*21*<phone_number>#'
|
||||||
* default bearer. This in line with API which is
|
* returns cls:53 i.e. 1+4+16+32 as service class.
|
||||||
* contains only voice anyways. TODO: Checkout
|
|
||||||
* the behaviour with final modem
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if (cls == BEARER_CLASS_DEFAULT)
|
if (cls == BEARER_CLASS_DEFAULT)
|
||||||
cls = BEARER_CLASS_VOICE;
|
cls = SERVICE_CLASS_NONE;
|
||||||
|
|
||||||
parcel_w_int32(&rilp, cls); /* Service class */
|
parcel_w_int32(&rilp, cls); /* Service class */
|
||||||
|
|
||||||
@@ -246,7 +242,7 @@ static void ril_query_cb(struct ril_msg *message, gpointer user_data)
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
CALLBACK_WITH_SUCCESS(cb, 1, list, cbd->data);
|
CALLBACK_WITH_SUCCESS(cb, nmbr_of_resps, list, cbd->data);
|
||||||
|
|
||||||
g_free(list);
|
g_free(list);
|
||||||
} else {
|
} else {
|
||||||
@@ -272,18 +268,16 @@ static void ril_query(struct ofono_call_forwarding *cf, int type, int cls,
|
|||||||
|
|
||||||
parcel_w_int32(&rilp, type);
|
parcel_w_int32(&rilp, type);
|
||||||
|
|
||||||
/* Modem seems to respond with error to all queries
|
/*
|
||||||
|
* Modem seems to respond with error to all queries
|
||||||
* or settings made with bearer class
|
* or settings made with bearer class
|
||||||
* BEARER_CLASS_DEFAULT. Design decision: If given
|
* BEARER_CLASS_DEFAULT. Design decision: If given
|
||||||
* class is BEARER_CLASS_DEFAULT let's map it to
|
* class is BEARER_CLASS_DEFAULT let's map it to
|
||||||
* SERVICE_CLASS_VOICE effectively making it the
|
* SERVICE_CLASS_NONE as with it e.g. ./send-ussd '*21*<phone_number>#'
|
||||||
* default bearer. This in line with API which is
|
* returns cls:53 i.e. 1+4+16+32 as service class.
|
||||||
* contains only voice anyways. TODO: Checkout
|
|
||||||
* the behaviour with final modem
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if (cls == BEARER_CLASS_DEFAULT)
|
if (cls == BEARER_CLASS_DEFAULT)
|
||||||
cls = BEARER_CLASS_VOICE;
|
cls = SERVICE_CLASS_NONE;
|
||||||
|
|
||||||
parcel_w_int32(&rilp, cls);
|
parcel_w_int32(&rilp, cls);
|
||||||
|
|
||||||
|
|||||||
@@ -642,7 +642,7 @@ static void sim_status_cb(struct ril_msg *message, gpointer user_data)
|
|||||||
if (sd->sim_registered == FALSE) {
|
if (sd->sim_registered == FALSE) {
|
||||||
ofono_sim_register(sim);
|
ofono_sim_register(sim);
|
||||||
sd->sim_registered = TRUE;
|
sd->sim_registered = TRUE;
|
||||||
} else
|
} else {
|
||||||
/* TODO: There doesn't seem to be any other
|
/* TODO: There doesn't seem to be any other
|
||||||
* way to force the core SIM code to
|
* way to force the core SIM code to
|
||||||
* recheck the PIN.
|
* recheck the PIN.
|
||||||
@@ -655,6 +655,7 @@ static void sim_status_cb(struct ril_msg *message, gpointer user_data)
|
|||||||
ofono_sim_inserted_notify(sim, TRUE);
|
ofono_sim_inserted_notify(sim, TRUE);
|
||||||
sd->card_state = RIL_CARDSTATE_PRESENT;
|
sd->card_state = RIL_CARDSTATE_PRESENT;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (current_passwd) {
|
if (current_passwd) {
|
||||||
if (!strcmp(current_passwd, defaultpasswd)) {
|
if (!strcmp(current_passwd, defaultpasswd)) {
|
||||||
|
|||||||
@@ -384,4 +384,7 @@
|
|||||||
#define RIL_UNSOL_STK_CC_ALPHA_NOTIFY 1040
|
#define RIL_UNSOL_STK_CC_ALPHA_NOTIFY 1040
|
||||||
#define RIL_UNSOL_UICC_SUBSCRIPTION_STATUS_CHANGED 1041
|
#define RIL_UNSOL_UICC_SUBSCRIPTION_STATUS_CHANGED 1041
|
||||||
|
|
||||||
|
/* Suplementary services Service class*/
|
||||||
|
#define SERVICE_CLASS_NONE 0
|
||||||
|
|
||||||
#endif /*__RIL_CONSTANTS_H*/
|
#endif /*__RIL_CONSTANTS_H*/
|
||||||
|
|||||||
Reference in New Issue
Block a user