diff options
-rw-r--r-- | call.c | 2 | ||||
-rw-r--r-- | client.c | 2 | ||||
-rw-r--r-- | gprs.c | 4 | ||||
-rw-r--r-- | misc.c | 2 | ||||
-rw-r--r-- | net.c | 4 | ||||
-rw-r--r-- | samsung-ril.h | 2 | ||||
-rw-r--r-- | sec.c | 6 | ||||
-rw-r--r-- | sms.c | 8 | ||||
-rw-r--r-- | ss.c | 2 | ||||
-rw-r--r-- | util.c | 4 |
10 files changed, 18 insertions, 18 deletions
@@ -135,7 +135,7 @@ void ril_request_dial(RIL_Token t, void *data, size_t datalen) memcpy(call.number, dial->address, strlen(dial->address)); ipc_fmt_send(IPC_CALL_OUTGOING, IPC_TYPE_EXEC, (unsigned char *) &call, sizeof(call), reqGetId(t)); - + /* FIXME: This should actually be sent based on the response from baseband */ RIL_onRequestComplete(t, RIL_E_SUCCESS, NULL, 0); } @@ -179,7 +179,7 @@ int ril_client_thread_start(struct ril_client *client) pthread_attr_init(&attr); pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED); - + rc = pthread_create(&(client->thread), &attr, ril_client_thread, (void *) client); if(rc != 0) { @@ -478,7 +478,7 @@ int ipc_gprs_connection_enable(struct ril_gprs_connection *gprs_connection, (ip_configuration->ip)[3]); // FIXME: subnet isn't reliable! asprintf(&subnet_mask, "255.255.255.255"); - + asprintf(&dns1, "%i.%i.%i.%i", (ip_configuration->dns1)[0], (ip_configuration->dns1)[1], @@ -553,7 +553,7 @@ int ipc_gprs_connection_enable(struct ril_gprs_connection *gprs_connection, setup_data_call_response->address = ip; free(gateway); #endif - + free(subnet_mask); free(dns1); free(dns2); @@ -167,7 +167,7 @@ void ipc_misc_me_version(struct ipc_message_info *info) if(ril_state.tokens.baseband_version != t) LOGE("Baseband tokens mismatch (0x%p and 0x%p)", ril_state.tokens.baseband_version, t); - + memcpy(sw_version, version->sw_version, 32); sw_version[32] = '\0'; @@ -800,10 +800,10 @@ void ipc_net_plmn_sel(struct ipc_message_info *info) if (!info) return; - + if (!info->data || info->length < sizeof(struct ipc_net_plmn_sel_get)) return; - + plmn_sel = (struct ipc_net_plmn_sel_get *) info->data; ril_mode = ipc2ril_plmn_sel(plmn_sel->plmn_sel); RIL_onRequestComplete(reqGetToken(info->aseq), diff --git a/samsung-ril.h b/samsung-ril.h index 45e0e44..e37fc35 100644 --- a/samsung-ril.h +++ b/samsung-ril.h @@ -147,7 +147,7 @@ void ril_tokens_check(void); /** * RIL state */ - + typedef enum { SIM_ABSENT = 0, SIM_NOT_READY = 1, @@ -83,7 +83,7 @@ void ril_state_update(SIM_Status status) /* If power mode isn't at least normal, don't update RIL state */ if(ril_state.power_mode < POWER_MODE_NORMAL) return; - + ril_state.sim_status = status; switch(status) { @@ -107,7 +107,7 @@ void ril_state_update(SIM_Status status) radio_state = RADIO_STATE_SIM_NOT_READY; break; } - + ril_state.radio_state = radio_state; @@ -529,7 +529,7 @@ void ipc_sec_phone_lock(struct ipc_message_info *info) { int status; struct ipc_sec_phone_lock_response *lock = (struct ipc_sec_phone_lock_response *) info->data; - + status = lock->status; RIL_onRequestComplete(reqGetToken(info->aseq), RIL_E_SUCCESS, &status, sizeof(status)); @@ -124,7 +124,7 @@ int ril_request_sms_new(void) if(id < 0) { LOGE("The SMS queue is full, removing the oldest req"); - + /* Free the request at index 0 (oldest) */ ril_request_sms_del(0); @@ -250,7 +250,7 @@ void ril_request_send_sms(RIL_Token t, void *data, size_t datalen) ril_request_sms_add(reqGetId(t), pdu, pdu_len, NULL, 0); ipc_fmt_send_get(IPC_SMS_SVC_CENTER_ADDR, reqGetId(t)); - + } else { ril_request_send_sms_complete(t, pdu, smsc); } @@ -387,7 +387,7 @@ void ril_request_send_sms_complete(RIL_Token t, char *pdu, char *smsc) int pdu_tp_udh_index = pdu_tp_da_index + pdu_tp_da_len; unsigned char pdu_tp_udh_len = pdu_dec[pdu_tp_udh_index]; - + if(pdu_tp_udh_len > 0xff / 2 || pdu_tp_udh_len < 5) { LOGE("PDU TP-UDH Len failed (0x%x)\n", pdu_tp_udh_len); goto pdu_end; @@ -510,7 +510,7 @@ void ipc_sms_send_msg(struct ipc_message_info *info) { struct ipc_sms_deliv_report_msg *report_msg = (struct ipc_sms_deliv_report_msg *) info->data; RIL_SMS_Response response; - + RIL_Errno ril_ack_err; LOGD("Got ACK for msg_tpid #%d\n", report_msg->msg_tpid); @@ -135,7 +135,7 @@ void ril_request_cancel_ussd(RIL_Token t, void *data, size_t datalen) ussd.state = IPC_SS_USSD_TERMINATED_BY_NET; ril_state.ussd_state = IPC_SS_USSD_TERMINATED_BY_NET; - + ipc_gen_phone_res_expect_to_complete(reqGetId(t), IPC_SS_USSD); ipc_fmt_send(IPC_SS_USSD, IPC_TYPE_EXEC, (void *) &ussd, sizeof(ussd), reqGetId(t)); @@ -120,7 +120,7 @@ int gsm72ascii(unsigned char *data, char **data_dec, int length) } *data_dec = dec; - + return dec_length; } @@ -170,7 +170,7 @@ int ascii2gsm7(char *data, unsigned char **data_enc, int length) //FIXME: what is going on here? enc[enc_length - 2] |= 0x30; enc[enc_length - 1] = 0x02; - + return enc_length; } |