Lines Matching refs:pTWD
64 void TWD_CheckSRConfigParams(TTwd *pTWD, ACXSmartReflexConfigParams_t *tSmartReflexParams);
75 TTwd *pTWD;
78 pTWD = (TTwd *)os_memoryAlloc (hOs, sizeof(TTwd));
79 if (pTWD == NULL)
84 os_memoryZero (hOs, pTWD, sizeof(TTwd));
86 pTWD->hOs = hOs;
89 pTWD->hTwIf = twIf_Create (hOs);
90 if (pTWD->hTwIf == NULL)
92 TRACE0(pTWD->hReport, REPORT_SEVERITY_CONSOLE,"twIf_Create failed\n");
94 TWD_Destroy ((TI_HANDLE)pTWD);
99 pTWD->hCmdBld = cmdBld_Create (hOs);
100 if (pTWD->hCmdBld == NULL)
102 TRACE0(pTWD->hReport, REPORT_SEVERITY_CONSOLE,"cmdBld_Create failed\n");
104 TWD_Destroy ((TI_HANDLE)pTWD);
109 pTWD->hMacServices = MacServices_create (hOs);
110 if (pTWD->hMacServices == NULL)
112 TRACE0(pTWD->hReport, REPORT_SEVERITY_CONSOLE, "TWD MacServices_create failed!!!\n");
114 TWD_Destroy ((TI_HANDLE)pTWD);
119 pTWD->hCmdQueue = cmdQueue_Create (hOs);
120 if (pTWD->hCmdQueue == NULL)
122 TRACE0(pTWD->hReport, REPORT_SEVERITY_CONSOLE, "TWD cmdQueue_Create failed!!!\n");
124 TWD_Destroy ((TI_HANDLE)pTWD);
132 pTWD->hTxXfer = txXfer_Create (hOs);
133 if (pTWD->hTxXfer == NULL)
135 TRACE0(pTWD->hReport, REPORT_SEVERITY_CONSOLE,"TWD txXfer_Create failed!!!\n");
137 TWD_Destroy ((TI_HANDLE)pTWD);
141 pTWD->hTxResult = txResult_Create (hOs);
142 if (pTWD->hTxResult == NULL)
144 TRACE0(pTWD->hReport, REPORT_SEVERITY_CONSOLE,"TWD txResult_Create failed!!!\n");
146 TWD_Destroy ((TI_HANDLE)pTWD);
150 pTWD->hRxXfer = rxXfer_Create (hOs);
151 if (pTWD->hRxXfer == NULL)
153 TRACE0(pTWD->hReport, REPORT_SEVERITY_CONSOLE,"TWD rxXfer_Create failed!!!\n");
155 TWD_Destroy ((TI_HANDLE)pTWD);
159 pTWD->hFwEvent = fwEvent_Create (hOs);
160 if (pTWD->hFwEvent == NULL)
162 TRACE0(pTWD->hReport, REPORT_SEVERITY_CONSOLE, "TWD fwEvent_Create failed!!!\n");
164 TWD_Destroy ((TI_HANDLE)pTWD);
168 pTWD->hEventMbox = eventMbox_Create (hOs);
169 if (pTWD->hEventMbox == NULL)
171 TRACE0(pTWD->hReport, REPORT_SEVERITY_CONSOLE, "TWD eventMbox_Create failed!!!\n");
173 TWD_Destroy ((TI_HANDLE)pTWD);
178 pTWD->hFwDbg = fwDbg_Create (hOs);
179 if (pTWD->hFwDbg == NULL)
181 TRACE0(pTWD->hReport, REPORT_SEVERITY_CONSOLE,"TWD fwDbg_Create failed!!!\n");
183 TWD_Destroy ((TI_HANDLE)pTWD);
188 pTWD->hCmdMbox = cmdMbox_Create (hOs);
189 if (pTWD->hCmdMbox == NULL)
191 TRACE0(pTWD->hReport, REPORT_SEVERITY_CONSOLE,"TWD cmdMbox_Create failed!!!\n");
193 TWD_Destroy ((TI_HANDLE)pTWD);
197 pTWD->hRxQueue = RxQueue_Create (hOs);
198 if (pTWD->hRxQueue == NULL)
200 TRACE0(pTWD->hReport, REPORT_SEVERITY_CONSOLE, "TWD RxQueue_Create failed!!!\n");
202 TWD_Destroy ((TI_HANDLE)pTWD);
211 pTWD->hTxCtrlBlk = txCtrlBlk_Create (hOs);
212 if (pTWD->hTxCtrlBlk == NULL)
214 TRACE0(pTWD->hReport, REPORT_SEVERITY_CONSOLE, "TWD txCtrlBlk_Create failed!!!\n");
216 TWD_Destroy ((TI_HANDLE)pTWD);
220 pTWD->hTxHwQueue = txHwQueue_Create (hOs);
221 if (pTWD->hTxHwQueue == NULL)
223 TRACE0(pTWD->hReport, REPORT_SEVERITY_CONSOLE, "TWD txHwQueue_Create failed!!!\n");
225 TWD_Destroy ((TI_HANDLE)pTWD);
229 pTWD->hHwInit = hwInit_Create (hOs);
230 if (pTWD->hHwInit == NULL)
232 TRACE0(pTWD->hReport, REPORT_SEVERITY_CONSOLE,"wInit_Create failed!\n");
234 TWD_Destroy ((TI_HANDLE)pTWD);
240 return (TI_HANDLE)pTWD;
245 TTwd *pTWD = (TTwd *)hTWD;
248 if (pTWD == NULL)
253 if (pTWD->hTwIf != NULL)
255 twIf_Destroy (pTWD->hTwIf);
256 pTWD->hTwIf = NULL;
260 if (pTWD->hCmdBld != NULL)
262 cmdBld_Destroy (pTWD->hCmdBld);
263 pTWD->hCmdBld = NULL;
268 if (pTWD->hMacServices != NULL)
270 MacServices_destroy(pTWD->hMacServices);
271 pTWD->hMacServices = NULL;
278 if (pTWD->hCmdQueue != NULL)
280 cmdQueue_Destroy(pTWD->hCmdQueue);
281 pTWD->hCmdQueue = NULL;
287 if (pTWD->hTxXfer != NULL)
289 txXfer_Destroy (pTWD->hTxXfer);
290 pTWD->hTxXfer = NULL;
293 if (pTWD->hTxResult != NULL)
295 txResult_Destroy (pTWD->hTxResult);
296 pTWD->hTxResult = NULL;
299 if (pTWD->hRxXfer != NULL)
301 rxXfer_Destroy (pTWD->hRxXfer);
302 pTWD->hRxXfer = NULL;
305 if (pTWD->hEventMbox != NULL)
307 eventMbox_Destroy (pTWD->hEventMbox);
308 pTWD->hEventMbox = NULL;
312 if (pTWD->hFwDbg != NULL)
314 fwDbg_Destroy (pTWD->hFwDbg);
315 pTWD->hFwDbg = NULL;
319 if (pTWD->hFwEvent != NULL)
321 fwEvent_Destroy (pTWD->hFwEvent);
322 pTWD->hFwEvent = NULL;
325 if (pTWD->hCmdMbox != NULL)
327 cmdMbox_Destroy (pTWD->hCmdMbox);
328 pTWD->hCmdMbox = NULL;
331 if (pTWD->hRxQueue != NULL)
333 RxQueue_Destroy (pTWD->hRxQueue);
334 pTWD->hRxQueue = NULL;
341 if (pTWD->hTxCtrlBlk != NULL)
343 txCtrlBlk_Destroy (pTWD->hTxCtrlBlk);
344 pTWD->hTxCtrlBlk = NULL;
347 if (pTWD->hTxHwQueue != NULL)
349 txHwQueue_Destroy (pTWD->hTxHwQueue);
350 pTWD->hTxHwQueue = NULL;
353 if (pTWD->hHwInit != NULL)
355 hwInit_Destroy (pTWD->hHwInit);
356 pTWD->hHwInit = NULL;
359 os_memoryFree (pTWD->hOs, (TI_HANDLE)pTWD, sizeof(TTwd));
381 TTwd *pTWD = (TTwd *)hTWD;
383 TRACE0(pTWD->hReport, REPORT_SEVERITY_INFORMATION , "TWD_InitHwCb: call fInitHwCb CB. In std drvMain_InitHwCb()\n");
385 hwInit_InitPolarity(pTWD->hHwInit);
401 TTwd *pTWD = (TTwd *)hTWD;
402 pTWD->bInitSuccess = TI_FALSE;
403 pTWD->bRecoveryEnabled = TI_FALSE;
404 pTWD->hReport = hReport;
405 pTWD->hUser = hUser;
406 pTWD->hTimer = hTimer;
407 pTWD->hContext = hContext;
408 pTWD->hTxnQ = hTxnQ;
409 pTWD->fInitHwCb = fInitHwCb;
410 pTWD->fInitFwCb = fInitFwCb;
411 pTWD->fConfigFwCb = fConfigFwCb;
412 pTWD->fStopCb = fStopCb;
413 pTWD->fInitFailCb = fInitFailCb;
415 TRACE1(pTWD->hReport, REPORT_SEVERITY_INIT , "TWD_Init: %x\n", hTWD);
418 fwEvent_Init (pTWD->hFwEvent, hTWD);
420 eventMbox_Config (pTWD->hEventMbox, pTWD->hTwIf, pTWD->hReport, pTWD->hFwEvent, pTWD->hCmdBld);
422 cmdQueue_Init (pTWD->hCmdQueue,
423 pTWD->hCmdMbox,
424 pTWD->hReport,
425 pTWD->hTwIf,
426 pTWD->hTimer);
429 cmdBld_Config (pTWD->hCmdBld,
430 pTWD->hReport,
433 pTWD->hEventMbox,
434 pTWD->hCmdQueue,
435 pTWD->hTwIf);
437 hwInit_Init (pTWD->hHwInit,
438 pTWD->hReport,
447 txXfer_Init (pTWD->hTxXfer, pTWD->hReport, pTWD->hTwIf);
449 txResult_Init (pTWD->hTxResult, pTWD->hReport, pTWD->hTwIf);
451 rxXfer_Init (pTWD->hRxXfer, pTWD->hFwEvent, pTWD->hReport, pTWD->hTwIf, pTWD->hRxQueue);
453 RxQueue_Init (pTWD->hRxQueue, pTWD->hReport);
456 fwDbg_Init (pTWD->hFwDbg, pTWD->hReport, pTWD->hTwIf);
460 MacServices_init (pTWD->hMacServices,
461 pTWD->hReport,
463 pTWD->hCmdBld,
464 pTWD->hEventMbox,
465 pTWD->hTimer);
470 txCtrlBlk_Init (pTWD->hTxCtrlBlk, pTWD->hReport, pTWD->hContext);
471 txHwQueue_Init (pTWD->hTxHwQueue, pTWD->hReport);
474 twIf_Init (pTWD->hTwIf, pTWD->hReport, pTWD->hContext, pTWD->hTxnQ, (TRecoveryCb)TWD_StopComplete, hTWD);
481 TTwd *pTWD = (TTwd *)hTWD;
484 TRACE0(pTWD->hReport, REPORT_SEVERITY_INIT , "TWD_InitHw: called\n");
486 hwInit_SetNvsImage (pTWD->hHwInit, pbuf, length);
493 twIf_Awake (pTWD->hTwIf);
494 twIf_HwAvailable (pTWD->hTwIf);
497 eStatus = hwInit_Boot(pTWD->hHwInit);
500 TRACE0(pTWD->hReport, REPORT_SEVERITY_ERROR , "TWD_InitHw: hwInit_Boot failed\n");
509 TTwd *pTWD = (TTwd *)hTWD;
512 TRACE0(pTWD->hReport, REPORT_SEVERITY_INIT , "TWD_BusOpen: called\n");
514 /*uStatus = TNETWIF_Open(pTWD->hTNETWIF, pParams);*/
522 TTwd *pTWD = (TTwd *)hTWD;
525 TRACE0(pTWD->hReport, REPORT_SEVERITY_INFORMATION , "TWD_BusClose: called\n");
527 /*uStatus = TNETWIF_Close(pTWD->hTNETWIF);*/
535 TTwd *pTWD = (TTwd *)hTWD;
539 if (( pTWD == NULL ) || ( pFileInfo == NULL ))
544 TRACE0(pTWD->hReport, REPORT_SEVERITY_INIT , "TWD_InitFw: called\n");
546 hwInit_SetFwImage (pTWD->hHwInit, pFileInfo);
549 status = hwInit_LoadFw(pTWD->hHwInit);
553 TRACE0(pTWD->hReport, REPORT_SEVERITY_ERROR , "TWD_InitFw: failed to initialize FW\n");
577 pTWD = (TTwd *)hTWD;
578 TDmaParams *pDmaParams = &DB_DMA(pTWD->hCmdBld);
584 txResult_setHwInfo (pTWD->hTxResult, pDmaParams);
586 RxXfer_ReStart (pTWD->hRxXfer, bChipIs1273Pg10);
587 txXfer_Restart (pTWD->hTxXfer, bChipIs1273Pg10);
589 rxXfer_SetRxDirectAccessParams (pTWD->hRxXfer, pDmaParams);
592 txHwQueue_SetHwInfo (pTWD->hTxHwQueue, pDmaParams);
595 if (pTWD->fConfigFwCb)
597 TRACE0(pTWD->hReport, REPORT_SEVERITY_INFORMATION , "TWD_ConfigFwCb: call TWD_OWNER_SELF_CONFIG CB. In std drvMain_ConfigFwCb()\n");
599 pTWD->fConfigFwCb (pTWD->hUser, TI_OK);
608 TTwd *pTWD = (TTwd *)hTWD;
610 TWlanParams *pWlanParams = &DB_WLAN(pTWD->hCmdBld);
611 TKeepAliveList *pKlvParams = &DB_KLV(pTWD->hCmdBld);
612 IniFileRadioParam *pRadioParams = &DB_RADIO(pTWD->hCmdBld);
613 IniFileGeneralParam *pGenParams = &DB_GEN(pTWD->hCmdBld);
614 TSmartReflexParams *pSmartReflex = &DB_SR(pTWD->hCmdBld);
615 TRateMngParams *pRateMngParams = &DB_RM(pTWD->hCmdBld);
620 TRACE0(pTWD->hReport, REPORT_SEVERITY_INIT , "TWD_SetDefaults: called\n");
622 pTWD->bRecoveryEnabled = pInitParams->tGeneral.halCtrlRecoveryEnable;
693 TRACE1(pTWD->hReport, REPORT_SEVERITY_INFORMATION , "TWD_SetDefaults: coex numOfElements %d\n", pInitParams->tGeneral.halCoexActivityTable.numOfElements);
723 TRACE4(pTWD->hReport, REPORT_SEVERITY_INFORMATION , "TWD_SetDefaults: save coex Param %d in index %d, %d %d\n", iParam, saveIndex, pParmCoex[iParam].coexIp, pParmCoex[iParam].activityId);
741 rxXfer_SetDefaults (pTWD->hRxXfer, pInitParams);
744 txHwQueue_Config (pTWD->hTxHwQueue, pInitParams);
747 MacServices_config (pTWD->hMacServices, pInitParams);
767 os_memoryZero (pTWD->hOs, pWlanParams->tTwdHtCapabilities.aRxMCS + 1, RX_TX_MCS_BITMASK_SIZE - 1);
776 os_memoryZero (pTWD->hOs, pWlanParams->tTwdHtCapabilities.aTxMCS + 1, RX_TX_MCS_BITMASK_SIZE - 1);
783 os_memoryCopy(pTWD->hOs, (void*)pRadioParams, (void*)&pInitParams->tIniFileRadioParams, sizeof(IniFileRadioParam));
784 os_memoryCopy(pTWD->hOs, (void*)pGenParams, (void*)&pInitParams->tPlatformGenParams, sizeof(IniFileGeneralParam));
786 os_memoryCopy (pTWD->hOs,
792 os_memoryCopy(pTWD->hOs, (void*)&pSmartReflex->tSmartReflexParams, (void*)&pInitParams->tSmartReflexParams, sizeof(ACXSmartReflexConfigParams_t));
793 os_memoryCopy(pTWD->hOs, (void*)&pSmartReflex->tSmartReflexDebugParams, (void*)&pInitParams->tSmartReflexDebugParams, sizeof(ACXSmartReflexDebugParams_t));
823 TTwd *pTWD = (TTwd *)hTWD;
825 TRACE0(pTWD->hReport, REPORT_SEVERITY_INIT , "TWD_ConfigFw: called\n");
830 if (cmdBld_ConfigFw (pTWD->hCmdBld, (void *)TWD_ConfigFwCb, hTWD) != TI_OK)
840 TTwd *pTWD = (TTwd *)hTWD;
842 TRACE0(pTWD->hReport, REPORT_SEVERITY_INIT , "TWD_FinalizeDownload: called\n");
844 if ( pTWD == NULL )
849 TRACE0(pTWD->hReport, REPORT_SEVERITY_INIT, "Before sending the Init Complet callback !!!!!\n");
852 pTWD->bInitSuccess = TI_TRUE;
855 if (pTWD->fInitFwCb)
857 TRACE0(pTWD->hReport, REPORT_SEVERITY_INFORMATION , "TWD_FinalizeDownload: call fInitFwCb CB. In std drvMain_InitFwCb()\n");
859 (*pTWD->fInitFwCb) (pTWD->hUser, TI_OK);
865 TTwd *pTWD = (TTwd *)hTWD;
867 TRACE0(pTWD->hReport, REPORT_SEVERITY_INFORMATION , "TWD_FinalizeOnFailure: called\n");
870 if (pTWD->fInitFailCb)
872 TRACE0(pTWD->hReport, REPORT_SEVERITY_INFORMATION , "TWD_FinalizeOnFailure: call fInitFailCb CB. In std drvMain_InitFailCb()\n");
874 pTWD->fInitFailCb (pTWD->hUser, TI_OK);
880 TTwd *pTWD = (TTwd *)hTWD;
882 TRACE0(pTWD->hReport, REPORT_SEVERITY_INFORMATION , "TWD_CheckMailboxCb: called\n");
886 ++pTWD->uNumMboxFailures;
887 TRACE1(pTWD->hReport, REPORT_SEVERITY_WARNING, "TWD_CheckMailboxCb: Periodic intorregate check - Command mailbox failure was occur \n errors failure # %d", pTWD->uNumMboxFailures);
889 TRACE0(pTWD->hReport, REPORT_SEVERITY_INFORMATION , "TWD_CheckMailboxCb: call TWD_INT_EVENT_FAILURE CB. In std healthMonitor_sendFailureEvent()\n");
892 pTWD->fFailureEventCb (pTWD->hFailureEventCb, MBOX_FAILURE);
922 TTwd *pTWD = (TTwd *)hTWD;
924 TRACE1(pTWD->hReport, REPORT_SEVERITY_INFORMATION , "TWD_RegisterOwnCB: callback ID=0x%x\n", uCallBackID);
930 pTWD->fFailureEventCb = (TFailureEventCb)fCb;
931 pTWD->hFailureEventCb = hCb;
934 cmdQueue_RegisterForErrorCb (pTWD->hCmdQueue, (void *)TWD_CheckMailboxCb, hTWD);
937 MacServices_registerFailureEventCB(pTWD->hMacServices, fCb, hCb);
940 twIf_RegisterErrCb (pTWD->hTwIf, fCb, hCb);
943 rxXfer_RegisterErrCb (pTWD->hRxXfer, fCb, hCb);
947 cmdQueue_RegisterCmdCompleteGenericCb (pTWD->hCmdQueue, fCb, hCb);
951 TRACE0(pTWD->hReport, REPORT_SEVERITY_ERROR, "TWD_RegisterOwnCb - Illegal value\n");
957 TTwd *pTWD = (TTwd *)hTWD;
963 TRACE0(pTWD->hReport, REPORT_SEVERITY_ERROR, "TWD_Register_CB: Invalid NULL Parameter\n");
967 TRACE1(pTWD->hReport, REPORT_SEVERITY_INFORMATION, "TWD_Register_CB: (Value = 0x%x)\n", event);
974 TRACE0(pTWD->hReport, REPORT_SEVERITY_INFORMATION, "TWD_Register_CB: TWD_OWNER_TX_HW_QUEUE\n");
975 txHwQueue_RegisterCb (pTWD->hTxHwQueue, uCallbackId, fCb, pData);
979 TRACE0(pTWD->hReport, REPORT_SEVERITY_INFORMATION, "TWD_Register_CB: TWD_OWNER_DRIVER_TX_XFER\n");
980 txXfer_RegisterCb (pTWD->hTxXfer, uCallbackId, fCb, pData);
984 TRACE0(pTWD->hReport, REPORT_SEVERITY_INFORMATION, "TWD_Register_CB: TWD_OWNER_TX_RESULT\n");
985 txResult_RegisterCb (pTWD->hTxResult, uCallbackId, fCb, pData);
989 TRACE0(pTWD->hReport, REPORT_SEVERITY_INFORMATION, "TWD_Register_CB: TWD_OWNER_RX_XFER\n");
990 rxXfer_Register_CB(pTWD->hRxXfer, uCallbackId, fCb, pData);
994 TRACE0(pTWD->hReport, REPORT_SEVERITY_INFORMATION, "TWD_Register_CB: TWD_OWNER_RX_QUEUE\n");
995 RxQueue_Register_CB(pTWD->hRxQueue, uCallbackId, fCb, pData);
999 TRACE0(pTWD->hReport, REPORT_SEVERITY_INFORMATION, "TWD_Register_CB: TWD_OWNER_SELF\n");
1007 MacServices_scanSRV_registerScanCompleteCB (pTWD->hMacServices, (TScanSrvCompleteCb)fCb, pData);
1010 TRACE0(pTWD->hReport, REPORT_SEVERITY_ERROR, "TWD_Register_CB: TWD_OWNER_MAC_SERVICES - Illegal value\n");
1015 TRACE0(pTWD->hReport, REPORT_SEVERITY_INFORMATION, "TWD_Register_CB: TWD_OWNER_SELF_CONFIG\n");
1016 pTWD->fConfigFwCb = (TTwdCallback)fCb;
1020 TRACE0(pTWD->hReport, REPORT_SEVERITY_ERROR, "TWD_Register_CB - Illegal value\n");
1028 TTwd *pTWD = (TTwd *)hTWD;
1030 TRACE0(pTWD->hReport, REPORT_SEVERITY_INFORMATION , "TWD_ExitFromInitMode: called\n");
1033 eventMbox_InitComplete (pTWD->hEventMbox);
1036 cmdQueue_EnableMbox (pTWD->hCmdQueue);
1045 TTwd *pTWD = (TTwd *)hTWD;
1047 TRACE0(pTWD->hReport, REPORT_SEVERITY_INFORMATION , "TWD_PrintTxInfo: called\n");
1052 txCtrlBlk_PrintTable (pTWD->hTxCtrlBlk);
1056 txHwQueue_PrintInfo (pTWD->hTxHwQueue);
1060 TRACE0(pTWD->hReport, REPORT_SEVERITY_CONSOLE,"No TxXfer information to show\n");
1065 txResult_PrintInfo (pTWD->hTxResult);
1069 txResult_ClearInfo (pTWD->hTxResult);
1073 TRACE1(pTWD->hReport, REPORT_SEVERITY_ERROR, ": invalid print info request code: %d\n", ePrintInfo);
1083 TTwd *pTWD = (TTwd *)hTWD;
1085 TRACE0(pTWD->hReport, REPORT_SEVERITY_INFORMATION , "TWD_InterruptRequest: called\n");
1087 fwEvent_InterruptRequest (pTWD->hFwEvent);
1094 TTwd *pTWD = (TTwd *)hTWD;
1096 TRACE0(pTWD->hReport, REPORT_SEVERITY_INFORMATION , "TWD_RegisterEvent: called\n");
1098 return eventMbox_RegisterEvent (pTWD->hEventMbox, event, fCb, hCb);
1103 TTwd *pTWD = (TTwd *)hTWD;
1105 TRACE0(pTWD->hReport, REPORT_SEVERITY_INFORMATION , "TWD_DisableEvent: called\n");
1107 return eventMbox_MaskEvent (pTWD->hEventMbox, event, NULL, NULL);
1112 TTwd *pTWD = (TTwd *)hTWD;
1114 TRACE0(pTWD->hReport, REPORT_SEVERITY_INFORMATION , "TWD_EnableEvent: called\n");
1116 return eventMbox_UnMaskEvent (pTWD->hEventMbox, event, NULL, NULL);
1121 TTwd *pTWD = (TTwd *)hTWD;
1123 TRACE0(pTWD->hReport, REPORT_SEVERITY_INFORMATION , "TWD_StopComplete: called\n");
1127 cmdBld_Restart(pTWD->hCmdBld);
1130 if (pTWD->fStopCb)
1132 TRACE0(pTWD->hReport, REPORT_SEVERITY_INFORMATION , "TWD_StopComplete: call fStopCb CB. In std drvMain_TwdStopCb()\n");
1134 (*pTWD->fStopCb) (pTWD->hUser, TI_OK);
1140 TTwd *pTWD = (TTwd *)hTWD;
1143 TRACE0(pTWD->hReport, REPORT_SEVERITY_INFORMATION , "TWD_Stop: called\n");
1145 fwEvent_Stop (pTWD->hFwEvent);
1151 cmdMbox_Restart (pTWD->hCmdMbox);
1152 cmdQueue_Restart (pTWD->hCmdQueue);
1153 cmdQueue_DisableMbox (pTWD->hCmdQueue);
1154 eventMbox_Stop (pTWD->hEventMbox);
1155 MacServices_restart (pTWD->hMacServices);
1157 status = twIf_Restart(pTWD->hTwIf);
1170 TTwd *pTWD = (TTwd *)hTWD;
1172 TRACE0(pTWD->hReport, REPORT_SEVERITY_INFORMATION , "TWD_EnableExternalEvents: called\n");
1178 twIf_Sleep (pTWD->hTwIf);
1180 fwEvent_EnableExternalEvents (pTWD->hFwEvent);
1185 TTwd *pTWD = (TTwd *)hTWD;
1187 TRACE0(pTWD->hReport, REPORT_SEVERITY_INFORMATION , "TWD_RecoveryEnabled: called\n");
1189 return pTWD->bRecoveryEnabled;
1194 TTwd *pTWD = (TTwd *)hTWD;
1196 TRACE0(pTWD->hReport, REPORT_SEVERITY_INFORMATION , "TWD_GetMaxNumberOfCommandsInQueue: called\n");
1198 return cmdQueue_GetMaxNumberOfCommands (pTWD->hCmdQueue);
1208 TTwd *pTWD = (TTwd *)hTWD;
1210 TRACE0(pTWD->hReport, REPORT_SEVERITY_INFORMATION , "TWD_SetPsMode: called\n");
1212 return MacServices_powerSrv_SetPsMode (pTWD->hMacServices,
1222 TTwd *pTWD = (TTwd *)hTWD;
1224 TRACE0(pTWD->hReport, REPORT_SEVERITY_INFORMATION , "TWD_GetPsStatus: called\n");
1226 return MacServices_powerSrv_getPsStatus (pTWD->hMacServices);
1231 TTwd *pTWD = (TTwd *)hTWD;
1233 TRACE0(pTWD->hReport, REPORT_SEVERITY_INFORMATION , "TWD_SetRateModulation: called\n");
1235 MacServices_powerSrv_SetRateModulation (pTWD->hMacServices, rate);
1242 TTwd *pTWD = (TTwd *)hTWD;
1244 TRACE0(pTWD->hReport, REPORT_SEVERITY_INFORMATION , "TWD_UpdateDtimTbtt: called\n");
1246 MacServices_scanSrv_UpdateDtimTbtt (pTWD->hMacServices, uDtimPeriod, uBeaconInterval);
1257 TTwd *pTWD = (TTwd *)hTWD;
1259 TRACE0(pTWD->hReport, REPORT_SEVERITY_INFORMATION , "TWD_StartMeasurement: called\n");
1261 return MacServices_measurementSRV_startMeasurement (pTWD->hMacServices,
1275 TTwd *pTWD = (TTwd *)hTWD;
1277 TRACE0(pTWD->hReport, REPORT_SEVERITY_INFORMATION , "TWD_StopMeasurement: called\n");
1279 return MacServices_measurementSRV_stopMeasurement (pTWD->hMacServices,
1289 TTwd *pTWD = (TTwd *)hTWD;
1291 TRACE0(pTWD->hReport, REPORT_SEVERITY_INFORMATION , "TWD_RegisterScanCompleteCb: called\n");
1293 MacServices_scanSRV_registerScanCompleteCB (pTWD->hMacServices,
1303 TTwd *pTWD = (TTwd *)hTWD;
1305 TRACE0(pTWD->hReport, REPORT_SEVERITY_INFORMATION , "TWD_PrintMacServDebugStatus: called\n");
1307 MacServices_scanSrv_printDebugStatus (pTWD->hMacServices);
1324 TTwd *pTWD = (TTwd *)hTWD;
1326 TRACE0(pTWD->hReport, REPORT_SEVERITY_INFORMATION , "TWD_Scan: called\n");
1328 return MacServices_scanSRV_scan (pTWD->hMacServices,
1346 TTwd *pTWD = (TTwd *)hTWD;
1348 TRACE0(pTWD->hReport, REPORT_SEVERITY_INFORMATION , "TWD_StopScan: called\n");
1350 return MacServices_scanSRV_stopScan (pTWD->hMacServices,
1359 TTwd *pTWD = (TTwd *)hTWD;
1361 TRACE0(pTWD->hReport, REPORT_SEVERITY_INFORMATION , "TWD_StopScanOnFWReset: called\n");
1363 return MacServices_scanSRV_stopOnFWReset (pTWD->hMacServices);
1373 TTwd *pTWD = (TTwd *)hTWD;
1375 TRACE0(pTWD->hReport, REPORT_SEVERITY_INFORMATION , "TWD_StartConnectionScan: called\n");
1377 return cmdBld_StartPeriodicScan (pTWD->hCmdBld, pPeriodicScanParams, eScanTag, uPassiveScanDfsDwellTimeMs,
1386 TTwd *pTWD = (TTwd *)hTWD;
1388 TRACE0(pTWD->hReport, REPORT_SEVERITY_INFORMATION , "TWD_StopPeriodicScan: called\n");
1390 return cmdBld_StopPeriodicScan (pTWD->hCmdBld, eScanTag, (void*)fResponseCb, hResponseCb);
1471 TTwd *pTWD = (TTwd *)hTWD;
1491 MacServices_powerSrv_SetRateModulation (pTWD->hMacServices, (TI_UINT16)uRateMask);
1507 TRACE1(pTWD->hReport, REPORT_SEVERITY_ERROR, "TWD_WriteMibTemplateFrame - ERROR - template is not supported, %d\n", pMib->aData.TemplateFrame.FrameType);
1533 TTwd *pTWD = (TTwd *)hTWD;
1556 TRACE4(pTWD->hReport, REPORT_SEVERITY_INFORMATION, "TWD_WriteMibBeaconFilterIETable: IETable=0x%x Num Of IE=%d ( including %d 221 ) - Table Len=%d\n", IETable, numOfIEs, numOf221IE, IETableLen);
1578 TTwd *pTWD = (TTwd *)hTWD;
1583 TRACE0(pTWD->hReport, REPORT_SEVERITY_ERROR, "ERROR: TWD_WriteMibTxRatePolicy pMib=NULL !!!");
1588 return cmdBld_CfgTxRatePolicy (pTWD->hCmdBld, &pMib->aData.txRatePolicy, NULL, NULL);
1593 TTwd *pTWD = (TTwd *)hTWD;
1596 TRACE1(pTWD->hReport, REPORT_SEVERITY_INFORMATION , "TWD_WriteMib :pMib %p:\n",pMib);
1598 TRACE1(pTWD->hReport, REPORT_SEVERITY_INFORMATION, "TWD_WriteMib :aMib %x:\n",pMib->aMib);
1600 TRACE_INFO_HEX(pTWD->hReport, (TI_UINT8*)pMib, TI_MIN (sizeof(TMib), pMib->Length));
1605 TRACE0(pTWD->hReport, REPORT_SEVERITY_ERROR, "TWD_WriteMib :pMib = NULL !!\n");
1612 return cmdBld_CfgRxMsduLifeTime (pTWD->hCmdBld, pMib->aData.MaxReceiveLifeTime * 1024, (void *)NULL, (void *)NULL);
1615 return cmdBld_CfgCtsProtection (pTWD->hCmdBld, (TI_UINT8)pMib->aData.CTSToSelfEnable, (void *)NULL, (TI_HANDLE)NULL);
1621 TRACE0(pTWD->hReport, REPORT_SEVERITY_ERROR, "TWD_WriteMib(MIB_dot11GroupAddressesTable) :GroupTable = NULL !!\n");
1637 TRACE0(pTWD->hReport, REPORT_SEVERITY_INFORMATION, "TWD_WriteMib(MIB_arpIpAddressesTable) IpAddress:\n");
1638 TRACE_INFO_HEX(pTWD->hReport, (TI_UINT8*)&IpAddress, 4);
1640 return cmdBld_CfgArpIpAddrTable (pTWD->hCmdBld,
1661 TRACE0(pTWD->hReport, REPORT_SEVERITY_INFORMATION, "\n TWD_WriteMib MIB_rxFilter - RX_CFG_ENABLE_ANY_DEST_MAC\n");
1667 TRACE0(pTWD->hReport, REPORT_SEVERITY_INFORMATION, "\n halCtrl_WriteMib MIB_rxFilter - RX_CFG_ENABLE_ONLY_MY_DEST_MAC\n");
1673 TRACE0(pTWD->hReport, REPORT_SEVERITY_INFORMATION, "\n halCtrl_WriteMib MIB_rxFilter - RX_CFG_ENABLE_ONLY_MY_BSSID\n");
1678 TRACE0(pTWD->hReport, REPORT_SEVERITY_INFORMATION, "\n halCtrl_WriteMib MIB_rxFilter - RX_CFG_ENABLE_ANY_BSSID\n");
1691 TRACE1(pTWD->hReport, REPORT_SEVERITY_ERROR, "TWD_WriteMib - ERROR - MIB element not supported, %d\n", pMib->aMib);
1700 TTwd *pTWD = (TTwd *)hTWD;
1702 TRACE0(pTWD->hReport, REPORT_SEVERITY_INFORMATION , "TWD_ReadMib: called\n");
1704 return cmdBld_ReadMib (pTWD->hCmdBld, hCb, fCb, pCb);
1709 TTwd *pTWD = (TTwd *)hTWD;
1711 TRACE0(pTWD->hReport, REPORT_SEVERITY_INFORMATION , "TWD_DisableInterrupts: called\n");
1713 fwEvent_DisableInterrupts(pTWD->hFwEvent);
1718 TTwd *pTWD = (TTwd *)hTWD;
1720 TRACE0(pTWD->hReport, REPORT_SEVERITY_INFORMATION , "TWD_EnableInterrupts: called\n");
1722 fwEvent_EnableInterrupts(pTWD->hFwEvent);
1727 TTwd *pTWD = (TTwd *)hTWD;
1729 TRACE0(pTWD->hReport, REPORT_SEVERITY_INFORMATION , "TWD_TranslateToFwTime: called\n");
1731 return fwEvent_TranslateToFwTime (pTWD->hFwEvent, uHostTime);
1736 TTwd *pTWD = (TTwd *)hTWD;
1737 TWlanParams *pWlanParams = &DB_WLAN(pTWD->hCmdBld);
1739 TRACE0(pTWD->hReport, REPORT_SEVERITY_INFORMATION , "TWD_GetTwdHtCapabilities: called\n");
1756 TTwd *pTWD = (TTwd *)hTWD;
1757 IniFileGeneralParam *pGenParams = &DB_GEN(pTWD->hCmdBld);
1775 TTwd *pTWD = (TTwd *)hTWD;
1777 (*pTWD->fInitHwCb) (pTWD->hUser, TI_OK);
1785 TTwd *pTWD = (TTwd *)hTWD;
1787 hwInit_ReadRadioParams(pTWD->hHwInit);