mirror of git://git.sysmocom.de/ofono
Style: Fix some remaining style issues in atmodem
This commit is contained in:
parent
b95025ab01
commit
2297bc926d
|
@ -180,8 +180,8 @@ error:
|
||||||
CALLBACK_WITH_FAILURE(cb, data);
|
CALLBACK_WITH_FAILURE(cb, data);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int at_call_volume_probe(struct ofono_call_volume *cv, unsigned int vendor,
|
static int at_call_volume_probe(struct ofono_call_volume *cv,
|
||||||
void *data)
|
unsigned int vendor, void *data)
|
||||||
{
|
{
|
||||||
GAtChat *chat = data;
|
GAtChat *chat = data;
|
||||||
struct cv_data *cvd;
|
struct cv_data *cvd;
|
||||||
|
|
|
@ -215,7 +215,8 @@ static void gprs_initialized(gboolean ok, GAtResult *result, gpointer user_data)
|
||||||
struct gprs_data *gd = ofono_gprs_get_data(gprs);
|
struct gprs_data *gd = ofono_gprs_get_data(gprs);
|
||||||
|
|
||||||
g_at_chat_register(gd->chat, "+CGEV:", cgev_notify, FALSE, gprs, NULL);
|
g_at_chat_register(gd->chat, "+CGEV:", cgev_notify, FALSE, gprs, NULL);
|
||||||
g_at_chat_register(gd->chat, "+CGREG:", cgreg_notify, FALSE, gprs, NULL);
|
g_at_chat_register(gd->chat, "+CGREG:", cgreg_notify,
|
||||||
|
FALSE, gprs, NULL);
|
||||||
|
|
||||||
ofono_gprs_register(gprs);
|
ofono_gprs_register(gprs);
|
||||||
}
|
}
|
||||||
|
|
|
@ -329,7 +329,8 @@ static void at_cmt_notify(GAtResult *result, gpointer user_data)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
ofono_debug("Got new SMS Deliver PDU via CMT: %s, %d", hexpdu, tpdu_len);
|
ofono_debug("Got new SMS Deliver PDU via CMT: %s, %d",
|
||||||
|
hexpdu, tpdu_len);
|
||||||
|
|
||||||
decode_hex_own_buf(hexpdu, -1, &pdu_len, 0, pdu);
|
decode_hex_own_buf(hexpdu, -1, &pdu_len, 0, pdu);
|
||||||
ofono_sms_deliver_notify(sms, pdu, pdu_len, tpdu_len);
|
ofono_sms_deliver_notify(sms, pdu, pdu_len, tpdu_len);
|
||||||
|
|
|
@ -91,8 +91,7 @@ static void cusd_parse(GAtResult *result, struct ofono_ussd *ussd)
|
||||||
/* TODO: Figure out what to do with 8 bit data */
|
/* TODO: Figure out what to do with 8 bit data */
|
||||||
ofono_error("8-bit coded USSD response received");
|
ofono_error("8-bit coded USSD response received");
|
||||||
status = 4; /* Not supported */
|
status = 4; /* Not supported */
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
/* No other encoding is mentioned in TS27007 7.15 */
|
/* No other encoding is mentioned in TS27007 7.15 */
|
||||||
ofono_error("Unsupported USSD data coding scheme (%02x)", dcs);
|
ofono_error("Unsupported USSD data coding scheme (%02x)", dcs);
|
||||||
status = 4; /* Not supported */
|
status = 4; /* Not supported */
|
||||||
|
|
|
@ -131,7 +131,7 @@ static void clcc_poll_cb(gboolean ok, GAtResult *result, gpointer user_data)
|
||||||
dump_response("clcc_poll_cb", ok, result);
|
dump_response("clcc_poll_cb", ok, result);
|
||||||
|
|
||||||
if (!ok) {
|
if (!ok) {
|
||||||
ofono_error("We are polling CLCC and CLCC resulted in an error");
|
ofono_error("We are polling CLCC and received an error");
|
||||||
ofono_error("All bets are off for call management");
|
ofono_error("All bets are off for call management");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -177,7 +177,8 @@ static void clcc_poll_cb(gboolean ok, GAtResult *result, gpointer user_data)
|
||||||
*/
|
*/
|
||||||
nc->clip_validity = oc->clip_validity;
|
nc->clip_validity = oc->clip_validity;
|
||||||
|
|
||||||
if (memcmp(nc, oc, sizeof(struct ofono_call)) && !nc->type)
|
if (memcmp(nc, oc, sizeof(struct ofono_call)) &&
|
||||||
|
!nc->type)
|
||||||
ofono_voicecall_notify(vc, nc);
|
ofono_voicecall_notify(vc, nc);
|
||||||
|
|
||||||
n = n->next;
|
n = n->next;
|
||||||
|
@ -308,7 +309,7 @@ static void atd_cb(gboolean ok, GAtResult *result, gpointer user_data)
|
||||||
call = create_call(vc, 0, 0, 2, num, type, validity);
|
call = create_call(vc, 0, 0, 2, num, type, validity);
|
||||||
|
|
||||||
if (!call) {
|
if (!call) {
|
||||||
ofono_error("Unable to allocate call, call tracking will fail!");
|
ofono_error("Unable to malloc, call tracking will fail!");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -778,7 +779,7 @@ static void ccwa_notify(GAtResult *result, gpointer user_data)
|
||||||
num, num_type, validity);
|
num, num_type, validity);
|
||||||
|
|
||||||
if (!call) {
|
if (!call) {
|
||||||
ofono_error("malloc call structfailed. Call management is fubar");
|
ofono_error("Unable to malloc. Call management is fubar");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue