Lines Matching refs:bandPolicy
1397 * \param bandPolicy - The scan policy for the requested band.\n
1426 * \param bandPolicy - The scan policy for the requested band.\n
1429 void scanMngrBuildImmediateScanCommand( TI_HANDLE hScanMngr, TScanBandPolicy* bandPolicy, TI_BOOL bNeighborAPsOnly )
1438 if ( bandPolicy->band >= RADIO_BAND_NUM_OF_BANDS )
1441 "scanMngrBuildImmediateScanCommand. bandPolicy->band=%d exceeds the limit %d\n",
1442 bandPolicy->band, RADIO_BAND_NUM_OF_BANDS-1);
1446 if ( pScanMngr->neighborAPsDiscoveryList[ bandPolicy->band ].numOfEntries > MAX_NUM_OF_NEIGHBOR_APS )
1450 bandPolicy->band, pScanMngr->neighborAPsDiscoveryList[ bandPolicy->band ].numOfEntries, MAX_NUM_OF_NEIGHBOR_APS);
1455 scanMngrBuildScanCommandHeader( hScanMngr, &(bandPolicy->immediateScanMethod), bandPolicy->band );
1462 while ( (channelIndex < pScanMngr->neighborAPsDiscoveryList[ bandPolicy->band ].numOfEntries) &&
1467 param.content.channelCapabilityReq.band = bandPolicy->band;
1468 if ( (bandPolicy->immediateScanMethod.scanType == SCAN_TYPE_NORMAL_PASSIVE) ||
1469 (bandPolicy->immediateScanMethod.scanType == SCAN_TYPE_TRIGGERED_PASSIVE) ||
1470 (bandPolicy->immediateScanMethod.scanType == SCAN_TYPE_SPS))
1479 pScanMngr->neighborAPsDiscoveryList[ bandPolicy->band ].APListPtr[ channelIndex ].channel;
1485 scanMngrAddNormalChannel( hScanMngr, &(bandPolicy->immediateScanMethod),
1486 pScanMngr->neighborAPsDiscoveryList[ bandPolicy->band ].APListPtr[ channelIndex ].channel,
1487 &(pScanMngr->neighborAPsDiscoveryList[ bandPolicy->band ].APListPtr[ channelIndex ].BSSID),
1504 while ( (channelIndex < bandPolicy->numOfChannles) &&
1509 param.content.channelCapabilityReq.band = bandPolicy->band;
1510 if ( (bandPolicy->immediateScanMethod.scanType == SCAN_TYPE_NORMAL_PASSIVE) ||
1511 (bandPolicy->immediateScanMethod.scanType == SCAN_TYPE_TRIGGERED_PASSIVE) ||
1512 (bandPolicy->immediateScanMethod.scanType == SCAN_TYPE_SPS))
1520 param.content.channelCapabilityReq.channelNum = bandPolicy->channelList[ channelIndex ];
1526 scanMngrAddNormalChannel( hScanMngr, &(bandPolicy->immediateScanMethod),
1527 bandPolicy->channelList[ channelIndex ],
1543 * \param bandPolicy - The scan policy for the band to track on.\n
1546 void scanMngrBuildTrackScanCommand( TI_HANDLE hScanMngr, TScanBandPolicy* bandPolicy, ERadioBand band )
1557 if ( (SCAN_TYPE_SPS == bandPolicy->trackingMethod.scanType) && (TI_TRUE == pScanMngr->bSynchronized))
1561 scanMngrBuildScanCommandHeader( hScanMngr, &(bandPolicy->trackingMethod), band );
1564 scanMngrAddSPSChannels( hScanMngr, &(bandPolicy->trackingMethod), band );
1570 if ( (SCAN_TYPE_SPS == bandPolicy->trackingMethod.scanType) && (TI_FALSE == pScanMngr->bSynchronized))
1573 scanMethod = &(bandPolicy->discoveryMethod);
1578 scanMethod = &(bandPolicy->trackingMethod);
1593 if ( bandPolicy->numOfChannles > MAX_BAND_POLICY_CHANNLES )
1596 "scanMngrBuildTrackScanCommand. bandPolicy->numOfChannles=%d exceeds the limit %d\n",
1597 bandPolicy->numOfChannles, MAX_BAND_POLICY_CHANNLES);
1633 if ( (SCAN_TYPE_SPS == bandPolicy->trackingMethod.scanType) && (TI_FALSE == pScanMngr->bSynchronized))
1679 TScanBandPolicy* bandPolicy;
1686 bandPolicy = scanMngrGetPolicyByBand( hScanMngr, band );
1691 bandPolicy = scanMngrGetPolicyByBand( hScanMngr, band );
1694 if( NULL == bandPolicy)
1701 scanMngrBuildScanCommandHeader( hScanMngr, &(bandPolicy->discoveryMethod), band );
1708 scanMngrAddNeighborAPsForDiscovery( hScanMngr, bandPolicy );
1718 if ( pScanMngr->scanParams.numOfChannels < bandPolicy->numOfChannlesForDiscovery )
1720 scanMngrAddChannelListForDiscovery( hScanMngr, bandPolicy );
1730 scanMngrAddNeighborAPsForDiscovery( hScanMngr, bandPolicy );
1740 if ( pScanMngr->scanParams.numOfChannels < bandPolicy->numOfChannlesForDiscovery )
1742 scanMngrAddChannelListForDiscovery( hScanMngr, bandPolicy );
1752 scanMngrAddChannelListForDiscovery( hScanMngr, bandPolicy );
1762 if ( pScanMngr->scanParams.numOfChannels < bandPolicy->numOfChannlesForDiscovery )
1764 scanMngrAddNeighborAPsForDiscovery( hScanMngr, bandPolicy );
1774 scanMngrAddChannelListForDiscovery( hScanMngr, bandPolicy );
1784 if ( pScanMngr->scanParams.numOfChannels < bandPolicy->numOfChannlesForDiscovery )
1786 scanMngrAddNeighborAPsForDiscovery( hScanMngr, bandPolicy );
1874 * \param bandPolicy - the scan policy for the band to use.\n
1876 void scanMngrAddNeighborAPsForDiscovery( TI_HANDLE hScanMngr, TScanBandPolicy* bandPolicy )
1883 if ( bandPolicy->band >= RADIO_BAND_NUM_OF_BANDS )
1886 "scanMngrAddNeighborAPsForDiscovery. bandPolicy->band=%d exceeds the limit %d\n",
1887 bandPolicy->band, RADIO_BAND_NUM_OF_BANDS-1);
1891 neighborAPIndex = pScanMngr->neighborAPsDiscoveryIndex[ bandPolicy->band ];
1893 while ( (pScanMngr->scanParams.numOfChannels < bandPolicy->numOfChannlesForDiscovery) &&
1895 (neighborAPIndex < pScanMngr->neighborAPsDiscoveryList[ bandPolicy->band ].numOfEntries))
1899 pScanMngr->neighborAPsDiscoveryList[ bandPolicy->band ].trackStatusList[ neighborAPIndex ] )
1903 param.content.channelCapabilityReq.band = bandPolicy->band;
1904 if ( (bandPolicy->discoveryMethod.scanType == SCAN_TYPE_NORMAL_PASSIVE) ||
1905 (bandPolicy->discoveryMethod.scanType == SCAN_TYPE_TRIGGERED_PASSIVE) ||
1906 (bandPolicy->discoveryMethod.scanType == SCAN_TYPE_SPS))
1915 pScanMngr->neighborAPsDiscoveryList[ bandPolicy->band ].APListPtr[ neighborAPIndex ].channel;
1921 scanMngrAddNormalChannel( hScanMngr, &(bandPolicy->discoveryMethod),
1922 pScanMngr->neighborAPsDiscoveryList[ bandPolicy->band ].APListPtr[ neighborAPIndex ].channel,
1923 &(pScanMngr->neighborAPsDiscoveryList[ bandPolicy->band ].APListPtr[ neighborAPIndex ].BSSID),
1931 if ( neighborAPIndex == pScanMngr->neighborAPsDiscoveryList[ bandPolicy->band ].numOfEntries )
1934 pScanMngr->neighborAPsDiscoveryIndex[ bandPolicy->band ] = 0;
1939 pScanMngr->neighborAPsDiscoveryIndex[ bandPolicy->band ] = neighborAPIndex;
1950 * \param bandPolicy - the scan policy for the band to use.\n
1952 void scanMngrAddChannelListForDiscovery( TI_HANDLE hScanMngr, TScanBandPolicy* bandPolicy )
1960 if ( bandPolicy->band >= RADIO_BAND_NUM_OF_BANDS )
1963 "scanMngrAddChannelListForDiscovery. bandPolicy->band=%d exceeds the limit %d\n",
1964 bandPolicy->band, RADIO_BAND_NUM_OF_BANDS-1);
1968 if ( bandPolicy->numOfChannles > MAX_BAND_POLICY_CHANNLES )
1971 "scanMngrAddChannelListForDiscovery. bandPolicy->numOfChannles=%d exceeds the limit %d\n",
1972 bandPolicy->numOfChannles, MAX_BAND_POLICY_CHANNLES);
1976 channelListIndex = pScanMngr->channelDiscoveryIndex[ bandPolicy->band ];
1985 while ( (pScanMngr->scanParams.numOfChannels < bandPolicy->numOfChannlesForDiscovery) &&
1987 (channelListIndex < bandPolicy->numOfChannles))
1991 param.content.channelCapabilityReq.band = bandPolicy->band;
1992 if ( (bandPolicy->discoveryMethod.scanType == SCAN_TYPE_NORMAL_PASSIVE) ||
1993 (bandPolicy->discoveryMethod.scanType == SCAN_TYPE_TRIGGERED_PASSIVE) ||
1994 (bandPolicy->discoveryMethod.scanType == SCAN_TYPE_SPS))
2003 bandPolicy->channelList[ channelListIndex ];
2009 scanMngrAddNormalChannel( hScanMngr, &(bandPolicy->discoveryMethod),
2010 bandPolicy->channelList[ channelListIndex ],
2018 if ( channelListIndex == bandPolicy->numOfChannles )
2021 pScanMngr->channelDiscoveryIndex[ bandPolicy->band ] = 0;
2026 pScanMngr->channelDiscoveryIndex[ bandPolicy->band ] = channelListIndex;
2778 TScanBandPolicy* bandPolicy = scanMngrGetPolicyByBand( hScanMngr, band );
2782 if ( NULL == bandPolicy )
2788 for ( i = 0; i < bandPolicy->numOfChannles; i++ )
2790 if ( bandPolicy->channelList[ i ] == channel )
3012 * \param bandPolicy - the band scan policy to print.\n
3014 void scanMngrTracePrintBandScanPolicy( TScanBandPolicy* bandPolicy )
3019 (RADIO_BAND_2_4_GHZ == bandPolicy->band ? "2.4 GHz (b/g)" : "5.0 GHz (a)")));
3021 bandPolicy->numOfChannlesForDiscovery));
3022 WLAN_OS_REPORT(("RSSI Threshold: %d\n", bandPolicy->rxRSSIThreshold));
3024 scanMngrTracePrintScanMethod( &(bandPolicy->trackingMethod));
3026 scanMngrTracePrintScanMethod( &(bandPolicy->discoveryMethod));
3028 scanMngrTracePrintScanMethod( &(bandPolicy->immediateScanMethod));
3030 if ( bandPolicy->numOfChannles > MAX_BAND_POLICY_CHANNLES )
3032 WLAN_OS_REPORT(("scanMngrTracePrintBandScanPolicy. bandPolicy->numOfChannles=%d exceeds the limit %d\n",
3033 bandPolicy->numOfChannles, MAX_BAND_POLICY_CHANNLES));
3038 for( i = 0; i < bandPolicy->numOfChannles; i++ )
3040 WLAN_OS_REPORT(("%d ", bandPolicy->channelList[ i ]));