NFCSTATUS phHciNfc_LinkMgmt_Release( phHciNfc_sContext_t *psHciContext, void *pHwRef ) { NFCSTATUS status = NFCSTATUS_SUCCESS; phHciNfc_LinkMgmt_Info_t *p_link_mgmt_info=NULL; if( (NULL == psHciContext) || (NULL == pHwRef) ) { status = PHNFCSTVAL(CID_NFC_HCI, NFCSTATUS_INVALID_PARAMETER); } else { if( NULL != psHciContext->p_link_mgmt_info ) { p_link_mgmt_info = (phHciNfc_LinkMgmt_Info_t *) psHciContext->p_link_mgmt_info ; status = phHciNfc_Close_Pipe( psHciContext, pHwRef, p_link_mgmt_info->p_pipe_info ); } else { status = PHNFCSTVAL(CID_NFC_HCI, NFCSTATUS_NOT_ALLOWED); }/* End of the Identity Info Memory Check */ } /* End of Null Context Check */ return status; }
NFCSTATUS phHciNfc_Admin_Release( phHciNfc_sContext_t *psHciContext, void *pHwRef, phHciNfc_HostID_t host_type ) { NFCSTATUS status = NFCSTATUS_SUCCESS; phHciNfc_Pipe_Info_t *p_pipe_info = NULL; if( (NULL == psHciContext) || (NULL == pHwRef) ) { status = PHNFCSTVAL(CID_NFC_HCI, NFCSTATUS_INVALID_PARAMETER); } else { if( NULL != psHciContext->p_admin_info ) { if(phHciNfc_UICCHostID != host_type) { p_pipe_info = psHciContext->p_pipe_list[PIPETYPE_STATIC_ADMIN]; status = phHciNfc_Close_Pipe( psHciContext, pHwRef, p_pipe_info ); } }/* End of NULL Check for the Admin_Info */ } /* End of Null Check for the Context */ return status; }