ANSC_STATUS ssp_cancel_tad ( ) { /*RDKB-7459, CID-33428, null check and free */ if(pDslhCpeController) { pDslhCpeController->Cancel((ANSC_HANDLE)pDslhCpeController); AnscFreeMemory(pDslhCpeController); pDslhCpeController = (PDSLH_CPE_CONTROLLER_OBJECT )NULL; } if(hDiagPlugin) { AnscFreeLibrary(hDiagPlugin); hDiagPlugin = NULL; } return ANSC_STATUS_SUCCESS; }
ANSC_STATUS ssp_cancel_wifi ( PCCSP_COMPONENT_CFG pStartCfg ) { int nRet = 0; char CrName[256]; char CpName[256]; if( pDslhCpeController == NULL) { return ANSC_STATUS_SUCCESS; } if ( g_Subsystem[0] != 0 ) { _ansc_sprintf(CrName, "%s%s", g_Subsystem, CCSP_DBUS_INTERFACE_CR); _ansc_sprintf(CpName, "%s%s", g_Subsystem, pStartCfg->ComponentName); } else { _ansc_sprintf(CrName, "%s", CCSP_DBUS_INTERFACE_CR); _ansc_sprintf(CpName, "%s", pStartCfg->ComponentName); } /* unregister component */ nRet = CcspBaseIf_unregisterComponent(bus_handle, CrName, CpName ); AnscTrace("unregisterComponent returns %d\n", nRet); pDslhCpeController->Cancel((ANSC_HANDLE)pDslhCpeController); AnscFreeMemory(pDslhCpeController); pDslhCpeController = NULL; return ANSC_STATUS_SUCCESS; }