Lines Matching refs:pParam

245 									paramInfo_t	*pParam)
250 switch(pParam->paramType)
257 if (NULL == pParam->content.pCountry)
268 setSupportedChannelsAccording2CountryIe(pRegulatoryDomain, pParam->content.pCountry, bBand_2_4);
279 TI_UINT8 uNewPowerConstraint = DBM2DBMDIV10(pParam->content.powerConstraint);
297 TI_UINT8 uNewTPC = DBM2DBMDIV10(pParam->content.ExternTxPowerPreferred);
313 regulatoryDomain_setChannelValidity(pRegulatoryDomain, pParam->content.channelValidity.channelNum,
314 pParam->content.channelValidity.channelValidity);
319 if(pRegulatoryDomain->uUserMaxTxPower != pParam->content.desiredTxPower)
321 pRegulatoryDomain->uUserMaxTxPower = pParam->content.desiredTxPower;
353 regulatoryDomain_updateChannelsTs(pRegulatoryDomain, pParam->content.channel);
358 TRACE1(pRegulatoryDomain->hReport, REPORT_SEVERITY_INFORMATION, "regulatoryDomain_setParam: temporary fix = %d, \n", pParam->content.bActivateTempPowerFix);
360 pRegulatoryDomain->bTemporaryTxPowerEnable = pParam->content.bActivateTempPowerFix;
367 TRACE1(pRegulatoryDomain->hReport, REPORT_SEVERITY_INFORMATION, "regulatoryDomain_setParam, REGULATORY_DOMAIN_ENABLE_DISABLE_802_11D = %d, \n", pParam->content.enableDisable_802_11d);
369 if ((pRegulatoryDomain->regulatoryDomainEnabled != pParam->content.enableDisable_802_11d) &&
370 !pParam->content.enableDisable_802_11d && pRegulatoryDomain->spectrumManagementEnabled)
376 pRegulatoryDomain->regulatoryDomainEnabled = pParam->content.enableDisable_802_11d;
390 TRACE1(pRegulatoryDomain->hReport, REPORT_SEVERITY_INFORMATION, "regulatoryDomain_setParam, REGULATORY_DOMAIN_ENABLE_DISABLE_802_11H = %d, \n", pParam->content.enableDisable_802_11h);
392 pRegulatoryDomain->spectrumManagementEnabled = pParam->content.enableDisable_802_11h;
393 if (pParam->content.enableDisable_802_11h)
402 TRACE1(pRegulatoryDomain->hReport, REPORT_SEVERITY_INFORMATION, "regulatoryDomain_setParam, REGULATORY_DOMAIN_COUNTRY_2_4_PARAM Len = %d, \n", pParam->paramLength);
404 TRACE_INFO_HEX(pRegulatoryDomain->hReport, (TI_UINT8*)pParam->content.pCountry, sizeof(TCountry));
406 return setSupportedChannelsAccording2CountryIe(pRegulatoryDomain, pParam->content.pCountry, TI_TRUE);
410 return setSupportedChannelsAccording2CountryIe(pRegulatoryDomain, pParam->content.pCountry, TI_FALSE);
414 TRACE2(pRegulatoryDomain->hReport, REPORT_SEVERITY_INFORMATION, "regulatoryDomain_setParam, DFS_CHANNELS_RANGE, min = %d, max = %d, \n", pParam->content.DFS_ChannelRange.minDFS_channelNum, pParam->content.DFS_ChannelRange.maxDFS_channelNum);
416 if ((pParam->content.DFS_ChannelRange.minDFS_channelNum<A_5G_BAND_MIN_CHANNEL) ||
417 (pParam->content.DFS_ChannelRange.maxDFS_channelNum>A_5G_BAND_MAX_CHANNEL) ||
418 pParam->content.DFS_ChannelRange.minDFS_channelNum > pParam->content.DFS_ChannelRange.maxDFS_channelNum)
420 TRACE2(pRegulatoryDomain->hReport, REPORT_SEVERITY_ERROR, "regulatoryDomain_setParam, Bad DFS_CHANNELS_RANGE, min = %d, max = %d, \n", pParam->content.DFS_ChannelRange.minDFS_channelNum, pParam->content.DFS_ChannelRange.maxDFS_channelNum);
423 pRegulatoryDomain->minDFS_channelNum = (TI_UINT8)pParam->content.DFS_ChannelRange.minDFS_channelNum;
424 pRegulatoryDomain->maxDFS_channelNum = (TI_UINT8)pParam->content.DFS_ChannelRange.maxDFS_channelNum;
429 TRACE1(pRegulatoryDomain->hReport, REPORT_SEVERITY_ERROR, "Set param, Params is not supported, %d\n\n", pParam->paramType);
437 paramInfo_t *pParam)
444 switch(pParam->paramType)
451 (void *)&pParam->content.powerLevelTable,
458 pParam->content.spectrumManagementEnabled = pRegulatoryDomain->spectrumManagementEnabled;
462 pParam->content.regulatoryDomainEnabled = pRegulatoryDomain->regulatoryDomainEnabled;
469 channelCapabilityReq.band = pParam->content.channelCapabilityReq.band;
470 channelCapabilityReq.channelNum = pParam->content.channelCapabilityReq.channelNum;
471 channelCapabilityReq.scanOption = pParam->content.channelCapabilityReq.scanOption;
473 regulatoryDomain_getChannelCapability(pRegulatoryDomain, channelCapabilityReq, &pParam->content.channelCapabilityRet);
481 regulatoryDomain_getPowerTableMinMax (pRegulatoryDomain, &pParam->content.powerCapability);
491 pParam->content.bIsChannelSupprted =
492 regulatoryDomain_isChannelSupprted(pRegulatoryDomain, pParam->content.channel);
498 ERadioBand band = pParam->content.siteMgrRadioBand;
499 regulatoryDomain_buildDefaultListOfChannelsPerBand(pRegulatoryDomain, band, &pParam->content.supportedChannels.sizeOfList);
500 pParam->content.supportedChannels.listOfChannels = pRegulatoryDomain->pDefaultChannels;
512 pParam->content.desiredTxPower = tparam.content.halCtrlTxPowerDbm;
514 TRACE1(pRegulatoryDomain->hReport, REPORT_SEVERITY_INFORMATION, "regulatoryDomain_getParam, CURRENT_TX_POWER_IN_DBM = %d\n", pParam->content.desiredTxPower);
528 pParam->content.pCountry = &pRegulatoryDomain->country24;
532 pParam->content.pCountry = NULL;
539 pParam->content.pCountry = &pRegulatoryDomain->country5;
543 pParam->content.pCountry = NULL;
554 os_memoryCopy(pRegulatoryDomain->hOs, (void*)pParam->content.pCountryString, (void*)pRegulatoryDomain->country24.countryIE.CountryString, DOT11_COUNTRY_STRING_LEN);
558 pParam->content.pCountryString[0] = '\0';
567 os_memoryCopy(pRegulatoryDomain->hOs, (void*)pParam->content.pCountryString, (void*)pRegulatoryDomain->country5.countryIE.CountryString, DOT11_COUNTRY_STRING_LEN);
571 pParam->content.pCountryString[0] = '\0';
577 pParam->content.DFS_ChannelRange.minDFS_channelNum = pRegulatoryDomain->minDFS_channelNum;
578 pParam->content.DFS_ChannelRange.maxDFS_channelNum = pRegulatoryDomain->maxDFS_channelNum;
584 pParam->content.bIsCountryFound =
585 regulatoryDomain_isCountryFound(pRegulatoryDomain, pParam->content.eRadioBand);
592 (RADIO_BAND_5_0_GHZ == pParam->content.tDfsChannel.eBand) && /* band is 5 GHz */
593 (pRegulatoryDomain->minDFS_channelNum <= pParam->content.tDfsChannel.uChannel) && /* channel is within DFS range */
594 (pRegulatoryDomain->maxDFS_channelNum >= pParam->content.tDfsChannel.uChannel))
596 pParam->content.tDfsChannel.bDfsChannel = TI_TRUE;
600 pParam->content.tDfsChannel.bDfsChannel = TI_FALSE;
623 pParam->content.uTimeToCountryExpiryMs = 0;
633 pParam->content.uTimeToCountryExpiryMs = 0;
637 pParam->content.uTimeToCountryExpiryMs =
644 pParam->content.uTimeToCountryExpiryMs = 0;
649 TRACE1(pRegulatoryDomain->hReport, REPORT_SEVERITY_WARNING, "Get param, Params is not supported, %d\n\n", pParam->paramType);
1113 paramInfo_t *pParam;
1171 pParam = (paramInfo_t *)os_memoryAlloc(pRegulatoryDomain->hOs, sizeof(paramInfo_t));
1172 if (!pParam)
1181 pParam->paramType = SITE_MGR_CURRENT_CHANNEL_PARAM;
1182 siteMgr_getParam(pRegulatoryDomain->hSiteMgr, pParam);
1184 bServingChannel = ( pParam->content.siteMgrCurrentChannel == channelCapabilityReq.channelNum ?
1191 os_memoryFree(pRegulatoryDomain->hOs, pParam, sizeof(paramInfo_t));
1282 paramInfo_t *pParam;
1287 pParam = (paramInfo_t *)os_memoryAlloc(pRegulatoryDomain->hOs, sizeof(paramInfo_t));
1288 if (!pParam)
1292 pParam->paramType = SITE_MGR_CURRENT_CHANNEL_PARAM;
1293 eStatus = siteMgr_getParam(pRegulatoryDomain->hSiteMgr, pParam);
1299 os_memoryFree(pRegulatoryDomain->hOs, pParam, sizeof(paramInfo_t));
1303 uCurrChannel = pParam->content.siteMgrCurrentChannel;
1306 pParam->paramType = SITE_MGR_RADIO_BAND_PARAM;
1307 siteMgr_getParam(pRegulatoryDomain->hSiteMgr, pParam);
1311 pParam->content.siteMgrRadioBand, TI_TRUE);
1312 os_memoryFree(pRegulatoryDomain->hOs, pParam, sizeof(paramInfo_t));
1350 paramInfo_t *pParam;
1356 pParam = (paramInfo_t *)os_memoryAlloc(pRegulatoryDomain->hOs, sizeof(paramInfo_t));
1357 if (!pParam)
1360 pParam->paramType = SITE_MGR_CURRENT_SSID_PARAM;
1361 connStatus = siteMgr_getParam(pRegulatoryDomain->hSiteMgr, pParam);
1377 os_memoryFree(pRegulatoryDomain->hOs, pParam, sizeof(paramInfo_t));