Lines Matching refs:pParam
142 paramInfo_t *pParam;
149 pParam = (paramInfo_t *)os_memoryAlloc(pCmdInterpret->hOs, sizeof(paramInfo_t));
150 if (!pParam)
168 pParam->paramType = SITE_MGR_DESIRED_CHANNEL_PARAM;
169 pParam->paramLength = sizeof(TI_UINT32);
170 pParam->content.siteMgrDesiredChannel = wrqu->freq.m;
172 res = cmdDispatch_SetParam (pCmdInterpret->hCmdDispatch, pParam);
173 CHECK_PENDING_RESULT(res,pParam)
181 pParam->paramType = SITE_MGR_CURRENT_CHANNEL_PARAM;
182 pParam->paramLength = sizeof(TI_UINT32);
184 res = cmdDispatch_GetParam (pCmdInterpret->hCmdDispatch, pParam);
188 CHECK_PENDING_RESULT(res,pParam)
192 wrqu->freq.m = pParam->content.siteMgrCurrentChannel;
202 pParam->paramType = SME_DESIRED_BSS_TYPE_PARAM;
203 pParam->paramLength = sizeof(ScanBssType_e);
208 pParam->content.smeDesiredBSSType = BSS_ANY;
211 pParam->content.smeDesiredBSSType = BSS_INDEPENDENT;
214 pParam->content.smeDesiredBSSType = BSS_INFRASTRUCTURE;
221 res = cmdDispatch_SetParam(pCmdInterpret->hCmdDispatch, pParam);
222 CHECK_PENDING_RESULT(res,pParam)
225 pParam->paramType = SITE_MGR_DESIRED_BSS_TYPE_PARAM;
226 res = cmdDispatch_SetParam(pCmdInterpret->hCmdDispatch, pParam);
227 CHECK_PENDING_RESULT(res,pParam)
235 pParam->paramType = SME_DESIRED_BSS_TYPE_PARAM;
236 pParam->paramLength = sizeof(ScanBssType_e);
237 res = cmdDispatch_GetParam(pCmdInterpret->hCmdDispatch, pParam);
238 CHECK_PENDING_RESULT(res,pParam)
240 switch (pParam->content.smeDesiredBSSType)
262 pParam->paramType = ROAMING_MNGR_APPLICATION_CONFIGURATION;
263 pParam->paramLength = sizeof (roamingMngrConfigParams_t);
264 res = cmdDispatch_GetParam(pCmdInterpret->hCmdDispatch, pParam);
266 CHECK_PENDING_RESULT(res,pParam)
269 pParam->content.roamingConfigBuffer.roamingMngrThresholdsConfig.lowRssiThreshold = wrqu->param.value;
272 res = cmdDispatch_SetParam(pCmdInterpret->hCmdDispatch, pParam);
274 CHECK_PENDING_RESULT(res,pParam)
282 pParam->paramType = ROAMING_MNGR_APPLICATION_CONFIGURATION;
283 pParam->paramLength = sizeof (roamingMngrConfigParams_t);
284 res = cmdDispatch_GetParam(pCmdInterpret->hCmdDispatch, pParam);
286 CHECK_PENDING_RESULT(res,pParam)
290 wrqu->param.value = pParam->content.roamingConfigBuffer.roamingMngrThresholdsConfig.lowRssiThreshold;
333 pParam->paramType = SITE_MGR_DESIRED_SUPPORTED_RATE_SET_PARAM;
334 res = cmdDispatch_GetParam (pCmdInterpret->hCmdDispatch, pParam );
336 CHECK_PENDING_RESULT(res,pParam)
339 range->num_bitrates = pParam->content.siteMgrDesiredSupportedRateSet.len;
340 for (i=0; i<pParam->content.siteMgrDesiredSupportedRateSet.len; i++)
342 range->bitrate[i] = ((pParam->content.siteMgrDesiredSupportedRateSet.ratesString[i] & 0x7F) * 500000);
388 pParam->paramType = SITE_MGR_RADIO_BAND_PARAM;
389 res = cmdDispatch_GetParam( pCmdInterpret->hCmdDispatch, pParam );
391 CHECK_PENDING_RESULT(res,pParam)
393 /* pParam->content.siteMgrRadioBand contains the current band, now get list of supported channels */
394 pParam->paramType = REGULATORY_DOMAIN_ALL_SUPPORTED_CHANNELS;
395 res = cmdDispatch_GetParam( pCmdInterpret->hCmdDispatch, pParam );
397 CHECK_PENDING_RESULT(res,pParam)
399 range->num_channels = pParam->content.supportedChannels.sizeOfList; /* Number of channels [0; num - 1] */
400 range->num_frequency = pParam->content.supportedChannels.sizeOfList; /* Number of entry in the list */
402 for (i=0; i<pParam->content.supportedChannels.sizeOfList; i++)
406 range->freq[i].i = pParam->content.supportedChannels.listOfChannels[i]+1;
441 MAC_COPY (pParam->content.siteMgrDesiredBSSID, "\xff\xff\xff\xff\xff\xff");
445 MAC_COPY (pParam->content.siteMgrDesiredBSSID, wrqu->ap_addr.sa_data);
448 pParam->paramType = SITE_MGR_DESIRED_BSSID_PARAM;
449 res = cmdDispatch_SetParam ( pCmdInterpret->hCmdDispatch, pParam );
450 CHECK_PENDING_RESULT(res,pParam)
453 pParam->paramType = SME_DESIRED_BSSID_PARAM;
454 res = cmdDispatch_SetParam ( pCmdInterpret->hCmdDispatch, pParam );
455 CHECK_PENDING_RESULT(res,pParam)
465 pParam->paramType = SITE_MGR_CURRENT_BSSID_PARAM;
466 res = cmdDispatch_GetParam ( pCmdInterpret->hCmdDispatch, pParam );
468 CHECK_PENDING_RESULT(res,pParam)
478 MAC_COPY (wrqu->ap_addr.sa_data, pParam->content.siteMgrDesiredBSSID);
490 pParam->paramType = SITE_MGR_DESIRED_SSID_PARAM;
494 pParam->content.siteMgrDesiredSSID.str[i] = (i+1);
495 pParam->content.siteMgrDesiredSSID.len = MAX_SSID_LEN;
501 res = cmdDispatch_SetParam (pCmdInterpret->hCmdDispatch, pParam );
502 CHECK_PENDING_RESULT(res,pParam)
504 pParam->paramType = SME_DESIRED_SSID_ACT_PARAM;
505 res = cmdDispatch_SetParam (pCmdInterpret->hCmdDispatch, pParam );
506 CHECK_PENDING_RESULT(res,pParam)
529 pParam->content.tScanDesiredSSID.len = scanReq.essid_len;
530 os_memoryCopy(pCmdInterpret->hOs, pParam->content.tScanDesiredSSID.str, scanReq.essid, scanReq.essid_len);
534 pParam->content.tScanDesiredSSID.len = 0;
537 pParam->paramType = SCAN_CNCN_BSSID_LIST_SCAN_PARAM;
538 pParam->paramLength = sizeof(pParam->content.tScanDesiredSSID);
539 res = cmdDispatch_SetParam (pCmdInterpret->hCmdDispatch, pParam );
540 CHECK_PENDING_RESULT(res,pParam)
568 pParam->paramType = SCAN_CNCN_BSSID_LIST_SIZE_PARAM;
569 pParam->paramLength = 0;
570 res = cmdDispatch_GetParam (pCmdInterpret->hCmdDispatch, pParam );
571 CHECK_PENDING_RESULT(res,pParam)
573 allocated_size = pParam->content.uBssidListSize;
583 pParam->paramType = SCAN_CNCN_BSSID_LIST_PARAM;
584 pParam->content.pBssidList = my_list;
585 pParam->paramLength = allocated_size;
586 res = cmdDispatch_GetParam (pCmdInterpret->hCmdDispatch, pParam );
587 CHECK_PENDING_RESULT(res,pParam)
773 os_memoryZero (pCmdInterpret->hOs, &pParam->content.siteMgrDesiredSSID.str, MAX_SSID_LEN);
775 pParam->content.siteMgrCurrentSSID.len = 0;
780 os_memoryCopy(pCmdInterpret->hOs, &pParam->content.siteMgrCurrentSSID.str, "\00", 1);
781 pParam->content.siteMgrCurrentSSID.len = 0;;
791 os_memoryCopy(pCmdInterpret->hOs, &pParam->content.siteMgrCurrentSSID.str, cmdObj->buffer2, length);
792 pParam->content.siteMgrCurrentSSID.len = length;
795 pParam->paramType = SITE_MGR_DESIRED_SSID_PARAM;
796 pParam->paramLength = sizeof (TSsid);
797 res = cmdDispatch_SetParam (pCmdInterpret->hCmdDispatch, pParam );
798 CHECK_PENDING_RESULT(res,pParam)
800 pParam->paramType = SME_DESIRED_SSID_ACT_PARAM;
801 res = cmdDispatch_SetParam (pCmdInterpret->hCmdDispatch, pParam );
802 CHECK_PENDING_RESULT(res,pParam)
811 pParam->paramType = SITE_MGR_CURRENT_SSID_PARAM;
812 res = cmdDispatch_GetParam ( pCmdInterpret->hCmdDispatch, pParam );
816 CHECK_PENDING_RESULT(res,pParam)
820 os_memoryCopy(pCmdInterpret->hOs, cmdObj->buffer2, &pParam->content.siteMgrCurrentSSID.str, pParam
822 if (pParam->content.siteMgrCurrentSSID.len < MAX_SSID_LEN)
824 extra[pParam->content.siteMgrCurrentSSID.len] = 0;
826 wrqu->essid.length = pParam->content.siteMgrCurrentSSID.len;
860 pParam->paramType = TWD_RTS_THRESHOLD_PARAM;
863 pParam->content.halCtrlRtsThreshold = TWD_RTS_THRESHOLD_DEF;
865 pParam->content.halCtrlRtsThreshold = wrqu->rts.value;
867 res = cmdDispatch_SetParam (pCmdInterpret->hCmdDispatch,pParam);
868 CHECK_PENDING_RESULT(res,pParam)
875 pParam->paramType = TWD_RTS_THRESHOLD_PARAM;
876 res = cmdDispatch_GetParam (pCmdInterpret->hCmdDispatch,pParam);
878 CHECK_PENDING_RESULT(res,pParam)
880 wrqu->rts.value = pParam->content.halCtrlRtsThreshold;
889 pParam->paramType = TWD_FRAG_THRESHOLD_PARAM;
890 pParam->content.halCtrlFragThreshold = ((wrqu->frag.value+1)>>1) << 1; /* make it always even */
892 res = cmdDispatch_SetParam(pCmdInterpret->hCmdDispatch, pParam);
893 CHECK_PENDING_RESULT(res,pParam)
901 pParam->paramType = TWD_FRAG_THRESHOLD_PARAM;
902 res = cmdDispatch_GetParam (pCmdInterpret->hCmdDispatch,pParam);
904 CHECK_PENDING_RESULT(res,pParam)
906 wrqu->rts.value = pParam->content.halCtrlFragThreshold;
920 pParam->paramType = REGULATORY_DOMAIN_CURRENT_TX_POWER_LEVEL_PARAM;
921 pParam->content.desiredTxPower = wrqu->txpower.value;
922 res = cmdDispatch_SetParam (pCmdInterpret->hCmdDispatch,pParam);
923 CHECK_PENDING_RESULT(res,pParam)
930 pParam->paramType = REGULATORY_DOMAIN_CURRENT_TX_POWER_IN_DBM_PARAM;
931 res = cmdDispatch_GetParam (pCmdInterpret->hCmdDispatch,pParam);
933 CHECK_PENDING_RESULT(res,pParam)
938 wrqu->txpower.value = pParam->content.desiredTxPower;
955 pParam->paramType = RSN_DEFAULT_KEY_ID;
956 res = cmdDispatch_GetParam (pCmdInterpret->hCmdDispatch,pParam);
957 CHECK_PENDING_RESULT(res,pParam)
958 index = pParam->content.rsnDefaultKeyID;
961 pParam->paramType = RSN_ADD_KEY_PARAM;
965 pParam->paramType = RSN_REMOVE_KEY_PARAM;
968 pParam->content.rsnOsKey.KeyIndex = index;
972 os_memoryCopy(pCmdInterpret->hOs, &pParam->content.rsnOsKey.KeyMaterial, cmdObj->buffer2, wrqu->data.length);
973 pParam->content.rsnOsKey.KeyLength = wrqu->data.length;
977 pParam->paramType = RSN_DEFAULT_KEY_ID;
978 pParam->content.rsnDefaultKeyID = index;
981 res = cmdDispatch_SetParam (pCmdInterpret->hCmdDispatch, pParam);
982 CHECK_PENDING_RESULT(res,pParam)
1004 pParam->paramType = RSN_DEFAULT_KEY_ID;
1005 res = cmdDispatch_GetParam (pCmdInterpret->hCmdDispatch,pParam);
1006 CHECK_PENDING_RESULT(res,pParam)
1007 index = pParam->content.rsnDefaultKeyID;
1011 pParam->content.pRsnKey = &myKeyInfo;
1013 pParam->paramType = RSN_KEY_PARAM;
1014 pParam->content.pRsnKey->keyIndex = index;
1015 res = cmdDispatch_GetParam (pCmdInterpret->hCmdDispatch,pParam);
1016 CHECK_PENDING_RESULT(res,pParam)
1018 if ((pParam->content.pRsnKey) && (pParam->content.pRsnKey->encLen))
1021 wrqu->data.length = pParam->content.pRsnKey->encLen;
1022 os_memoryCopy(pCmdInterpret->hOs,extra, &pParam->content.pRsnKey->encKey,wrqu->data.length);
1135 MAC_COPY (pParam->content.rsnOsKey.BSSID, addr);
1137 pParam->content.rsnOsKey.KeyLength = ext->key_len;
1139 pParam->content.rsnOsKey.KeyIndex = wrqu->encoding.flags & IW_ENCODE_INDEX;
1140 pParam->content.rsnOsKey.KeyIndex -= 1;
1144 pParam->content.rsnOsKey.KeyIndex |= TIWLAN_KEY_FLAGS_TRANSMIT;
1149 pParam->content.rsnOsKey.KeyIndex |= TIWLAN_KEY_FLAGS_PAIRWISE;
1154 os_memoryCopy(pCmdInterpret->hOs, &pParam->content.rsnOsKey.KeyRSC, &ext->rx_seq, IW_ENCODE_SEQ_MAX_SIZE);
1155 pParam->content.rsnOsKey.KeyIndex |= TIWLAN_KEY_FLAGS_SET_KEY_RSC;
1164 os_memoryCopy(pCmdInterpret->hOs, &pParam->content.rsnOsKey.KeyMaterial, &temp, ext->key_len);
1167 os_memoryCopy(pCmdInterpret->hOs, &pParam->content.rsnOsKey.KeyMaterial, &ext->key, ext->key_len);
1171 pParam->paramType = RSN_REMOVE_KEY_PARAM;
1173 pParam->paramType = RSN_ADD_KEY_PARAM;
1175 res = cmdDispatch_SetParam (pCmdInterpret->hCmdDispatch, pParam);
1176 CHECK_PENDING_RESULT(res,pParam)
1189 pParam->paramType = RSN_PMKID_LIST;
1190 pParam->content.rsnPMKIDList.BSSIDInfoCount = 1;
1191 pParam->content.rsnPMKIDList.Length = 2*sizeof(TI_UINT32) + MAC_ADDR_LEN + PMKID_VALUE_SIZE;
1192 MAC_COPY (pParam->content.rsnPMKIDList.osBSSIDInfo[0].BSSID, pmksa->bssid.sa_data);
1193 os_memoryCopy(pCmdInterpret->hOs, &pParam->content.rsnPMKIDList.osBSSIDInfo[0].PMKID, pmksa->pmkid, IW_PMKID_LEN);
1195 res = cmdDispatch_SetParam (pCmdInterpret->hCmdDispatch, pParam);
1196 CHECK_PENDING_RESULT(res,pParam)
1203 pParam->paramType = RSN_PMKID_LIST;
1206 pParam->content.rsnPMKIDList.BSSIDInfoCount = 0;
1207 res = cmdDispatch_SetParam (pCmdInterpret->hCmdDispatch, pParam);
1208 CHECK_PENDING_RESULT(res,pParam)
1229 pParam->paramType = my_command->cmd;
1234 pParam->content.interogateCmdCBParams.hCb = (TI_HANDLE)pCmdInterpret;
1235 pParam->content.interogateCmdCBParams.fCb = (void*)cmdInterpret_ServiceCompleteCB;
1236 pParam->content.interogateCmdCBParams.pCb = my_command->out_buffer;
1251 *(void **)&pParam->content = os_memoryAlloc(pCmdInterpret->hOs, my_command->in_buffer_len);
1252 os_memoryCopy(pCmdInterpret->hOs, *(void **)&pParam->content, my_command->in_buffer, my_command->in_buffer_len);
1255 os_memoryCopy(pCmdInterpret->hOs,&pParam->content,my_command->in_buffer,my_command->in_buffer_len);
1261 pParam->paramLength = my_command->in_buffer_len;
1262 res = cmdDispatch_SetParam (pCmdInterpret->hCmdDispatch,pParam);
1267 pParam->paramLength = my_command->out_buffer_len;
1268 res = cmdDispatch_GetParam (pCmdInterpret->hCmdDispatch,pParam);
1279 if(pParam->paramLength && (my_command->out_buffer_len == 0))
1281 my_command->out_buffer_len = pParam->paramLength;
1302 os_memoryCopy(pCmdInterpret->hOs,my_command->out_buffer,*(void **)&pParam->content,my_command->out_buffer_len);
1306 os_memoryCopy(pCmdInterpret->hOs,my_command->out_buffer,&pParam->content,my_command->out_buffer_len);
1315 os_memoryFree(pCmdInterpret->hOs, *(void **)&pParam->content, my_command->in_buffer_len);
1331 os_memoryFree(pCmdInterpret->hOs, pParam, sizeof(paramInfo_t));
1431 paramInfo_t *pParam;
1433 pParam = (paramInfo_t *)os_memoryAlloc(pCmdInterpret->hOs, sizeof(paramInfo_t));
1434 if (!pParam)
1441 pParam->paramType = CTRL_DATA_CURRENT_BSS_TYPE_PARAM;
1442 cmdDispatch_GetParam(pCmdInterpret->hCmdDispatch, pParam);
1443 if (pParam->content.ctrlDataCurrentBssType == BSS_INFRASTRUCTURE)
1447 pParam->paramType = ASSOC_ASSOCIATION_INFORMATION_PARAM;
1448 pParam->paramLength = 0;
1449 res = cmdDispatch_GetParam(pCmdInterpret->hCmdDispatch, pParam);
1453 TotalLength = sizeof(OS_802_11_ASSOCIATION_INFORMATION) + pParam->content.assocAssociationInformation.RequestIELength +
1454 pParam->content.assocAssociationInformation.ResponseIELength;
1460 pParam->paramType = ASSOC_ASSOCIATION_INFORMATION_PARAM;
1461 pParam->paramLength = TotalLength;
1462 cmdDispatch_GetParam(pCmdInterpret->hCmdDispatch, pParam);
1464 os_memoryCopy(pCmdInterpret->hOs, memptr, &pParam->content, TotalLength);
1502 pParam->paramType = SITE_MGR_GET_SELECTED_BSSID_INFO_EX;
1503 pParam->content.pSiteMgrSelectedSiteInfo = my_current;
1504 pParam->paramLength = MAX_BEACON_BODY_LENGTH;
1505 cmdDispatch_GetParam(pCmdInterpret->hCmdDispatch, pParam);
1507 len = pParam->content.pSiteMgrSelectedSiteInfo->IELength - BEACON_HEADER_FIX_SIZE;
1512 n += sprintf(beaconIE + n, "%02x", pParam->content.pSiteMgrSelectedSiteInfo->IEs[BEACON_HEADER_FIX_SIZE+i] & 0xff);
1527 pParam->paramType = ASSOC_ASSOCIATION_RESP_PARAM;
1528 pParam->paramLength = sizeof(TAssocReqBuffer);
1529 cmdDispatch_GetParam(pCmdInterpret->hCmdDispatch, pParam);
1537 memcpy(cckm_assoc.assocRespBuffer,(pParam->content.assocReqBuffer.buffer)+ASSOC_RESP_FIXED_DATA_LEN,cckm_assoc.assocRespLen);
1546 pParam->paramType = SITE_MGR_CURRENT_BSSID_PARAM;
1547 cmdDispatch_GetParam ( pCmdInterpret->hCmdDispatch, pParam );
1548 MAC_COPY (wrqu.ap_addr.sa_data, pParam->content.siteMgrDesiredBSSID);
1554 os_memoryFree(pCmdInterpret->hOs, pParam, sizeof(paramInfo_t));
1691 paramInfo_t *pParam;
1701 pParam = (paramInfo_t *)os_memoryAlloc(pCmdInterpret->hOs, sizeof(paramInfo_t));
1702 if (!pParam)
1759 pParam->paramType = RSN_EXT_AUTHENTICATION_MODE;
1760 pParam->content.rsnExtAuthneticationMode = auth_mode;
1761 cmdDispatch_SetParam ( pCmdInterpret->hCmdDispatch, pParam );
1763 pParam->paramType = RSN_ENCRYPTION_STATUS_PARAM;
1764 pParam->content.rsnEncryptionStatus = encr_mode;
1765 cmdDispatch_SetParam ( pCmdInterpret->hCmdDispatch, pParam );
1766 os_memoryFree(pCmdInterpret->hOs, pParam, sizeof(paramInfo_t));