mirror of
https://github.com/sailfishos/ofono
synced 2025-11-23 19:09:44 +08:00
Compare commits
6 Commits
mer/1.23+g
...
upgrade-4.
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
deecd829a6 | ||
|
|
3acf91c6a9 | ||
|
|
85b61c8964 | ||
|
|
8986749585 | ||
|
|
1c0f5094a6 | ||
|
|
4208b6d9ea |
@@ -104,7 +104,7 @@ static void at_csca_set(struct ofono_sms *sms,
|
||||
{
|
||||
struct sms_data *data = ofono_sms_get_data(sms);
|
||||
struct cb_data *cbd = cb_data_new(cb, user_data);
|
||||
char buf[64];
|
||||
char buf[128];
|
||||
|
||||
snprintf(buf, sizeof(buf), "AT+CSCA=\"%s\",%d", sca->number, sca->type);
|
||||
|
||||
|
||||
@@ -960,12 +960,6 @@ static gboolean ril_data_call_setup_submit(struct ril_data_request *req)
|
||||
RADIO_TECH_LTE : priv->network->data.ril_tech;
|
||||
if (tech > 2) {
|
||||
tech += 2;
|
||||
} else {
|
||||
/*
|
||||
* This value used to be hardcoded, let's keep using it
|
||||
* as the default.
|
||||
*/
|
||||
tech = RADIO_TECH_HSPA;
|
||||
}
|
||||
|
||||
if (setup->username && setup->username[0]) {
|
||||
|
||||
@@ -268,7 +268,7 @@ static void set_new_cond_list(struct ofono_call_forwarding *cf,
|
||||
const char *number;
|
||||
dbus_uint16_t timeout;
|
||||
char attr[64];
|
||||
char tattr[64];
|
||||
char tattr[72];
|
||||
gboolean update_sim = FALSE;
|
||||
gboolean old_cfu;
|
||||
gboolean new_cfu;
|
||||
|
||||
@@ -994,18 +994,17 @@ static void bac_cb(GAtServer *server, GAtServerRequestType type,
|
||||
/*
|
||||
* CVSD codec is mandatory and must come first.
|
||||
* See HFP v1.6 4.34.1
|
||||
* However, some headsets send the list in wrong order,
|
||||
* but function fine otherwise, so to get those working
|
||||
* let's not be pedantic about the codec order.
|
||||
*/
|
||||
if (g_at_result_iter_next_number(&iter, &val) == FALSE ||
|
||||
val != HFP_CODEC_CVSD)
|
||||
goto fail;
|
||||
|
||||
em->bac_received = TRUE;
|
||||
|
||||
em->negotiated_codec = 0;
|
||||
em->r_codecs[CVSD_OFFSET].supported = TRUE;
|
||||
|
||||
while (g_at_result_iter_next_number(&iter, &val)) {
|
||||
switch (val) {
|
||||
case HFP_CODEC_CVSD:
|
||||
em->bac_received = TRUE;
|
||||
em->negotiated_codec = 0;
|
||||
em->r_codecs[CVSD_OFFSET].supported = TRUE;
|
||||
break;
|
||||
case HFP_CODEC_MSBC:
|
||||
em->r_codecs[MSBC_OFFSET].supported = TRUE;
|
||||
break;
|
||||
@@ -1015,6 +1014,11 @@ static void bac_cb(GAtServer *server, GAtServerRequestType type,
|
||||
}
|
||||
}
|
||||
|
||||
if (!em->bac_received) {
|
||||
DBG("Mandatory codec %d not received.", HFP_CODEC_CVSD);
|
||||
goto fail;
|
||||
}
|
||||
|
||||
g_at_server_send_final(server, G_AT_SERVER_RESULT_OK);
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user