MTK update account id

void    custom_send_msg_to_ABM(msg_type msg_name, void *param_ptr)

        ilm_struct *ilm_ptr = NULL;

         ilm_ptr = allocate_ilm(MOD_ATCI);
        ilm_ptr->src_mod_id    = MOD_ATCI;
        ilm_ptr->dest_mod_id   = MOD_ABM;

        ilm_ptr->msg_id = msg_name;    /* Set the message id */
        ilm_ptr->peer_buff_ptr = NULL;  /* there are no peer message to be
                                           sent to TCM. Hence this field is null. */
        ilm_ptr->local_para_ptr = (local_para_struct*) param_ptr;

      msg_send_ext_queue(ilm_ptr);
}

void custom_send_update_account_msg_to_ABM(kal_uint8 contextId, IpConfigType_e bearerType)
{

    kal_uint32          acctId;
    mmi_abm_update_account_info_req_struct *param_ptr = NULL;
 char buffer[MAX_UART_LEN+1];
   
    param_ptr = (mmi_abm_update_account_info_req_struct *)construct_local_para(
          (kal_uint16)sizeof(mmi_abm_update_account_info_req_struct),
                TD_RESET);

    acctId = APPTCPIP_ACOUNT_START + contextId;
     if(IP_CSD_CONFIG == bearerType)
    {

            param_ptr->bearer_type = CBM_CSD;
   
    }
    else
    {
            param_ptr->bearer_type = CBM_PS;

    }

    param_ptr->action = MMI_ABM_PROFILE_ADD;
    param_ptr->account_id = acctId;
    kal_prompt_trace(MOD_ATCI, "%d,%s,%s,param_ptr->account_id=%x", __LINE__, __func__, __FILE__, param_ptr->account_id);
 sprintf(buffer,"%d,%s,%s,param_ptr->account_id=%x", __LINE__, __func__, __FILE__, param_ptr->account_id);
 rmmi_write_to_uart((kal_uint8*)buffer, strlen(buffer), KAL_TRUE);
    custom_send_msg_to_ABM(MSG_ID_MMI_ABM_UPDATE_ACCOUNT_INFO_REQ,param_ptr);
}

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值