Lines Matching refs:pRoamingMngr
227 roamingMngr_t *pRoamingMngr;
230 pRoamingMngr = (roamingMngr_t*)hRoamingMngr;
231 TRACE1(pRoamingMngr->hReport, REPORT_SEVERITY_INFORMATION, "roamingMngr_smRoamTrigger, enableDisable = %d\n",pRoamingMngr->roamingMngrConfig.enableDisable);
233 if (!pRoamingMngr->roamingMngrConfig.enableDisable)
236 TRACE0(pRoamingMngr->hReport, REPORT_SEVERITY_ERROR, "roamingMngr_smRoamTrigger, when Roaming is disabled\n");
240 apConn_prepareToRoaming(pRoamingMngr->hAPConnection, pRoamingMngr->roamingTrigger);
243 pRoamingMngr->pListOfAPs = scanMngr_getBSSList(pRoamingMngr->hScanMngr);
244 if ((pRoamingMngr->pListOfAPs != NULL) && (pRoamingMngr->pListOfAPs->numOfEntries > 0))
251 if (pRoamingMngr->neighborApsExist)
253 pRoamingMngr->scanType = ROAMING_PARTIAL_SCAN;
257 pRoamingMngr->scanType = ROAMING_FULL_SCAN;
260 TRACE1(pRoamingMngr->hReport, REPORT_SEVERITY_INFORMATION, "roamingMngr_smRoamTrigger, scanType = %d\n", pRoamingMngr->scanType);
262 roamingMngr_smEvent(roamingEvent, pRoamingMngr);
291 roamingMngr_t *pRoamingMngr;
294 pRoamingMngr = (roamingMngr_t*)hRoamingMngr;
297 if ((pRoamingMngr->scanType == ROAMING_PARTIAL_SCAN) ||
298 (pRoamingMngr->scanType == ROAMING_PARTIAL_SCAN_RETRY))
300 scanResult = scanMngr_startImmediateScan (pRoamingMngr->hScanMngr, TI_TRUE);
304 scanResult = scanMngr_startImmediateScan (pRoamingMngr->hScanMngr, TI_FALSE);
309 TRACE1(pRoamingMngr->hReport, REPORT_SEVERITY_INFORMATION, "roamingMngr_smInvokeScan, scanResult = %d\n", scanResult);
310 roamingMngr_immediateScanComplete(pRoamingMngr, scanResult);
340 roamingMngr_t *pRoamingMngr;
344 pRoamingMngr = (roamingMngr_t*)hRoamingMngr;
345 pRoamingMngr->listOfCandidateAps.numOfNeighborBSS = 0;
346 pRoamingMngr->listOfCandidateAps.numOfPreAuthBSS = 0;
347 pRoamingMngr->listOfCandidateAps.numOfRegularBSS = 0;
349 pRoamingMngr->candidateApIndex = INVALID_CANDIDATE_INDEX;
351 if ((pRoamingMngr->pListOfAPs == NULL) ||
352 (pRoamingMngr->pListOfAPs->numOfEntries == 0))
354 TRACE0(pRoamingMngr->hReport, REPORT_SEVERITY_INFORMATION, "roamingMngr_smSelection pListOfAPs is empty \n");
355 roamingMngr_smEvent(ROAMING_EVENT_REQ_HANDOVER, pRoamingMngr);
360 for (index=0; index<pRoamingMngr->pListOfAPs->numOfEntries; index++ )
362 if ( (pRoamingMngr->roamingTrigger <= ROAMING_TRIGGER_LOW_QUALITY_GROUP) &&
363 (pRoamingMngr->pListOfAPs->BSSList[index].RSSI < pRoamingMngr->roamingMngrConfig.apQualityThreshold))
366 TRACE8(pRoamingMngr->hReport, REPORT_SEVERITY_INFORMATION, "candidate AP %x-%x-%x-%x-%x-%x with RSSI too low =%d, Quality=%d \n", pRoamingMngr->pListOfAPs->BSSList[index].BSSID[0], pRoamingMngr->pListOfAPs->BSSList[index].BSSID[1], pRoamingMngr->pListOfAPs->BSSList[index].BSSID[2], pRoamingMngr->pListOfAPs->BSSList[index].BSSID[3], pRoamingMngr->pListOfAPs->BSSList[index].BSSID[4], pRoamingMngr->pListOfAPs->BSSList[index].BSSID[5], pRoamingMngr->pListOfAPs->BSSList[index].RSSI, pRoamingMngr->roamingMngrConfig.apQualityThreshold);
371 if (apConn_isSiteBanned(pRoamingMngr->hAPConnection, &pRoamingMngr->pListOfAPs->BSSList[index].BSSID) == TI_TRUE)
373 TRACE6(pRoamingMngr->hReport, REPORT_SEVERITY_INFORMATION, ": Candidate AP %02X-%02X-%02X-%02X-%02X-%02X is banned!\n", pRoamingMngr->pListOfAPs->BSSList[index].BSSID[0], pRoamingMngr->pListOfAPs->BSSList[index].BSSID[1], pRoamingMngr->pListOfAPs->BSSList[index].BSSID[2], pRoamingMngr->pListOfAPs->BSSList[index].BSSID[3], pRoamingMngr->pListOfAPs->BSSList[index].BSSID[4], pRoamingMngr->pListOfAPs->BSSList[index].BSSID[5]);
377 if (pRoamingMngr->pListOfAPs->BSSList[index].bNeighborAP)
379 pRoamingMngr->listOfCandidateAps.neighborBSSList[pRoamingMngr->listOfCandidateAps.numOfNeighborBSS] = index;
380 pRoamingMngr->listOfCandidateAps.numOfNeighborBSS++;
382 else if (apConn_getPreAuthAPStatus(pRoamingMngr->hAPConnection,
383 &pRoamingMngr->pListOfAPs->BSSList[index].BSSID))
385 pRoamingMngr->listOfCandidateAps.preAuthBSSList[pRoamingMngr->listOfCandidateAps.numOfPreAuthBSS] = index;
386 pRoamingMngr->listOfCandidateAps.numOfPreAuthBSS++;
390 pRoamingMngr->listOfCandidateAps.regularBSSList[pRoamingMngr->listOfCandidateAps.numOfRegularBSS] = index;
391 pRoamingMngr->listOfCandidateAps.numOfRegularBSS++;
400 roamingMngr_getParam(pRoamingMngr, ¶m);
404 roamingMngr_smEvent(ROAMING_EVENT_REQ_HANDOVER, pRoamingMngr);
432 roamingMngr_t *pRoamingMngr;
436 pRoamingMngr = (roamingMngr_t*)hRoamingMngr;
438 if ((pRoamingMngr->handoverWasPerformed) && (pRoamingMngr->candidateApIndex == CURRENT_AP_INDEX))
440 roamingMngr_smEvent(ROAMING_EVENT_FAILURE, pRoamingMngr);
443 if (pRoamingMngr->listOfCandidateAps.numOfNeighborBSS > 0)
445 pRoamingMngr->candidateApIndex =
446 pRoamingMngr->listOfCandidateAps.neighborBSSList[pRoamingMngr->listOfCandidateAps.numOfNeighborBSS-1];
447 pRoamingMngr->listOfCandidateAps.numOfNeighborBSS--;
449 else if (pRoamingMngr->listOfCandidateAps.numOfPreAuthBSS > 0)
451 pRoamingMngr->candidateApIndex =
452 pRoamingMngr->listOfCandidateAps.preAuthBSSList[pRoamingMngr->listOfCandidateAps.numOfPreAuthBSS-1];
453 pRoamingMngr->listOfCandidateAps.numOfPreAuthBSS--;
455 else if (pRoamingMngr->listOfCandidateAps.numOfRegularBSS > 0)
457 pRoamingMngr->candidateApIndex =
458 pRoamingMngr->listOfCandidateAps.regularBSSList[pRoamingMngr->listOfCandidateAps.numOfRegularBSS-1];
459 pRoamingMngr->listOfCandidateAps.numOfRegularBSS--;
463 pRoamingMngr->candidateApIndex = INVALID_CANDIDATE_INDEX;
466 TRACE1(pRoamingMngr->hReport, REPORT_SEVERITY_INFORMATION, "roamingMngr_smHandover, candidateApIndex=%d \n", pRoamingMngr->candidateApIndex);
469 if (pRoamingMngr->candidateApIndex == INVALID_CANDIDATE_INDEX)
471 if (pRoamingMngr->roamingTrigger <= ROAMING_TRIGGER_LOW_QUALITY_GROUP)
474 requestToApConn.requestType = (pRoamingMngr->handoverWasPerformed) ? AP_CONNECT_RECONNECT_CURR_AP : AP_CONNECT_RETAIN_CURR_AP;
475 pRoamingMngr->candidateApIndex = CURRENT_AP_INDEX;
479 roamingMngr_smEvent(ROAMING_EVENT_FAILURE, pRoamingMngr);
485 if (pRoamingMngr->roamingTrigger > ROAMING_TRIGGER_FAST_CONNECT_GROUP)
496 if (!pRoamingMngr->handoverWasPerformed)
498 pRoamingMngr->roamingHandoverStartedTimestamp = os_timeStampMs(pRoamingMngr->hOs);
502 if (pRoamingMngr->candidateApIndex == CURRENT_AP_INDEX)
504 pApToConnect = apConn_getBSSParams(pRoamingMngr->hAPConnection);
508 pRoamingMngr->handoverWasPerformed = TI_TRUE;
509 pApToConnect = &pRoamingMngr->pListOfAPs->BSSList[pRoamingMngr->candidateApIndex];
511 TRACE3(pRoamingMngr->hReport, REPORT_SEVERITY_INFORMATION, "roamingMngr_smHandover, candidateApIndex=%d, requestType = %d, channel=%d \n", pRoamingMngr->candidateApIndex, requestToApConn.requestType, pApToConnect->channel);
516 apConn_connectToAP(pRoamingMngr->hAPConnection, pApToConnect, &requestToApConn, pRoamingMngr->bSendTspecInReassPkt);
518 apConn_connectToAP(pRoamingMngr->hAPConnection, pApToConnect, &requestToApConn, TI_TRUE);
543 roamingMngr_t *pRoamingMngr;
545 pRoamingMngr = (roamingMngr_t*)hRoamingMngr;
547 TRACE1(pRoamingMngr->hReport, REPORT_SEVERITY_INFORMATION, "roamingMngr_smDisconnectWhileConnecting, candidateApIndex=%d \n", pRoamingMngr->candidateApIndex);
549 if (pRoamingMngr->roamingTrigger > ROAMING_TRIGGER_FAST_CONNECT_GROUP)
552 pRoamingMngr->maskRoamingEvents = TI_TRUE;
553 pRoamingMngr->roamingTrigger = ROAMING_TRIGGER_NONE;
555 scanMngr_stopContScan(pRoamingMngr->hScanMngr);
557 pRoamingMngr->roamingFailedHandoverNum++;
559 apConn_disconnect(pRoamingMngr->hAPConnection);
586 roamingMngr_t *pRoamingMngr;
589 pRoamingMngr = (roamingMngr_t*)hRoamingMngr;
591 TRACE1(pRoamingMngr->hReport, REPORT_SEVERITY_INFORMATION, "roamingMngr_smSuccHandover, candidateApIndex=%d \n", pRoamingMngr->candidateApIndex);
593 if (pRoamingMngr->handoverWasPerformed &&
594 (pRoamingMngr->pListOfAPs != NULL) &&
595 (pRoamingMngr->pListOfAPs->numOfEntries>0))
597 if (pRoamingMngr->candidateApIndex == CURRENT_AP_INDEX)
600 pNewConnectedAp = apConn_getBSSParams(pRoamingMngr->hAPConnection);
605 pNewConnectedAp = &pRoamingMngr->pListOfAPs->BSSList[pRoamingMngr->candidateApIndex];
608 scanMngr_handoverDone(pRoamingMngr->hScanMngr,
612 pRoamingMngr->maskRoamingEvents = TI_FALSE;
613 pRoamingMngr->candidateApIndex = INVALID_CANDIDATE_INDEX;
614 pRoamingMngr->handoverWasPerformed = TI_FALSE;
615 pRoamingMngr->roamingTrigger = ROAMING_TRIGGER_NONE;
619 if (pRoamingMngr->staCapabilities.authMode==os802_11AuthModeWPA2)
624 pBssList = os_memoryAlloc(pRoamingMngr->hOs, sizeof(bssList_t));
630 apConn_preAuthenticate(pRoamingMngr->hAPConnection, pBssList);
631 os_memoryFree(pRoamingMngr->hOs, pBssList, sizeof(bssList_t));
656 roamingMngr_t *pRoamingMngr;
658 pRoamingMngr = (roamingMngr_t*)hRoamingMngr;
659 TRACE0(pRoamingMngr->hReport, REPORT_SEVERITY_INFORMATION, "roamingMngr_smFailHandover \n");
662 pRoamingMngr->maskRoamingEvents = TI_TRUE;
663 pRoamingMngr->roamingTrigger = ROAMING_TRIGGER_NONE;
665 scanMngr_stopContScan(pRoamingMngr->hScanMngr);
667 pRoamingMngr->roamingFailedHandoverNum++;
669 apConn_disconnect(pRoamingMngr->hAPConnection);
694 roamingMngr_t *pRoamingMngr;
696 pRoamingMngr = (roamingMngr_t*)hRoamingMngr;
697 TRACE0(pRoamingMngr->hReport, REPORT_SEVERITY_INFORMATION, "roamingMngr_smScanFailure \n");
700 pRoamingMngr->maskRoamingEvents = TI_TRUE;
701 pRoamingMngr->roamingTrigger = ROAMING_TRIGGER_NONE;
703 scanMngr_stopContScan(pRoamingMngr->hScanMngr);
705 apConn_disconnect(pRoamingMngr->hAPConnection);
731 roamingMngr_t *pRoamingMngr;
733 pRoamingMngr = (roamingMngr_t*)hRoamingMngr;
734 TRACE0(pRoamingMngr->hReport, REPORT_SEVERITY_INFORMATION, "roamingMngr_smCmdFailure \n");
737 pRoamingMngr->maskRoamingEvents = TI_TRUE;
738 pRoamingMngr->roamingTrigger = ROAMING_TRIGGER_NONE;
768 roamingMngr_t *pRoamingMngr;
771 pRoamingMngr = (roamingMngr_t*)pData;
772 TRACE0(pRoamingMngr->hReport, REPORT_SEVERITY_INFORMATION, "roamingMngr_smStartIdle, Unmask Roaming events and start continuos scan \n");
774 pRoamingMngr->maskRoamingEvents = TI_FALSE;
775 pRoamingMngr->handoverWasPerformed = TI_FALSE;
776 pRoamingMngr->roamingTrigger = ROAMING_TRIGGER_NONE;
778 pCurBssEntry = apConn_getBSSParams(pRoamingMngr->hAPConnection);
779 scanMngr_startContScan(pRoamingMngr->hScanMngr, &pCurBssEntry->BSSID, pCurBssEntry->band);
783 if (pRoamingMngr->staCapabilities.authMode==os802_11AuthModeWPA2)
787 TRACE0(pRoamingMngr->hReport, REPORT_SEVERITY_INFORMATION, "roamingMngr_smStartIdle, Pre-Auth to cur AP\n");
788 pBssList = os_memoryAlloc(pRoamingMngr->hOs, sizeof(bssList_t));
795 apConn_preAuthenticate(pRoamingMngr->hAPConnection, pBssList);
796 os_memoryFree(pRoamingMngr->hOs, pBssList, sizeof(bssList_t));