/**************************************************************************************** * MacServices_init * ***************************************************************************************** DESCRIPTION: Initializes the MacServices module INPUT: hMacServices - handle to the Mac Services object.\n hReport - handle to the report object.\n hHalCtrl - handle to the HAL ctrl object.\n OUTPUT: RETURN: ****************************************************************************************/ void MacServices_init (TI_HANDLE hMacServices, TI_HANDLE hReport, TI_HANDLE hTWD, TI_HANDLE hCmdBld, TI_HANDLE hEventMbox, TI_HANDLE hTimer) { MacServices_t *pMacServices = (MacServices_t*)hMacServices; MacServices_scanSRV_init (hMacServices, hReport, hTWD, hTimer, hEventMbox, hCmdBld); MacServices_measurementSRV_init (pMacServices->hMeasurementSRV, hReport, hCmdBld, hEventMbox, pMacServices->hPowerSrv, hTimer); if (powerSrv_init (pMacServices->hPowerSrv, hReport, hEventMbox, hCmdBld, hTimer) != TI_OK) { /*return TI_NOK;*/ } }
/**************************************************************************************** * MacServices_init * ***************************************************************************************** DESCRIPTION: Initializes the MacServices module INPUT: hMacServices - handle to the Mac Services object.\n hReport - handle to the report object.\n hHalCtrl - handle to the HAL ctrl object.\n OUTPUT: RETURN: ****************************************************************************************/ void MacServices_init (TI_HANDLE hMacServices, TI_HANDLE hReport, TI_HANDLE hTWD, TI_HANDLE hCmdBld, TI_HANDLE hEventMbox, TI_HANDLE hTimer) { MacServices_t *pMacServices = (MacServices_t*)hMacServices; MacServices_scanSRV_init (hMacServices, hReport, hTWD, hTimer, hEventMbox, hCmdBld); MacServices_measurementSRV_init (pMacServices->hMeasurementSRV, hReport, hCmdBld, hEventMbox, pMacServices->hPowerSrv, hTimer); if (powerSrv_init (pMacServices->hPowerSrv, hReport, hEventMbox, hCmdBld, hTimer) != TI_OK) { WLAN_OS_REPORT(("\n.....PowerSRV_init configuration failure \n")); /*return TI_NOK;*/ } }