Lines Matching refs:pRoamingMngr
118 static void roamingMngr_releaseModule(roamingMngr_t *pRoamingMngr, TI_UINT32 initVec);
137 * I - pRoamingMngr - Roaming Manager context \n
146 static void roamingMngr_releaseModule(roamingMngr_t *pRoamingMngr, TI_UINT32 initVec)
149 if (pRoamingMngr==NULL)
155 genSM_Unload(pRoamingMngr->hRoamingSm);
160 os_memoryFree(pRoamingMngr->hOs, pRoamingMngr, sizeof(roamingMngr_t));
190 roamingMngr_t *pRoamingMngr;
196 pRoamingMngr = (roamingMngr_t*)hRoamingMngr;
197 if ((pRoamingMngr == NULL) || (pData == NULL))
204 if ((ROAMING_OPERATIONAL_MODE_MANUAL == pRoamingMngr->RoamingOperationalMode) &&
208 EvHandlerSendEvent(pRoamingMngr->hEvHandler, IPC_EVENT_AP_DISCONNECT, (TI_UINT8*)&disConnReasonCode, sizeof(disConnReasonCode));
214 TRACE1(pRoamingMngr->hReport, REPORT_SEVERITY_ERROR, "roamingMngr_triggerRoamingCb, bad roaming trigger = %d\n", roamingTrigger);
219 pRoamingMngr->roamingTriggerEvents[pRoamingMngr->roamingTrigger]++;
228 TRACE1(pRoamingMngr->hReport, REPORT_SEVERITY_INFORMATION, "roamingMngr_triggerRoamingCb, lowQuality = %d \n", lowQuality);
229 scanMngr_qualityChangeTrigger(pRoamingMngr->hScanMngr, lowQuality);
233 if (roamingTrigger > pRoamingMngr->roamingTrigger)
235 pRoamingMngr->roamingTrigger = roamingTrigger;
236 TRACE1(pRoamingMngr->hReport, REPORT_SEVERITY_INFORMATION, "roamingMngr_triggerRoamingCb, higher trigger = %d \n", roamingTrigger);
240 curTimestamp = os_timeStampMs(pRoamingMngr->hOs);
245 pRoamingMngr->lowQualityTriggerTimestamp = 0;
249 if (pRoamingMngr->maskRoamingEvents == TI_FALSE)
252 TRACE1(pRoamingMngr->hReport, REPORT_SEVERITY_INFORMATION, "roamingMngr_triggerRoamingCb, trigger = %d \n", roamingTrigger);
255 TI_UINT32 deltaTs = curTimestamp-pRoamingMngr->lowQualityTriggerTimestamp;
257 if ((pRoamingMngr->lowQualityTriggerTimestamp != 0) &&
258 (deltaTs < pRoamingMngr->lowPassFilterRoamingAttemptInMsec))
260 TRACE5(pRoamingMngr->hReport, REPORT_SEVERITY_INFORMATION, "roamingMngr_triggerRoamingCb, trigger = %d Ignored!!,deltaTs=%d, curTimestamp = %d, lowQualityTriggerTimestamp = %d, lowPassFilterRoamingAttempt=%d\n", roamingTrigger, deltaTs, curTimestamp, pRoamingMngr->lowQualityTriggerTimestamp, pRoamingMngr->lowPassFilterRoamingAttemptInMsec);
263 pRoamingMngr->lowQualityTriggerTimestamp = curTimestamp;
267 pRoamingMngr->maskRoamingEvents = TI_TRUE;
271 pRoamingMngr->roamingTriggerTimestamp = curTimestamp;
273 return (roamingMngr_smEvent(ROAMING_EVENT_ROAM_TRIGGER, pRoamingMngr));
277 return (roamingMngr_smEvent(ROAMING_EVENT_ROAM_TRIGGER, pRoamingMngr));
307 roamingMngr_t *pRoamingMngr;
311 pRoamingMngr = (roamingMngr_t*)hRoamingMngr;
312 if ((pRoamingMngr == NULL) || (pData == NULL))
318 TRACE1(pRoamingMngr->hReport, REPORT_SEVERITY_INFORMATION, "roamingMngr_connStatusCb, conn status = %d\n", connStatus);
320 if (!pRoamingMngr->roamingMngrConfig.enableDisable)
322 TRACE1(pRoamingMngr->hReport, REPORT_SEVERITY_ERROR, "roamingMngr_connStatusCb, connStatus=%d was received while Roaming is disabled. Stop Roaming \n", connStatus);
326 if (ROAMING_OPERATIONAL_MODE_AUTO == pRoamingMngr->RoamingOperationalMode)
332 apConn_getStaCapabilities(pRoamingMngr->hAPConnection, &pRoamingMngr->staCapabilities);
339 pRoamingMngr->roamingSuccesfulHandoverNum++;
340 pRoamingMngr->roamingHandoverCompletedTimestamp = os_timeStampMs(pRoamingMngr->hOs);
341 pRoamingMngr->roamingAverageSuccHandoverDuration += os_timeStampMs(pRoamingMngr->hOs)-pRoamingMngr->roamingHandoverStartedTimestamp;
342 pRoamingMngr->roamingAverageRoamingDuration += os_timeStampMs(pRoamingMngr->hOs)-pRoamingMngr->roamingTriggerTimestamp;
343 pRoamingMngr->roamingHandoverEvents[pRoamingMngr->roamingTrigger]++;
349 pRoamingMngr->roamingFailedHandoverNum++;
353 TRACE1(pRoamingMngr->hReport, REPORT_SEVERITY_ERROR, "roamingMngr_connStatusCb, bad connStatus = %d\n", connStatus);
363 apConn_getStaCapabilities(pRoamingMngr->hAPConnection,&pRoamingMngr->staCapabilities);
379 return (roamingMngr_smEvent(roamingEvent, pRoamingMngr));
404 roamingMngr_t *pRoamingMngr;
407 pRoamingMngr = (roamingMngr_t*)hRoamingMngr;
408 if ((pRoamingMngr == NULL) || (pData == NULL))
416 pRoamingMngr->neighborApsExist = TI_TRUE;
420 pRoamingMngr->neighborApsExist = TI_FALSE;
423 if (pRoamingMngr->roamingMngrConfig.enableDisable)
425 scanMngr_setNeighborAPs (pRoamingMngr->hScanMngr, pNeighborAPList);
427 TRACE2(pRoamingMngr->hReport, REPORT_SEVERITY_INFORMATION, "roamingMngr_updateNeighborApListCb, numberOfAps = %d, enableDisable=%d\n", pNeighborAPList->numOfEntries, pRoamingMngr->roamingMngrConfig.enableDisable);
454 roamingMngr_t *pRoamingMngr = (roamingMngr_t*)data;
456 TRACE3(pRoamingMngr->hReport, REPORT_SEVERITY_INFORMATION, "roamingMngr_smEvent(). Mode(%d) ,currentState = %d, event=%d \n",
457 pRoamingMngr->RoamingOperationalMode,
458 *(pRoamingMngr->pCurrentState),
461 genSM_Event (pRoamingMngr->hRoamingSm, (TI_UINT32)event, data);
463 TRACE1(pRoamingMngrpRoamingMngr->pCurrentState));
493 roamingMngr_t *pRoamingMngr;
496 pRoamingMngr = (roamingMngr_t*)hRoamingMngr;
497 if (pRoamingMngr == NULL)
508 WLAN_OS_REPORT(("- Low TX rate = %d\n", pRoamingMngr->roamingTriggerEvents[index]));
511 WLAN_OS_REPORT(("- Low Snr = %d\n", pRoamingMngr->roamingTriggerEvents[index]));
514 WLAN_OS_REPORT(("- Low Quality = %d\n", pRoamingMngr->roamingTriggerEvents[index]));
517 WLAN_OS_REPORT(("- MAX TX retries = %d\n", pRoamingMngr->roamingTriggerEvents[index]));
520 WLAN_OS_REPORT(("- BSS Loss TX = %d\n", pRoamingMngr->roamingTriggerEvents[index]));
523 WLAN_OS_REPORT(("- Switch Channel = %d\n", pRoamingMngr->roamingTriggerEvents[index]));
526 WLAN_OS_REPORT(("- AP Disconnect = %d\n", pRoamingMngr->roamingTriggerEvents[index]));
529 WLAN_OS_REPORT(("- SEC attack = %d\n", pRoamingMngr->roamingTriggerEvents[index]));
543 WLAN_OS_REPORT(("- Low TX rate = %d\n", pRoamingMngr->roamingHandoverEvents[index]));
546 WLAN_OS_REPORT(("- Low Snre = %d\n", pRoamingMngr->roamingHandoverEvents[index]));
549 WLAN_OS_REPORT(("- Low Quality = %d\n", pRoamingMngr->roamingHandoverEvents[index]));
552 WLAN_OS_REPORT(("- MAX TX retries = %d\n", pRoamingMngr->roamingHandoverEvents[index]));
555 WLAN_OS_REPORT(("- BSS Loss TX = %d\n", pRoamingMngr->roamingHandoverEvents[index]));
558 WLAN_OS_REPORT(("- Switch Channel = %d\n", pRoamingMngr->roamingHandoverEvents[index]));
561 WLAN_OS_REPORT(("- AP Disconnect = %d\n", pRoamingMngr->roamingHandoverEvents[index]));
564 WLAN_OS_REPORT(("- SEC attack = %d\n", pRoamingMngr->roamingHandoverEvents[index]));
572 WLAN_OS_REPORT(("- Num of succesful handovers = %d\n", pRoamingMngr->roamingSuccesfulHandoverNum));
573 WLAN_OS_REPORT(("- Num of failed handovers = %d\n", pRoamingMngr->roamingFailedHandoverNum));
574 if (pRoamingMngr->roamingSuccesfulHandoverNum >0)
576 WLAN_OS_REPORT(("- Succesful average succesful handover duration = %d\n", pRoamingMngr->roamingAverageSuccHandoverDuration/pRoamingMngr->roamingSuccesfulHandoverNum));
577 WLAN_OS_REPORT(("- Succesful average roaming duration = %d\n", pRoamingMngr->roamingAverageRoamingDuration/pRoamingMngr->roamingSuccesfulHandoverNum));
605 roamingMngr_t *pRoamingMngr;
608 pRoamingMngr = (roamingMngr_t*)hRoamingMngr;
609 if (pRoamingMngr == NULL)
615 pRoamingMngr->roamingSuccesfulHandoverNum = 0;
616 pRoamingMngr->roamingHandoverStartedTimestamp = 0;
617 pRoamingMngr->roamingHandoverCompletedTimestamp = 0;
618 pRoamingMngr->roamingAverageSuccHandoverDuration = 0;
619 pRoamingMngr->roamingAverageRoamingDuration = 0;
620 pRoamingMngr->roamingFailedHandoverNum = 0;
624 pRoamingMngr->roamingHandoverEvents[index] = 0;
625 pRoamingMngr->roamingTriggerEvents[index] = 0;
648 roamingMngr_t *pRoamingMngr;
653 pRoamingMngr = os_memoryAlloc(hOs, sizeof(roamingMngr_t));
654 if (pRoamingMngr == NULL)
658 pRoamingMngr->hOs = hOs;
661 pRoamingMngr->hRoamingSm = genSM_Create(hOs);
663 if (pRoamingMngr->hRoamingSm == NULL)
665 roamingMngr_releaseModule(pRoamingMngr, initVec);
672 return pRoamingMngr;
692 roamingMngr_t *pRoamingMngr = (roamingMngr_t*)(pStadHandles->hRoamingMngr);
695 pRoamingMngr->hReport = pStadHandles->hReport;
696 pRoamingMngr->hScanMngr = pStadHandles->hScanMngr;
697 pRoamingMngr->hAPConnection = pStadHandles->hAPConnection;
698 pRoamingMngr->hTWD = pStadHandles->hTWD;
699 pRoamingMngr->hEvHandler = pStadHandles->hEvHandler;
700 pRoamingMngr->hCurrBss = pStadHandles->hCurrBss;
702 genSM_Init(pRoamingMngr->hRoamingSm,pRoamingMngr->hReport);
709 roamingMngr_t *pRoamingMngr = (roamingMngr_t*)hRoamingMngr;
716 //pRoamingMngr->currentState = ROAMING_STATE_IDLE;
717 pRoamingMngr->roamingMngrConfig.enableDisable = ROAMING_DISABLED;
718 pRoamingMngr->roamingMngrConfig.apQualityThreshold = DEFAULT_AP_QUALITY;
719 pRoamingMngr->roamingMngrConfig.lowPassFilterRoamingAttempt = DEFAULT_LOW_PASS_FILTER;
720 pRoamingMngr->roamingTrigger = ROAMING_TRIGGER_NONE;
721 pRoamingMngr->maskRoamingEvents= TI_TRUE;
722 pRoamingMngr->scanType = ROAMING_NO_SCAN;
723 pRoamingMngr->candidateApIndex = INVALID_CANDIDATE_INDEX;
724 pRoamingMngr->handoverWasPerformed = TI_FALSE;
725 pRoamingMngr->lowQualityTriggerTimestamp = 0;
726 pRoamingMngr->neighborApsExist = TI_FALSE;
727 pRoamingMngr->pListOfAPs = NULL;
728 pRoamingMngr->candidateApIndex = INVALID_CANDIDATE_INDEX;
729 pRoamingMngr->listOfCandidateAps.numOfNeighborBSS = 0;
730 pRoamingMngr->listOfCandidateAps.numOfPreAuthBSS = 0;
731 pRoamingMngr->listOfCandidateAps.numOfRegularBSS = 0;
732 pRoamingMngr->RoamingOperationalMode = pInitParam->RoamingOperationalMode;
733 pRoamingMngr->bSendTspecInReassPkt = pInitParam->bSendTspecInReassPkt;
759 if(ROAMING_OPERATIONAL_MODE_MANUAL==pRoamingMngr->RoamingOperationalMode)
761 genSM_SetDefaults(pRoamingMngr->hRoamingSm,
771 pRoamingMngr->RoamStateDescription = ManualRoamStateDescription;
772 pRoamingMngr->RoamEventDescription = ManualRoamEventDescription;
776 genSM_SetDefaults(pRoamingMngr->hRoamingSm,
786 pRoamingMngr->RoamStateDescription = AutoRoamStateDescription;
787 pRoamingMngr->RoamEventDescription = AutoRoamEventDescription;
790 pRoamingMngr->pCurrentState = &((TGenSM*)pRoamingMngr->hRoamingSm)->uCurrentState;
794 pRoamingMngr->roamingSuccesfulHandoverNum = 0;
795 pRoamingMngr->roamingHandoverStartedTimestamp = 0;
796 pRoamingMngr->roamingHandoverCompletedTimestamp = 0;
797 pRoamingMngr->roamingAverageSuccHandoverDuration = 0;
798 pRoamingMngr->roamingAverageRoamingDuration = 0;
799 pRoamingMngr->roamingFailedHandoverNum = 0;
803 pRoamingMngr->roamingTriggerEvents[index] = 0;
804 pRoamingMngr->roamingHandoverEvents[index] = 0;
813 roamingMngr_t *pRoamingMngr = (roamingMngr_t*)hRoamingMngr;
818 TRACE0(pRoamingMngr->hReport, REPORT_SEVERITY_ERROR , "roamingMngr_setParam(): pParam is NULL!\n");
822 TRACE1(pRoamingMngr->hReport, REPORT_SEVERITY_INFORMATION , "roamingMngr_setParam %X \n", pParam->paramType);
834 TRACE3(pRoamingMngr->hReport, REPORT_SEVERITY_INFORMATION, "roamingMngr_setParam Configuration: \n enableDisable= %d,\n lowPassFilterRoamingAttempt=%d,\n apQualityThreshold=%d\n", pRoamingMngrConfigParams->roamingMngrConfig.enableDisable, pRoamingMngrConfigParams->roamingMngrConfig.lowPassFilterRoamingAttempt, pRoamingMngrConfigParams->roamingMngrConfig.apQualityThreshold);
836 pRoamingMngr->roamingMngrConfig.apQualityThreshold = pRoamingMngrConfigParams->roamingMngrConfig.apQualityThreshold;
837 pRoamingMngr->roamingMngrConfig.lowPassFilterRoamingAttempt = pRoamingMngrConfigParams->roamingMngrConfig.lowPassFilterRoamingAttempt;
838 pRoamingMngr->lowPassFilterRoamingAttemptInMsec = pRoamingMngrConfigParams->roamingMngrConfig.lowPassFilterRoamingAttempt * 1000;
841 TRACE7(pRoamingMngr->hReport, REPORT_SEVERITY_INFORMATION, "roamingMngr_setParam Thresholds: \n dataRetryThreshold= %d,\n lowQualityForBackgroungScanCondition=%d,\n lowRssiThreshold=%d,\n lowSNRThreshold=%d,\n normalQualityForBackgroungScanCondition=%d,\n numExpectedTbttForBSSLoss=%d,\n txRateThreshold=%d \n \n", pRoamingMngrConfigParams->roamingMngrThresholdsConfig.dataRetryThreshold, pRoamingMngrConfigParams->roamingMngrThresholdsConfig.lowQualityForBackgroungScanCondition, pRoamingMngrConfigParams->roamingMngrThresholdsConfig.lowRssiThreshold, pRoamingMngrConfigParams->roamingMngrThresholdsConfig.lowSnrThreshold, pRoamingMngrConfigParams->roamingMngrThresholdsConfig.normalQualityForBackgroungScanCondition, pRoamingMngrConfigParams->roamingMngrThresholdsConfig.numExpectedTbttForBSSLoss, pRoamingMngrConfigParams->roamingMngrThresholdsConfig.txRateThreshold);
843 os_memoryCopy(pRoamingMngr->hOs, &pRoamingMngr->roamingMngrThresholdsConfig, &pRoamingMngrConfigParams->roamingMngrThresholdsConfig, sizeof(roamingMngrThresholdsConfig_t));
845 status = apConn_setRoamThresholds(pRoamingMngr->hAPConnection, &pRoamingMngrConfigParams->roamingMngrThresholdsConfig);
847 if (pRoamingMngr->roamingMngrConfig.enableDisable &&
850 apConn_unregisterRoamMngrCallb(pRoamingMngr->hAPConnection);
851 pRoamingMngr->roamingMngrConfig.enableDisable = ROAMING_DISABLED;
852 return (roamingMngr_smEvent(ROAMING_EVENT_STOP, pRoamingMngr));
854 else if (!pRoamingMngr->roamingMngrConfig.enableDisable &&
858 pRoamingMngr->roamingMngrConfig.enableDisable = pRoamingMngrConfigParams->roamingMngrConfig.enableDisable;
860 apConn_registerRoamMngrCallb(pRoamingMngr->hAPConnection,
873 TRACE1(pRoamingMngr->hReport, REPORT_SEVERITY_INFORMATION, "roamingMngr_setParam TRIGGER_EVENT= %d \n", pParam->content.roamingTriggerType);
874 apConn_reportRoamingEvent(pRoamingMngr->hAPConnection, (apConn_roamingTrigger_e)pParam->content.roamingTriggerType, NULL);
879 TRACE1(pRoamingMngr->hReport, REPORT_SEVERITY_INFORMATION, "roamingMngr_setParam CONN_STATUS= %d \n", pParam->content.roamingConnStatus);
880 roamingMngr_connStatusCb(pRoamingMngr, &pParam->content.roamingConnStatus);
884 TRACE1(pRoamingMngr->hReport, REPORT_SEVERITY_ERROR, "roamingMngr_setParam bad param= %X\n", pParam->paramType);
895 roamingMngr_t *pRoamingMngr = (roamingMngr_t*)hRoamingMngr;
899 TRACE0(pRoamingMngr->hReport, REPORT_SEVERITY_ERROR , "roamingMngr_getParam(): pParam is NULL!\n");
903 TRACE1(pRoamingMngr->hReport, REPORT_SEVERITY_INFORMATION, "roamingMngr_getParam %X \n", pParam->paramType);
913 if (pRoamingMngr->roamingMngrConfig.enableDisable == ROAMING_DISABLED)
921 pRoamingMngrConfigParams->roamingMngrConfig.apQualityThreshold = pRoamingMngr->roamingMngrConfig.apQualityThreshold;
922 pRoamingMngrConfigParams->roamingMngrConfig.lowPassFilterRoamingAttempt = pRoamingMngr->roamingMngrConfig.lowPassFilterRoamingAttempt;
924 apConn_getRoamThresholds(pRoamingMngr->hAPConnection, &pRoamingMngr->roamingMngrThresholdsConfig);
925 os_memoryCopy(pRoamingMngr->hOs, &pRoamingMngrConfigParams->roamingMngrThresholdsConfig, &pRoamingMngr->roamingMngrThresholdsConfig, sizeof(roamingMngrThresholdsConfig_t));
932 roamingMngr_printStatistics(pRoamingMngr);
936 roamingMngr_resetStatistics(pRoamingMngr);
941 *(pRoamingMngr->pCurrentState),
942 pRoamingMngr->roamingMngrConfig.enableDisable,
943 pRoamingMngr->maskRoamingEvents,
944 pRoamingMngr->roamingTrigger,
945 pRoamingMngr->scanType,
946 pRoamingMngr->handoverWasPerformed,
947 pRoamingMngr->candidateApIndex,
948 pRoamingMngr->lowQualityTriggerTimestamp));
954 if (pRoamingMngr->pListOfAPs==NULL)
956 TRACE0( pRoamingMngr->hReport, REPORT_SEVERITY_INFORMATION, "Roaming Mngr the candidate AP list is invalid \n");
959 TRACE1( pRoamingMngr->hReport, REPORT_SEVERITY_INFORMATION, "The number of candidates is %d\n", pRoamingMngr->pListOfAPs->numOfEntries);
961 TRACE1( pRoamingMngr->hReport, REPORT_SEVERITY_INFORMATION, "Roaming Mngr Neighbor AP list, num of candidates = %d\n", pRoamingMngr->listOfCandidateAps.numOfNeighborBSS);
963 for (index=0; index<pRoamingMngr->listOfCandidateAps.numOfNeighborBSS; index++)
968 candidateIndex = pRoamingMngr->listOfCandidateAps.neighborBSSList[index];
969 pBssEntry = &pRoamingMngr->pListOfAPs->BSSList[candidateIndex];
970 TRACE8( pRoamingMngr->hReport, REPORT_SEVERITY_INFORMATION, "candiate %d, BSSID=%x-%x-%x-%x-%x-%x, RSSI =%d \n", candidateIndex, pBssEntry->BSSID[0], pBssEntry->BSSID[1], pBssEntry->BSSID[2], pBssEntry->BSSID[3], pBssEntry->BSSID[4], pBssEntry->BSSID[5], pBssEntry->RSSI);
972 TRACE1( pRoamingMngr->hReport, REPORT_SEVERITY_INFORMATION, "Roaming Mngr Pre-Auth AP list, num of candidates = %d\n", pRoamingMngr->listOfCandidateAps.numOfPreAuthBSS);
974 for (index=0; index<pRoamingMngr->listOfCandidateAps.numOfPreAuthBSS; index++)
979 candidateIndex = pRoamingMngr->listOfCandidateAps.preAuthBSSList[index];
980 pBssEntry = &pRoamingMngr->pListOfAPs->BSSList[candidateIndex];
981 TRACE8( pRoamingMngr->hReport, REPORT_SEVERITY_INFORMATION, "candiate %d, BSSID=%x-%x-%x-%x-%x-%x, RSSI =%d \n", candidateIndex, pBssEntry->BSSID[0], pBssEntry->BSSID[1], pBssEntry->BSSID[2], pBssEntry->BSSID[3], pBssEntry->BSSID[4], pBssEntry->BSSID[5], pBssEntry->RSSI);
983 TRACE1( pRoamingMngr->hReport, REPORT_SEVERITY_INFORMATION, "Roaming Mngr Regular AP list, num of candidates = %d\n", pRoamingMngr->listOfCandidateAps.numOfRegularBSS);
985 for (index=0; index<pRoamingMngr->listOfCandidateAps.numOfRegularBSS; index++)
990 candidateIndex = pRoamingMngr->listOfCandidateAps.regularBSSList[index];
991 pBssEntry = &pRoamingMngr->pListOfAPs->BSSList[candidateIndex];
992 TRACE8( pRoamingMngr->hReport, REPORT_SEVERITY_INFORMATION, "candiate %d, BSSID=%x-%x-%x-%x-%x-%x, RSSI =%d \n", candidateIndex, pBssEntry->BSSID[0], pBssEntry->BSSID[1], pBssEntry->BSSID[2], pBssEntry->BSSID[3], pBssEntry->BSSID[4], pBssEntry->BSSID[5], pBssEntry->RSSI);
1000 TRACE1(pRoamingMngr->hReport, REPORT_SEVERITY_ERROR, "roamingMngr_getParam bad paramType= %X \n", pParam->paramType);
1009 roamingMngr_t *pRoamingMngr;
1013 pRoamingMngr = (roamingMngr_t*)hRoamingMngr;
1014 if (pRoamingMngr == NULL)
1019 TRACE1(pRoamingMngr->hReport, REPORT_SEVERITY_INFORMATION, "roamingMngr_immediateScanComplete, scanCmpltStatus = %d\n", scanCmpltStatus);
1024 pRoamingMngr->pListOfAPs = scanMngr_getBSSList(pRoamingMngr->hScanMngr);
1025 if ((pRoamingMngr->pListOfAPs != NULL) && (pRoamingMngr->pListOfAPs->numOfEntries > 0))
1028 pRoamingMngr->scanType = ROAMING_NO_SCAN;
1033 if ((pRoamingMngr->scanType == ROAMING_PARTIAL_SCAN) ||
1034 (pRoamingMngr->scanType == ROAMING_PARTIAL_SCAN_RETRY))
1036 pRoamingMngr->scanType = ROAMING_FULL_SCAN;
1050 pRoamingMngr->pListOfAPs = scanMngr_getBSSList(pRoamingMngr->hScanMngr);
1051 if ((pRoamingMngr->pListOfAPs != NULL) && (pRoamingMngr->pListOfAPs->numOfEntries > 0))
1054 pRoamingMngr->scanType = ROAMING_NO_SCAN;
1061 switch (pRoamingMngr->scanType)
1065 pRoamingMngr->scanType = ROAMING_PARTIAL_SCAN_RETRY;
1069 pRoamingMngr->scanType = ROAMING_NO_SCAN;
1073 pRoamingMngr->scanType = ROAMING_FULL_SCAN_RETRY;
1077 pRoamingMngr->scanType = ROAMING_NO_SCAN;
1081 TRACE1(pRoamingMngr->hReport, REPORT_SEVERITY_ERROR, "roamingMngr_immediateScanComplete, pRoamingMngr->scanType = %d\n", pRoamingMngr->scanType);
1082 pRoamingMngr->scanType = ROAMING_NO_SCAN;
1084 } /* switch (pRoamingMngr->scanType) */
1088 TRACE2(pRoamingMngr->hReport, REPORT_SEVERITY_INFORMATION, "roamingMngr_immediateScanComplete, roamingEvent = %d, scanType=%d\n", roamingEvent, pRoamingMngr->scanType);
1090 return (roamingMngr_smEvent(roamingEvent, pRoamingMngr));
1097 roamingMngr_t *pRoamingMngr;
1099 pRoamingMngr = (roamingMngr_t*)hRoamingMngr;
1100 if ((pRoamingMngr == NULL) || (bssList == NULL))
1105 TRACE1(pRoamingMngr->hReport, REPORT_SEVERITY_INFORMATION, "roamingMngr_updateNewBssList, number of APs = %d\n", bssList->numOfEntries);
1107 if (*(pRoamingMngr->pCurrentState) != ROAMING_STATE_WAIT_4_TRIGGER)
1109 TRACE0(pRoamingMngr->hReport, REPORT_SEVERITY_WARNING, "roamingMngr_updateNewBssList, ignore APs when not in WAIT_4_TRIGGER state \n");
1114 if (pRoamingMngr->staCapabilities.authMode!=os802_11AuthModeWPA2)
1116 TRACE0(pRoamingMngr->hReport, REPORT_SEVERITY_INFORMATION, "roamingMngr_updateNewBssList, No Pre-Auth is required\n");
1119 apConn_preAuthenticate(pRoamingMngr->hAPConnection, bssList);
1128 roamingMngr_t *pRoamingMngr;
1130 pRoamingMngr = (roamingMngr_t*)pData;
1131 TRACE0(pRoamingMngr->hReport, REPORT_SEVERITY_INFORMATION, " roamingMngr_smNop\n");
1137 roamingMngr_t *pRoamingMngr;
1139 pRoamingMngr = (roamingMngr_t*)pData;
1140 TRACE1(pRoamingMngr->hReport, REPORT_SEVERITY_ERROR, " roamingMngr_smUnexpected, state = %d\n", *(pRoamingMngr->pCurrentState));
1146 roamingMngr_t *pRoamingMngr;
1148 pRoamingMngr = (roamingMngr_t*)pData;
1150 scanMngr_stopContScan(pRoamingMngr->hScanMngr);
1152 pRoamingMngr->maskRoamingEvents = TI_TRUE;
1153 pRoamingMngr->neighborApsExist = TI_FALSE;
1154 pRoamingMngr->roamingTrigger = ROAMING_TRIGGER_NONE;
1177 roamingMngr_t* pRoamingMngr;
1179 pRoamingMngr = (roamingMngr_t*)pData;
1181 TRACE0(pRoamingMngr->hReport, REPORT_SEVERITY_INFORMATION, " roamingMngr_smStopWhileScanning\n");
1183 scanMngr_stopImmediateScan(pRoamingMngr->hScanMngr);
1184 scanMngr_stopContScan(pRoamingMngr->hScanMngr);
1187 pRoamingMngr->maskRoamingEvents = TI_TRUE;
1188 pRoamingMngr->neighborApsExist = TI_FALSE;
1189 pRoamingMngr->roamingTrigger = ROAMING_TRIGGER_NONE;
1217 roamingMngr_t *pRoamingMngr = (roamingMngr_t*)hRoamingMngr;
1219 TRACE0(pRoamingMngr->hReport, REPORT_SEVERITY_INFORMATION, "roamingMngr_setBssLossThreshold! \n");
1221 if(ROAMING_OPERATIONAL_MODE_MANUAL == pRoamingMngr->RoamingOperationalMode)
1223 return currBss_registerBssLossEvent(pRoamingMngr->hCurrBss, uNumOfBeacons, uClientID);
1227 TRACE0(pRoamingMngr->hReport, REPORT_SEVERITY_ERROR, "roamingMngr_setBssLossThreshold is available only in auto mode! \n");
1254 roamingMngr_t *pRoamingMngr = (roamingMngr_t*)hRoamingMngr;
1258 TRACE2(pRoamingMngr->hReport, REPORT_SEVERITY_INFORMATION, "roamingMngr_connect(),"
1264 TRACE6(pRoamingMngr->hReport, REPORT_SEVERITY_ERROR, "roamingMngr_connect(),"
1278 os_memoryCopy(pRoamingMngr->hOs, &(pRoamingMngr->targetAP), (void*)pTargetAp, sizeof(TargetAp_t));
1283 TRACE6(pRoamingMngr->hReport, REPORT_SEVERITY_ERROR, "roamingMngr_connect(),"
1309 roamingMngr_t *pRoamingMngr = (roamingMngr_t*)hRoamingMngr;
1311 TRACE0(pRoamingMngr->hReport, REPORT_SEVERITY_INFORMATION, "roamingMngr_startImmediateScan().\n");
1314 scanMngr_setManualScanChannelList (pRoamingMngr-> hScanMngr, pChannelList);
1337 roamingMngr_t *pRoamingMngr = (roamingMngr_t*)hRoamingMngr;
1338 scanMngr_stopImmediateScan(pRoamingMngr->hScanMngr);