void diag_userDataBackUp_entrySet(udbp_req_type *req_pkt, udbp_rsp_type *rsp_pkt, script_process_type MODEM_MDM )
{
	userDataBackUpInfo.info.backup_used = req_pkt->req_data.do_dl_entry.backup_used;
	userDataBackUpInfo.info.binary_class = req_pkt->req_data.do_dl_entry.binary_class;
	userDataBackUpInfo.info.factory_reset_required = req_pkt->req_data.do_dl_entry.factory_reset_required;
	userDataBackUpInfo.info.device_srd_reset_required = req_pkt->req_data.do_dl_entry.device_srd_reset_required;
	userDataBackUpInfo.info.information = req_pkt->req_data.do_dl_entry.information;
	userDataBackUpInfo.info.srd_backup_nv_counter = rsp_pkt->rsp_data.write_sector_counter;
		
	if(writeBackUpCommand(MODEM_MDM)!= TRUE)
		rsp_pkt->header.err_code = UDBU_ERROR_CANNOT_COMPLETE;
	else
		rsp_pkt->header.err_code = UDBU_ERROR_SUCCESS;
	return;
}
Exemplo n.º 2
0
/*===========================================================================
	
FUNCTION diag_userDataBackUp_entrySet
	
DESCRIPTION
	
	
DEPENDENCIES
  None.
	
RETURN VALUE
  Pointer to response packet.
	
SIDE EFFECTS
  None.
	 
===========================================================================*/
void diag_userDataBackUp_entrySet(udbp_req_type *req_pkt, udbp_rsp_type *rsp_pkt, script_process_type MODEM_MDM )
{
//	userDataBackUpInfo.info.backup_used = req_pkt->req_data.do_dl_entry.backup_used;
//	userDataBackUpInfo.info.binary_class = req_pkt->req_data.do_dl_entry.binary_class;
//	userDataBackUpInfo.info.factory_reset_required = req_pkt->req_data.do_dl_entry.factory_reset_required;
//	userDataBackUpInfo.info.device_srd_reset_required = req_pkt->req_data.do_dl_entry.device_srd_reset_required;
//	userDataBackUpInfo.info.information = req_pkt->req_data.do_dl_entry.information;
//	userDataBackUpInfo.info.srd_backup_nv_counter = rsp_pkt->rsp_data.write_sector_counter;
	userDataBackUpInfo.info.srd_backup_nv_counter = req_pkt->header.packet_version/0x10000;
	if(writeBackUpCommand(MODEM_MDM)!= TRUE)
		rsp_pkt->header.err_code = UDBU_ERROR_CANNOT_COMPLETE;
	else
		rsp_pkt->header.err_code = UDBU_ERROR_SUCCESS;

	printk(KERN_INFO "[SRD] entry_set rsp_pkt.err_code = %d, srd_nv_cnt = %d ", (int)rsp_pkt->header.err_code,userDataBackUpInfo.info.srd_backup_nv_counter);
	return;
}