1 /******************************************************************************* 2 **+--------------------------------------------------------------------------+** 3 **| |** 4 **| Copyright 1998-2008 Texas Instruments, Inc. - http://www.ti.com/ |** 5 **| |** 6 **| Licensed under the Apache License, Version 2.0 (the "License"); |** 7 **| you may not use this file except in compliance with the License. |** 8 **| You may obtain a copy of the License at |** 9 **| |** 10 **| http://www.apache.org/licenses/LICENSE-2.0 |** 11 **| |** 12 **| Unless required by applicable law or agreed to in writing, software |** 13 **| distributed under the License is distributed on an "AS IS" BASIS, |** 14 **| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |** 15 **| See the License for the specific language governing permissions and |** 16 **| limitations under the License. |** 17 **| |** 18 **+--------------------------------------------------------------------------+** 19 *******************************************************************************/ 20 21 //-------------------------------------------------------------------------- 22 // Module: TI_AdapterApi.cpp 23 // 24 // Purpose: C interface implementation 25 // 26 //-------------------------------------------------------------------------- 27 28 #include "CommonAdapter.h" 29 #ifdef _WINDOWS 30 #endif 31 32 tiBOOL TI_CheckAdapterObject(void *pObj); 33 34 /********************************************************************/ 35 tiINT32 36 TI_GetStatistics(TI_HANDLE hAdapter, TIWLN_STATISTICS* pStatistics) 37 { 38 if ( !TI_CheckAdapterObject(hAdapter) ) 39 return TI_RESULT_FAILED; 40 return ((TI_WLAN_AdapterAPI *) hAdapter)->GetStatistics(pStatistics); 41 } 42 /********************************************************************/ 43 tiINT32 44 TI_GetTxStatistics(TI_HANDLE hAdapter, TIWLN_TX_STATISTICS* pTxStatistics, UINT32 clearStatsFlag) 45 { 46 if ( !TI_CheckAdapterObject(hAdapter) ) 47 return TI_RESULT_FAILED; 48 return ((TI_WLAN_AdapterAPI *) hAdapter)->GetTxStatistics(pTxStatistics, clearStatsFlag); 49 } 50 /********************************************************************/ 51 tiINT32 52 TI_EnableDisableRxDataFilters(TI_HANDLE hAdapter, tiBOOL enabled) 53 { 54 if ( !TI_CheckAdapterObject(hAdapter) ) 55 return TI_RESULT_FAILED; 56 return ((TI_WLAN_AdapterAPI *) hAdapter)->EnableDisableRxDataFilters(enabled); 57 } 58 /********************************************************************/ 59 tiINT32 60 TI_GetRxDataFiltersStatistics(TI_HANDLE hAdapter, TIWLAN_DATA_FILTER_STATISTICS * pStatistics) 61 { 62 if ( !TI_CheckAdapterObject(hAdapter) ) 63 return TI_RESULT_FAILED; 64 return ((TI_WLAN_AdapterAPI *) hAdapter)->GetRxDataFiltersStatistics(pStatistics); 65 } 66 /********************************************************************/ 67 tiINT32 68 TI_GetPowerConsumptionStatistics(TI_HANDLE hAdapter, PowerConsumptionTimeStat_t * pStatistics) 69 { 70 if ( !TI_CheckAdapterObject(hAdapter) ) 71 return TI_RESULT_FAILED; 72 return ((TI_WLAN_AdapterAPI *) hAdapter)->GetPowerConsumptionStatistics(pStatistics); 73 74 } 75 /********************************************************************/ 76 tiINT32 77 TI_AddRxDataFilter(TI_HANDLE hAdapter, TIWLAN_DATA_FILTER_REQUEST * pRequest) 78 { 79 if ( !TI_CheckAdapterObject(hAdapter) ) 80 return TI_RESULT_FAILED; 81 return ((TI_WLAN_AdapterAPI *) hAdapter)->AddRxDataFilter(pRequest); 82 } 83 /********************************************************************/ 84 tiINT32 85 TI_RemoveRxDataFilter(TI_HANDLE hAdapter, TIWLAN_DATA_FILTER_REQUEST * pRequest) 86 { 87 if ( !TI_CheckAdapterObject(hAdapter) ) 88 return TI_RESULT_FAILED; 89 return ((TI_WLAN_AdapterAPI *) hAdapter)->RemoveRxDataFilter(pRequest); 90 } 91 /********************************************************************/ 92 //returns RSSI 93 tiINT32 94 TI_GetRSSI(TI_HANDLE hAdapter, tiINT32* pRssi) 95 { 96 if ( !TI_CheckAdapterObject(hAdapter) ) 97 return TI_RESULT_FAILED; 98 return ((TI_WLAN_AdapterAPI *) hAdapter)->GetRSSI(pRssi); 99 } 100 101 102 /********************************************************************/ 103 //returns SNR 104 tiINT32 105 TI_GetSNR(TI_HANDLE hAdapter, tiUINT32* pSnr) 106 { 107 if ( !TI_CheckAdapterObject(hAdapter) ) 108 return TI_RESULT_FAILED; 109 return ((TI_WLAN_AdapterAPI *) hAdapter)->GetSNR(pSnr); 110 } 111 112 /********************************************************************/ 113 tiINT32 114 TI_SetDTagToAcMappingTable(TI_HANDLE hAdapter, acTrfcType_e* pDtagToAcTable ) 115 { 116 if ( !TI_CheckAdapterObject(hAdapter) ) 117 return TI_RESULT_FAILED; 118 return ((TI_WLAN_AdapterAPI *) hAdapter)->SetDTagToAcMappingTable(pDtagToAcTable); 119 } 120 121 /********************************************************************/ 122 tiINT32 123 TI_SetVAD(TI_HANDLE hAdapter, txDataVadTimerParams_t* pVadTimer ) 124 { 125 if ( !TI_CheckAdapterObject(hAdapter) ) 126 return TI_RESULT_FAILED; 127 return ((TI_WLAN_AdapterAPI *) hAdapter)->SetVAD(pVadTimer); 128 } 129 130 /********************************************************************/ 131 tiINT32 132 TI_GetVAD(TI_HANDLE hAdapter, txDataVadTimerParams_t* pVadTimer ) 133 { 134 if ( !TI_CheckAdapterObject(hAdapter) ) 135 return TI_RESULT_FAILED; 136 return ((TI_WLAN_AdapterAPI *) hAdapter)->GetVAD(pVadTimer); 137 } 138 139 /********************************************************************/ 140 tiINT32 141 TI_SetQosParameters(TI_HANDLE hAdapter, OS_802_11_QOS_PARAMS* pQosParams ) 142 { 143 if ( !TI_CheckAdapterObject(hAdapter) ) 144 return TI_RESULT_FAILED; 145 return ((TI_WLAN_AdapterAPI *) hAdapter)->SetQosParameters(pQosParams); 146 } 147 148 /********************************************************************/ 149 tiINT32 150 TI_SetQosRxTimeOut(TI_HANDLE hAdapter, OS_802_11_QOS_RX_TIMEOUT_PARAMS* pRxTimeOut ) 151 { 152 if ( !TI_CheckAdapterObject(hAdapter) ) 153 return TI_RESULT_FAILED; 154 return ((TI_WLAN_AdapterAPI *) hAdapter)->SetRxTimeOut(pRxTimeOut); 155 } 156 157 /********************************************************************/ 158 tiINT32 159 TI_GetAPQosParameters(TI_HANDLE hAdapter, OS_802_11_AC_QOS_PARAMS* pACQosParams) 160 { 161 if ( !TI_CheckAdapterObject(hAdapter) ) 162 return TI_RESULT_FAILED; 163 return ((TI_WLAN_AdapterAPI *) hAdapter)->GetAPQosParameters(pACQosParams); 164 } 165 /********************************************************************/ 166 tiINT32 167 TI_GetAPQosCapabilitesParameters(TI_HANDLE hAdapter, OS_802_11_AP_QOS_CAPABILITIES_PARAMS* pAPQosCapabiltiesParams) 168 { 169 if ( !TI_CheckAdapterObject(hAdapter) ) 170 return TI_RESULT_FAILED; 171 return ((TI_WLAN_AdapterAPI *) hAdapter)->GetAPQosCapabilitesParameters(pAPQosCapabiltiesParams); 172 } 173 /********************************************************************/ 174 tiINT32 175 TI_AddTspec (TI_HANDLE hAdapter, OS_802_11_QOS_TSPEC_PARAMS* pTspecParams) 176 { 177 if ( !TI_CheckAdapterObject(hAdapter) ) 178 return TI_RESULT_FAILED; 179 return ((TI_WLAN_AdapterAPI *) hAdapter)->AddTspec(pTspecParams); 180 } 181 /********************************************************************/ 182 tiINT32 183 TI_GetTspecParameters(TI_HANDLE hAdapter, OS_802_11_QOS_TSPEC_PARAMS* pTspecParams) 184 { 185 if ( !TI_CheckAdapterObject(hAdapter) ) 186 return TI_RESULT_FAILED; 187 return ((TI_WLAN_AdapterAPI *) hAdapter)->GetTspecParameters(pTspecParams); 188 } 189 /********************************************************************/ 190 tiINT32 191 TI_DeleteTspec(TI_HANDLE hAdapter, OS_802_11_QOS_DELETE_TSPEC_PARAMS* pDelTspecParams) 192 { 193 if ( !TI_CheckAdapterObject(hAdapter) ) 194 return TI_RESULT_FAILED; 195 return ((TI_WLAN_AdapterAPI *) hAdapter)->DeleteTspec(pDelTspecParams); 196 } 197 /********************************************************************/ 198 tiINT32 199 TI_GetCurrentACStatus(TI_HANDLE hAdapter, OS_802_11_AC_UPSD_STATUS_PARAMS *pAcStatusParams) 200 { 201 if ( !TI_CheckAdapterObject(hAdapter) ) 202 return TI_RESULT_FAILED; 203 return ((TI_WLAN_AdapterAPI *) hAdapter)->GetCurrentACStatus(pAcStatusParams); 204 } 205 /********************************************************************/ 206 tiINT32 207 TI_SetMediumUsageThreshold(TI_HANDLE hAdapter, OS_802_11_THRESHOLD_CROSS_PARAMS* pThresholdCrossParams) 208 { 209 if ( !TI_CheckAdapterObject(hAdapter) ) 210 return TI_RESULT_FAILED; 211 return ((TI_WLAN_AdapterAPI *) hAdapter)->SetMediumUsageThreshold(pThresholdCrossParams); 212 } 213 /********************************************************************/ 214 tiINT32 215 TI_SetPhyRateThreshold(TI_HANDLE hAdapter, OS_802_11_THRESHOLD_CROSS_PARAMS* pThresholdCrossParams) 216 { 217 if ( !TI_CheckAdapterObject(hAdapter) ) 218 return TI_RESULT_FAILED; 219 return ((TI_WLAN_AdapterAPI *) hAdapter)->SetPhyRateThreshold(pThresholdCrossParams); 220 } 221 /********************************************************************/ 222 tiINT32 223 TI_GetMediumUsageThreshold(TI_HANDLE hAdapter, OS_802_11_THRESHOLD_CROSS_PARAMS* pThresholdCrossParams) 224 { 225 if ( !TI_CheckAdapterObject(hAdapter) ) 226 return TI_RESULT_FAILED; 227 return ((TI_WLAN_AdapterAPI *) hAdapter)->GetMediumUsageThreshold(pThresholdCrossParams); 228 } 229 /********************************************************************/ 230 tiINT32 231 TI_GetPhyRateThreshold(TI_HANDLE hAdapter, OS_802_11_THRESHOLD_CROSS_PARAMS* pThresholdCrossParams) 232 { 233 if ( !TI_CheckAdapterObject(hAdapter) ) 234 return TI_RESULT_FAILED; 235 return ((TI_WLAN_AdapterAPI *) hAdapter)->GetPhyRateThreshold(pThresholdCrossParams); 236 } 237 /********************************************************************/ 238 tiINT32 239 TI_PollApPackets(TI_HANDLE hAdapter) 240 { 241 if ( !TI_CheckAdapterObject(hAdapter) ) 242 return TI_RESULT_FAILED; 243 return ((TI_WLAN_AdapterAPI *) hAdapter)->PollApPackets(); 244 } 245 /********************************************************************/ 246 tiINT32 247 TI_PollApPacketsFromAC(TI_HANDLE hAdapter, tiUINT32 AC) 248 { 249 if ( !TI_CheckAdapterObject(hAdapter) ) 250 return TI_RESULT_FAILED; 251 return ((TI_WLAN_AdapterAPI *) hAdapter)->PollApPacketsFromAC(AC); 252 } 253 /********************************************************************/ 254 tiINT32 255 TI_SetTrafficIntensityThresholds (TI_HANDLE hAdapter, OS_802_11_TRAFFIC_INTENSITY_THRESHOLD_PARAMS* pTrafficThresholds) 256 { 257 if ( !TI_CheckAdapterObject(hAdapter) ) 258 return TI_RESULT_FAILED; 259 return ((TI_WLAN_AdapterAPI *) hAdapter)->SetTrafficIntensityThresholds(pTrafficThresholds); 260 } 261 /********************************************************************/ 262 tiINT32 263 TI_GetTrafficIntensityThresholds (TI_HANDLE hAdapter, OS_802_11_TRAFFIC_INTENSITY_THRESHOLD_PARAMS* pTrafficThresholds) 264 { 265 if ( !TI_CheckAdapterObject(hAdapter) ) 266 return TI_RESULT_FAILED; 267 return ((TI_WLAN_AdapterAPI *) hAdapter)->GetTrafficIntensityThresholds(pTrafficThresholds); 268 } 269 /********************************************************************/ 270 tiINT32 271 TI_ToggleTrafficIntensityEvents (TI_HANDLE hAdapter, tiUINT32 NewStatus ) 272 { 273 if ( !TI_CheckAdapterObject(hAdapter) ) 274 return TI_RESULT_FAILED; 275 return ((TI_WLAN_AdapterAPI *) hAdapter)->ToggleTrafficIntensityEvents(NewStatus); 276 } 277 /********************************************************************/ 278 tiINT32 279 TI_GetBSSIDList(TI_HANDLE hAdapter, OS_802_11_BSSID_LIST_EX** ppBSSIDlist) 280 { 281 if ( !TI_CheckAdapterObject(hAdapter) ) 282 return TI_RESULT_FAILED; 283 return ((TI_WLAN_AdapterAPI *) hAdapter)->GetBSSIDList(ppBSSIDlist); 284 } 285 /********************************************************************/ 286 tiINT32 287 TI_GetFullBSSIDList(TI_HANDLE hAdapter, OS_802_11_BSSID_LIST_EX** ppBSSIDlist) 288 { 289 if ( !TI_CheckAdapterObject(hAdapter) ) 290 return TI_RESULT_FAILED; 291 return ((TI_WLAN_AdapterAPI *) hAdapter)->GetFullBSSIDList(ppBSSIDlist); 292 } 293 294 /********************************************************************/ 295 tiINT32 296 TI_GetCurrentSSID(TI_HANDLE hAdapter, OS_802_11_SSID* pSSID) 297 { 298 if ( !TI_CheckAdapterObject(hAdapter) ) 299 return TI_RESULT_FAILED; 300 return ((TI_WLAN_AdapterAPI *) hAdapter)->GetCurrentSSID(pSSID); 301 } 302 /********************************************************************/ 303 tiINT32 304 TI_GetCurrentRate(TI_HANDLE hAdapter, tiUINT32* puCurrentRate) 305 { 306 if ( !TI_CheckAdapterObject(hAdapter) ) 307 return TI_RESULT_FAILED; 308 return ((TI_WLAN_AdapterAPI *) hAdapter)->GetCurrentRate(puCurrentRate); 309 } 310 /********************************************************************/ 311 tiINT32 312 TI_GetCurrentAddress(TI_HANDLE hAdapter, OS_802_11_MAC_ADDRESS* pCurrentAddr) 313 { 314 if ( !TI_CheckAdapterObject(hAdapter) ) 315 return TI_RESULT_FAILED; 316 return ((TI_WLAN_AdapterAPI *) hAdapter)->GetCurrentAddress(pCurrentAddr); 317 } 318 /********************************************************************/ 319 tiINT32 320 TI_GetDesiredSSID(TI_HANDLE hAdapter, OS_802_11_SSID* pSSID) 321 { 322 if ( !TI_CheckAdapterObject(hAdapter) ) 323 return TI_RESULT_FAILED; 324 return ((TI_WLAN_AdapterAPI *) hAdapter)->GetDesiredSSID(pSSID); 325 } 326 /********************************************************************/ 327 tiINT32 328 TI_SetSSID(TI_HANDLE hAdapter, tiUINT8* pSSIDname) 329 { 330 if ( !TI_CheckAdapterObject(hAdapter) ) 331 return TI_RESULT_FAILED; 332 return ((TI_WLAN_AdapterAPI *) hAdapter)->SetSSID(pSSIDname); 333 } 334 /********************************************************************/ 335 tiINT32 336 TI_SetBSSType(TI_HANDLE hAdapter, OS_802_11_NETWORK_MODE uBSSType) 337 { 338 if ( !TI_CheckAdapterObject(hAdapter) ) 339 return TI_RESULT_FAILED; 340 return ((TI_WLAN_AdapterAPI *) hAdapter)->SetBSSType(uBSSType); 341 } 342 /********************************************************************/ 343 tiINT32 344 TI_GetBSSType(TI_HANDLE hAdapter, OS_802_11_NETWORK_MODE* puBSSType) 345 { 346 if ( !TI_CheckAdapterObject(hAdapter) ) 347 return TI_RESULT_FAILED; 348 return ((TI_WLAN_AdapterAPI *) hAdapter)->GetBSSType(puBSSType); 349 } 350 /********************************************************************/ 351 tiINT32 352 TI_SetEAPType(TI_HANDLE hAdapter, OS_802_11_EAP_TYPES uEAPType) 353 { 354 if ( !TI_CheckAdapterObject(hAdapter) ) 355 return TI_RESULT_FAILED; 356 return ((TI_WLAN_AdapterAPI *) hAdapter)->SetEAPType(uEAPType); 357 } 358 359 /********************************************************************/ 360 tiINT32 361 TI_SetEAPTypeDriver(TI_HANDLE hAdapter, OS_802_11_EAP_TYPES uEAPType) 362 { 363 if ( !TI_CheckAdapterObject(hAdapter) ) 364 return TI_RESULT_FAILED; 365 return ((TI_WLAN_AdapterAPI *) hAdapter)->SetEAPTypeDriver(uEAPType); 366 } 367 368 /********************************************************************/ 369 tiINT32 370 TI_GetEAPType(TI_HANDLE hAdapter, OS_802_11_EAP_TYPES* puEAPType) 371 { 372 if ( !TI_CheckAdapterObject(hAdapter) ) 373 return TI_RESULT_FAILED; 374 return ((TI_WLAN_AdapterAPI *) hAdapter)->GetEAPType(puEAPType); 375 } 376 377 /********************************************************************/ 378 tiINT32 379 TI_SetEncryptionType(TI_HANDLE hAdapter, OS_802_11_ENCRYPTION_TYPES uEncryptType) 380 { 381 if ( !TI_CheckAdapterObject(hAdapter) ) 382 return TI_RESULT_FAILED; 383 return ((TI_WLAN_AdapterAPI *) hAdapter)->SetEncryptionType(uEncryptType); 384 } 385 /********************************************************************/ 386 tiINT32 387 TI_GetEncryptionType(TI_HANDLE hAdapter, OS_802_11_ENCRYPTION_TYPES* puEncryptType) 388 { 389 if ( !TI_CheckAdapterObject(hAdapter) ) 390 return TI_RESULT_FAILED; 391 return ((TI_WLAN_AdapterAPI *) hAdapter)->GetEncryptionType(puEncryptType); 392 } 393 /********************************************************************/ 394 tiINT32 395 TI_SetCredentials(TI_HANDLE hAdapter, tiCHAR* pszUserName, tiCHAR* pszPassword ) 396 { 397 if ( !TI_CheckAdapterObject(hAdapter) ) 398 return TI_RESULT_FAILED; 399 return ((TI_WLAN_AdapterAPI *) hAdapter)->SetCredentials( pszUserName, pszPassword ); 400 } 401 /******************************************************************** 402 Sets the PSK password phrase for WPA encryption. 403 Parameters: 404 hAdapter - The handle to the Adapter object returned 405 by TI_AdapterInit 406 pszPSK - A null-terminated string that contains the 407 PSK password phrase 408 ********************************************************************/ 409 tiINT32 410 TI_SetPSK(TI_HANDLE hAdapter, tiCHAR* pszPSK ) 411 { 412 if ( !TI_CheckAdapterObject(hAdapter) ) 413 return TI_RESULT_FAILED; 414 return ((TI_WLAN_AdapterAPI *) hAdapter)->SetPSK( pszPSK); 415 } 416 417 /********************************************************************/ 418 tiINT32 419 TI_SetCertificateParameters(TI_HANDLE hAdapter, tiVOID* pData, tiBOOL bValidateServerCert ) 420 { 421 if ( !TI_CheckAdapterObject(hAdapter) ) 422 return TI_RESULT_FAILED; 423 #ifdef _WINDOWS 424 #else 425 return ((TI_WLAN_AdapterAPI *) hAdapter)->SetCertParamsFileName((tiCHAR*) pData, bValidateServerCert); 426 #endif 427 } 428 /********************************************************************/ 429 tiINT32 430 TI_SetTxPowerDbm(TI_HANDLE hAdapter, tiUINT8 uTxPower) 431 { 432 if ( !TI_CheckAdapterObject(hAdapter) ) 433 return TI_RESULT_FAILED; 434 return ((TI_WLAN_AdapterAPI *) hAdapter)->SetTxPowerDbm(uTxPower); 435 } 436 /********************************************************************/ 437 tiINT32 438 TI_GetTxPowerLevel(TI_HANDLE hAdapter, tiCHAR* puTxPower) 439 { 440 if ( !TI_CheckAdapterObject(hAdapter) ) 441 return TI_RESULT_FAILED; 442 return ((TI_WLAN_AdapterAPI *) hAdapter)->GetTxPowerLevel(puTxPower); 443 } 444 445 /********************************************************************/ 446 tiINT32 447 TI_GetTxPowerDbm(TI_HANDLE hAdapter, tiCHAR* puTxPower) 448 { 449 if ( !TI_CheckAdapterObject(hAdapter) ) 450 return TI_RESULT_FAILED; 451 return ((TI_WLAN_AdapterAPI *) hAdapter)->GetTxPowerDbm(puTxPower); 452 } 453 454 /********************************************************************/ 455 tiINT32 456 TI_Set4XState(TI_HANDLE hAdapter, tiBOOL bStatus) 457 { 458 if ( !TI_CheckAdapterObject(hAdapter) ) 459 return TI_RESULT_FAILED; 460 return ((TI_WLAN_AdapterAPI *) hAdapter)->Set4XState(bStatus); 461 } 462 /********************************************************************/ 463 tiINT32 464 TI_Get4XState(TI_HANDLE hAdapter, tiBOOL* pbStatus) 465 { 466 if ( !TI_CheckAdapterObject(hAdapter) ) 467 return TI_RESULT_FAILED; 468 return ((TI_WLAN_AdapterAPI *) hAdapter)->Get4XState(pbStatus); 469 } 470 471 /********************************************************************/ 472 tiINT32 473 TI_GetDesiredRate(TI_HANDLE hAdapter, tiUINT32* puDesiredRates) 474 { 475 if ( !TI_CheckAdapterObject(hAdapter) ) 476 return TI_RESULT_FAILED; 477 return ((TI_WLAN_AdapterAPI *) hAdapter)->GetDesiredRate(puDesiredRates); 478 } 479 /********************************************************************/ 480 tiINT32 481 TI_SetFragmentThreshold(TI_HANDLE hAdapter, tiUINT32 uFragmentThreshold) 482 { 483 if ( !TI_CheckAdapterObject(hAdapter) ) 484 return TI_RESULT_FAILED; 485 return ((TI_WLAN_AdapterAPI *) hAdapter)->SetFragmentThreshold(uFragmentThreshold); 486 } 487 /********************************************************************/ 488 tiINT32 489 TI_GetFragmentThreshold(TI_HANDLE hAdapter, tiUINT32* puFragmentThreshold) 490 { 491 if ( !TI_CheckAdapterObject(hAdapter) ) 492 return TI_RESULT_FAILED; 493 return ((TI_WLAN_AdapterAPI *) hAdapter)->GetFragmentThreshold(puFragmentThreshold); 494 } 495 /********************************************************************/ 496 tiINT32 497 TI_SetRTSThreshold(TI_HANDLE hAdapter, tiUINT32 uRTSThreshold) 498 { 499 if ( !TI_CheckAdapterObject(hAdapter) ) 500 return TI_RESULT_FAILED; 501 return ((TI_WLAN_AdapterAPI *) hAdapter)->SetRTSThreshold(uRTSThreshold); 502 } 503 /********************************************************************/ 504 tiINT32 505 TI_GetRTSThreshold(TI_HANDLE hAdapter, tiUINT32* puRTSThreshold) 506 { 507 if ( !TI_CheckAdapterObject(hAdapter) ) 508 return TI_RESULT_FAILED; 509 return ((TI_WLAN_AdapterAPI *) hAdapter)->GetRTSThreshold(puRTSThreshold); 510 } 511 /********************************************************************/ 512 tiINT32 513 TI_SetShortPreamble(TI_HANDLE hAdapter, tiUINT32 uShortPreamble) 514 { 515 if ( !TI_CheckAdapterObject(hAdapter) ) 516 return TI_RESULT_FAILED; 517 return ((TI_WLAN_AdapterAPI *) hAdapter)->SetShortPreamble(uShortPreamble); 518 } 519 /********************************************************************/ 520 tiINT32 521 TI_GetShortPreamble(TI_HANDLE hAdapter, tiUINT32* puShortPreamble) 522 { 523 if ( !TI_CheckAdapterObject(hAdapter) ) 524 return TI_RESULT_FAILED; 525 return ((TI_WLAN_AdapterAPI *) hAdapter)->GetShortPreamble(puShortPreamble); 526 } 527 /********************************************************************/ 528 tiINT32 529 TI_SetShortRetry(TI_HANDLE hAdapter,tiUINT32 uShortRetry) 530 { 531 if ( !TI_CheckAdapterObject(hAdapter) ) 532 return TI_RESULT_FAILED; 533 return ((TI_WLAN_AdapterAPI *) hAdapter)->SetShortRetry(uShortRetry); 534 } 535 /********************************************************************/ 536 tiINT32 537 TI_GetShortRetry(TI_HANDLE hAdapter, tiUINT32* puShortRetry ) 538 { 539 if ( !TI_CheckAdapterObject(hAdapter) ) 540 return TI_RESULT_FAILED; 541 return ((TI_WLAN_AdapterAPI *) hAdapter)->GetShortRetry(puShortRetry); 542 } 543 /********************************************************************/ 544 tiINT32 545 TI_SetLongRetry(TI_HANDLE hAdapter, tiUINT32 uLongRetry) 546 { 547 if ( !TI_CheckAdapterObject(hAdapter) ) 548 return TI_RESULT_FAILED; 549 return ((TI_WLAN_AdapterAPI *) hAdapter)->SetLongRetry(uLongRetry); 550 } 551 /********************************************************************/ 552 tiINT32 553 TI_GetLongRetry(TI_HANDLE hAdapter, tiUINT32* puLongRetry) 554 { 555 if ( !TI_CheckAdapterObject(hAdapter) ) 556 return TI_RESULT_FAILED; 557 return ((TI_WLAN_AdapterAPI *) hAdapter)->GetLongRetry(puLongRetry); 558 } 559 /********************************************************************/ 560 tiINT32 561 TI_GetSupportedNetworkTypes(TI_HANDLE hAdapter, OS_802_11_NETWORK_TYPE* pNetTypeLst, tiUINT32 uMaxNetTypes) 562 { 563 if ( !TI_CheckAdapterObject(hAdapter) ) 564 return TI_RESULT_FAILED; 565 return ((TI_WLAN_AdapterAPI *) hAdapter)->GetSupportedNetworkTypes(pNetTypeLst, uMaxNetTypes); 566 } 567 /********************************************************************/ 568 tiINT32 569 TI_SetNetworkTypeInUse(TI_HANDLE hAdapter, OS_802_11_NETWORK_TYPE uNetType) 570 { 571 if ( !TI_CheckAdapterObject(hAdapter) ) 572 return TI_RESULT_FAILED; 573 return ((TI_WLAN_AdapterAPI *) hAdapter)->SetNetworkTypeInUse(uNetType); 574 } 575 /********************************************************************/ 576 tiINT32 577 TI_GetNetworkTypeInUse(TI_HANDLE hAdapter, OS_802_11_NETWORK_TYPE* puNetType) 578 { 579 if ( !TI_CheckAdapterObject(hAdapter) ) 580 return TI_RESULT_FAILED; 581 return ((TI_WLAN_AdapterAPI *) hAdapter)->GetNetworkTypeInUse(puNetType); 582 } 583 /********************************************************************/ 584 tiINT32 585 TI_SetKeyType(TI_HANDLE hAdapter, OS_802_11_KEY_TYPES uKeyType ) 586 { 587 if ( !TI_CheckAdapterObject(hAdapter) ) 588 return TI_RESULT_FAILED; 589 return ((TI_WLAN_AdapterAPI *) hAdapter)->SetKeyType(uKeyType); 590 } 591 /********************************************************************/ 592 tiINT32 593 TI_SetMixedMode(TI_HANDLE hAdapter,tiBOOL bStatus) 594 { 595 if ( !TI_CheckAdapterObject(hAdapter) ) 596 return TI_RESULT_FAILED; 597 return ((TI_WLAN_AdapterAPI *) hAdapter)->SetMixedMode(bStatus); 598 } 599 /********************************************************************/ 600 tiINT32 601 TI_GetMixedMode(TI_HANDLE hAdapter, tiBOOL* pbStatus) 602 { 603 if ( !TI_CheckAdapterObject(hAdapter) ) 604 return TI_RESULT_FAILED; 605 return ((TI_WLAN_AdapterAPI *) hAdapter)->GetMixedMode(pbStatus); 606 } 607 /********************************************************************/ 608 tiINT32 609 TI_GetBSSID(TI_HANDLE hAdapter,OS_802_11_MAC_ADDRESS* pAddrBSSID) 610 { 611 if ( !TI_CheckAdapterObject(hAdapter) ) 612 return TI_RESULT_FAILED; 613 return ((TI_WLAN_AdapterAPI *) hAdapter)->GetBSSID(pAddrBSSID); 614 } 615 /********************************************************************/ 616 tiINT32 617 TI_SetBSSID(TI_HANDLE hAdapter,OS_802_11_MAC_ADDRESS* pAddrBSSID) 618 { 619 if ( !TI_CheckAdapterObject(hAdapter) ) 620 return TI_RESULT_FAILED; 621 return ((TI_WLAN_AdapterAPI *) hAdapter)->SetBSSID(pAddrBSSID); 622 } 623 624 /********************************************************************/ 625 tiINT32 626 TI_SetRSSITrigger(TI_HANDLE hAdapter,tiBOOL bRSSItr) 627 { 628 if ( !TI_CheckAdapterObject(hAdapter) ) 629 return TI_RESULT_FAILED; 630 return ((TI_WLAN_AdapterAPI *) hAdapter)->SetRSSITrigger(bRSSItr); 631 } 632 /********************************************************************/ 633 tiINT32 634 TI_GetRSSITrigger(TI_HANDLE hAdapter, tiBOOL* pbRSSItr) 635 { 636 if ( !TI_CheckAdapterObject(hAdapter) ) 637 return TI_RESULT_FAILED; 638 return ((TI_WLAN_AdapterAPI *) hAdapter)->GetRSSITrigger(pbRSSItr); 639 } 640 /********************************************************************/ 641 tiINT32 642 TI_SetAntennaDiversityParams( TI_HANDLE hAdapter, PTIWLAN_ANT_DIVERSITY pAntennaDiversityOptions ) 643 { 644 if ( !TI_CheckAdapterObject(hAdapter) ) 645 return TI_RESULT_FAILED; 646 return ((TI_WLAN_AdapterAPI *) hAdapter)->SetAntennaDiversityParams(pAntennaDiversityOptions); 647 } 648 /********************************************************************/ 649 tiINT32 650 TI_SetWEPStatus(TI_HANDLE hAdapter, tiUINT32 uWEPStatus) 651 { 652 if ( !TI_CheckAdapterObject(hAdapter) ) 653 return TI_RESULT_FAILED; 654 return ((TI_WLAN_AdapterAPI *) hAdapter)->SetWEPStatus(uWEPStatus); 655 } 656 /********************************************************************/ 657 tiINT32 658 TI_GetWEPStatus(TI_HANDLE hAdapter,tiUINT32* puWEPStatus) 659 { 660 if ( !TI_CheckAdapterObject(hAdapter) ) 661 return TI_RESULT_FAILED; 662 return ((TI_WLAN_AdapterAPI *) hAdapter)->GetWEPStatus(puWEPStatus); 663 } 664 /********************************************************************/ 665 tiINT32 666 TI_SetDesiredChannel(TI_HANDLE hAdapter,tiUINT32 uDesiredChannel) 667 { 668 if ( !TI_CheckAdapterObject(hAdapter) ) 669 return TI_RESULT_FAILED; 670 return ((TI_WLAN_AdapterAPI *) hAdapter)->SetDesiredChannel(uDesiredChannel); 671 } 672 /********************************************************************/ 673 tiINT32 674 TI_GetDesiredChannel(TI_HANDLE hAdapter,tiUINT32* puDesiredChannel) 675 { 676 if ( !TI_CheckAdapterObject(hAdapter) ) 677 return TI_RESULT_FAILED; 678 return ((TI_WLAN_AdapterAPI *) hAdapter)->GetDesiredChannel(puDesiredChannel); 679 } 680 /********************************************************************/ 681 tiINT32 682 TI_GetCurrentChannel(TI_HANDLE hAdapter, tiUINT32* puCurrentChannel ) 683 { 684 if ( !TI_CheckAdapterObject(hAdapter) ) 685 return TI_RESULT_FAILED; 686 return ((TI_WLAN_AdapterAPI *) hAdapter)->GetCurrentChannel(puCurrentChannel); 687 } 688 /********************************************************************/ 689 tiINT32 690 TI_SetSupportedRates(TI_HANDLE hAdapter, tiUINT8* pSupportedRatesLst, tiUINT32 uBufLength) 691 { 692 if ( !TI_CheckAdapterObject(hAdapter) ) 693 return TI_RESULT_FAILED; 694 return ((TI_WLAN_AdapterAPI *) hAdapter)->SetSupportedRates(pSupportedRatesLst, uBufLength); 695 } 696 /********************************************************************/ 697 tiINT32 698 TI_GetSupportedRates(TI_HANDLE hAdapter, tiUINT8* pSupportedRatesLst, tiUINT32 uBufLength ) 699 { 700 if ( !TI_CheckAdapterObject(hAdapter) ) 701 return TI_RESULT_FAILED; 702 return ((TI_WLAN_AdapterAPI *) hAdapter)->GetSupportedRates(pSupportedRatesLst, uBufLength); 703 } 704 /********************************************************************/ 705 tiINT32 706 TI_SetConfiguration(TI_HANDLE hAdapter, OS_802_11_CONFIGURATION* pConfiguration) 707 { 708 if ( !TI_CheckAdapterObject(hAdapter) ) 709 return TI_RESULT_FAILED; 710 return ((TI_WLAN_AdapterAPI *) hAdapter)->SetConfiguration(pConfiguration); 711 } 712 /********************************************************************/ 713 tiINT32 714 TI_GetConfiguration(TI_HANDLE hAdapter, OS_802_11_CONFIGURATION* pConfiguration) 715 { 716 if ( !TI_CheckAdapterObject(hAdapter) ) 717 return TI_RESULT_FAILED; 718 return ((TI_WLAN_AdapterAPI *) hAdapter)->GetConfiguration(pConfiguration); 719 } 720 /********************************************************************/ 721 tiINT32 722 TI_SetAuthenticationMode(TI_HANDLE hAdapter, OS_802_11_AUTHENTICATION_MODE uAuthenticationMode) 723 { 724 if ( !TI_CheckAdapterObject(hAdapter) ) 725 return TI_RESULT_FAILED; 726 return ((TI_WLAN_AdapterAPI *) hAdapter)->SetAuthenticationMode(uAuthenticationMode); 727 } 728 /********************************************************************/ 729 tiINT32 730 TI_GetAuthenticationMode(TI_HANDLE hAdapter, OS_802_11_AUTHENTICATION_MODE* puAuthenticationMode) 731 { 732 if ( !TI_CheckAdapterObject(hAdapter) ) 733 return TI_RESULT_FAILED; 734 return ((TI_WLAN_AdapterAPI *) hAdapter)->GetAuthenticationMode(puAuthenticationMode); 735 } 736 /********************************************************************/ 737 tiINT32 738 TI_SetPrivacyFilter(TI_HANDLE hAdapter, tiUINT32 uPrivacyFilter) 739 { 740 if ( !TI_CheckAdapterObject(hAdapter) ) 741 return TI_RESULT_FAILED; 742 return ((TI_WLAN_AdapterAPI *) hAdapter)->SetPrivacyFilter(uPrivacyFilter); 743 } 744 /********************************************************************/ 745 tiINT32 746 TI_GetPrivacyFilter(TI_HANDLE hAdapter, tiUINT32* puPrivacyFilter) 747 { 748 if ( !TI_CheckAdapterObject(hAdapter) ) 749 return TI_RESULT_FAILED; 750 return ((TI_WLAN_AdapterAPI *) hAdapter)->GetPrivacyFilter(puPrivacyFilter); 751 } 752 753 /********************************************************************/ 754 tiINT32 755 TI_EnableDisable_802_11d(TI_HANDLE hAdapter, tiUINT8 enableDisable_802_11d) 756 { 757 if ( !TI_CheckAdapterObject(hAdapter) ) 758 return TI_RESULT_FAILED; 759 return ((TI_WLAN_AdapterAPI *) hAdapter)->EnableDisable_802_11d(enableDisable_802_11d); 760 } 761 /********************************************************************/ 762 tiINT32 763 TI_Get_802_11d(TI_HANDLE hAdapter, tiUINT8 *enableDisable_802_11d) 764 { 765 if ( !TI_CheckAdapterObject(hAdapter) ) 766 return TI_RESULT_FAILED; 767 return ((TI_WLAN_AdapterAPI *) hAdapter)->Get_802_11d(enableDisable_802_11d); 768 } 769 770 /********************************************************************/ 771 tiINT32 772 TI_EnableDisable_802_11h(TI_HANDLE hAdapter, tiUINT8 enableDisable_802_11h) 773 { 774 if ( !TI_CheckAdapterObject(hAdapter) ) 775 return TI_RESULT_FAILED; 776 return ((TI_WLAN_AdapterAPI *) hAdapter)->EnableDisable_802_11h(enableDisable_802_11h); 777 } 778 779 /********************************************************************/ 780 tiINT32 781 TI_Get_802_11h(TI_HANDLE hAdapter, tiUINT8 *enableDisable_802_11h) 782 { 783 if ( !TI_CheckAdapterObject(hAdapter) ) 784 return TI_RESULT_FAILED; 785 return ((TI_WLAN_AdapterAPI *) hAdapter)->Get_802_11h(enableDisable_802_11h); 786 } 787 788 /********************************************************************/ 789 tiINT32 790 TI_Set_countryIeFor2_4_Ghz(TI_HANDLE hAdapter, country_t countryIe) 791 { 792 if ( !TI_CheckAdapterObject(hAdapter) ) 793 return TI_RESULT_FAILED; 794 return ((TI_WLAN_AdapterAPI *) hAdapter)->Set_countryIeFor2_4_Ghz(countryIe); 795 } 796 797 /********************************************************************/ 798 tiINT32 799 TI_Get_countryIeFor2_4_Ghz(TI_HANDLE hAdapter, tiUINT8 **countryString) 800 { 801 if ( !TI_CheckAdapterObject(hAdapter) ) 802 return TI_RESULT_FAILED; 803 return ((TI_WLAN_AdapterAPI *) hAdapter)->Get_countryIeFor2_4_Ghz(countryString); 804 } 805 806 /********************************************************************/ 807 tiINT32 808 TI_Set_countryIeFor5_Ghz(TI_HANDLE hAdapter, country_t countryIe) 809 { 810 if ( !TI_CheckAdapterObject(hAdapter) ) 811 return TI_RESULT_FAILED; 812 return ((TI_WLAN_AdapterAPI *) hAdapter)->Set_countryIeFor5_Ghz(countryIe); 813 } 814 815 /********************************************************************/ 816 tiINT32 817 TI_Get_countryIeFor5_Ghz(TI_HANDLE hAdapter, tiUINT8 **countryString) 818 { 819 if ( !TI_CheckAdapterObject(hAdapter) ) 820 return TI_RESULT_FAILED; 821 return ((TI_WLAN_AdapterAPI *) hAdapter)->Get_countryIeFor5_Ghz(countryString); 822 } 823 824 /********************************************************************/ 825 tiINT32 826 TI_Set_minMaxDfsChannels(TI_HANDLE hAdapter, DFS_ChannelRange_t DFS_ChannelRange) 827 { 828 if ( !TI_CheckAdapterObject(hAdapter) ) 829 return TI_RESULT_FAILED; 830 return ((TI_WLAN_AdapterAPI *) hAdapter)->Set_minMaxDfsChannels(DFS_ChannelRange); 831 } 832 833 /********************************************************************/ 834 tiINT32 835 TI_Get_minMaxDfsChannels(TI_HANDLE hAdapter, DFS_ChannelRange_t *DFS_ChannelRange) 836 { 837 if ( !TI_CheckAdapterObject(hAdapter) ) 838 return TI_RESULT_FAILED; 839 return ((TI_WLAN_AdapterAPI *) hAdapter)->Get_minMaxDfsChannels(DFS_ChannelRange); 840 } 841 842 /********************************************************************/ 843 tiINT32 844 TI_GetDriverState(TI_HANDLE hAdapter, driverState_e* puDriverState ) 845 { 846 if ( !TI_CheckAdapterObject(hAdapter) ) 847 return TI_RESULT_FAILED; 848 return ((TI_WLAN_AdapterAPI *) hAdapter)->GetDriverState(puDriverState); 849 } 850 /********************************************************************/ 851 tiINT32 852 TI_SetIBSSProtection(TI_HANDLE hAdapter, tiUINT32 uProtection ) 853 { 854 if ( !TI_CheckAdapterObject(hAdapter) ) 855 return TI_RESULT_FAILED; 856 return ((TI_WLAN_AdapterAPI *) hAdapter)->SetIBSSProtection(uProtection); 857 } 858 /********************************************************************/ 859 tiINT32 860 TI_GetIBSSProtection(TI_HANDLE hAdapter, tiUINT32* puProtection) 861 { 862 if ( !TI_CheckAdapterObject(hAdapter) ) 863 return TI_RESULT_FAILED; 864 return ((TI_WLAN_AdapterAPI *) hAdapter)->GetIBSSProtection(puProtection); 865 } 866 /********************************************************************/ 867 tiINT32 868 TI_SetShortSlot(TI_HANDLE hAdapter, tiUINT32 uShortSlot) 869 { 870 if ( !TI_CheckAdapterObject(hAdapter) ) 871 return TI_RESULT_FAILED; 872 return ((TI_WLAN_AdapterAPI *) hAdapter)->SetShortSlot(uShortSlot); 873 } 874 /********************************************************************/ 875 tiINT32 876 TI_GetShortSlot(TI_HANDLE hAdapter, tiUINT32* puShortSlot) 877 { 878 if ( !TI_CheckAdapterObject(hAdapter) ) 879 return TI_RESULT_FAILED; 880 return ((TI_WLAN_AdapterAPI *) hAdapter)->GetShortSlot(puShortSlot); 881 } 882 /********************************************************************/ 883 tiINT32 884 TI_SetExtRatesIE(TI_HANDLE hAdapter, tiUINT32 uExtRatesIE) 885 { 886 if ( !TI_CheckAdapterObject(hAdapter) ) 887 return TI_RESULT_FAILED; 888 return ((TI_WLAN_AdapterAPI *) hAdapter)->SetExtRatesIE(uExtRatesIE); 889 } 890 /********************************************************************/ 891 tiINT32 892 TI_SetEarlyWakeupMode(TI_HANDLE hAdapter, tiUINT8 uEarlyWakeup) 893 { 894 if ( !TI_CheckAdapterObject(hAdapter) ) 895 return TI_RESULT_FAILED; 896 return ((TI_WLAN_AdapterAPI *) hAdapter)->SetEarlyWakeupMode(uEarlyWakeup); 897 } 898 /********************************************************************/ 899 tiINT32 900 TI_GetEarlyWakeupMode(TI_HANDLE hAdapter, tiUINT8* uEarlyWakeup) 901 { 902 if ( !TI_CheckAdapterObject(hAdapter) ) 903 return TI_RESULT_FAILED; 904 return ((TI_WLAN_AdapterAPI *) hAdapter)->GetEarlyWakeupMode(uEarlyWakeup); 905 } 906 /********************************************************************/ 907 tiINT32 908 TI_GetExtRatesIE(TI_HANDLE hAdapter, tiUINT32* puExtRatesIE) 909 { 910 if ( !TI_CheckAdapterObject(hAdapter) ) 911 return TI_RESULT_FAILED; 912 return ((TI_WLAN_AdapterAPI *) hAdapter)->GetExtRatesIE(puExtRatesIE); 913 } 914 /********************************************************************/ 915 tiINT32 916 TI_AddWEPKey(TI_HANDLE hAdapter, OS_802_11_WEP* pWEP) 917 { 918 if ( !TI_CheckAdapterObject(hAdapter) ) 919 return TI_RESULT_FAILED; 920 return ((TI_WLAN_AdapterAPI *) hAdapter)->AddWEPKey(pWEP); 921 } 922 /********************************************************************/ 923 tiINT32 924 TI_RemoveWEPKey(TI_HANDLE hAdapter, tiUINT32 uKeyIndex) 925 { 926 if ( !TI_CheckAdapterObject(hAdapter) ) 927 return TI_RESULT_FAILED; 928 return ((TI_WLAN_AdapterAPI *) hAdapter)->RemoveWEPKey(uKeyIndex); 929 } 930 /********************************************************************/ 931 tiINT32 932 TI_AddKey(TI_HANDLE hAdapter, OS_802_11_KEY* pKey) 933 { 934 if ( !TI_CheckAdapterObject(hAdapter) ) 935 return TI_RESULT_FAILED; 936 return ((TI_WLAN_AdapterAPI *) hAdapter)->AddKey(pKey); 937 } 938 /********************************************************************/ 939 tiINT32 940 TI_RemoveKEY(TI_HANDLE hAdapter, OS_802_11_REMOVE_KEY* pRemoveKey ) 941 { 942 if ( !TI_CheckAdapterObject(hAdapter) ) 943 return TI_RESULT_FAILED; 944 return ((TI_WLAN_AdapterAPI *) hAdapter)->RemoveKey(pRemoveKey); 945 } 946 /********************************************************************/ 947 tiINT32 948 TI_GetPowerMode(TI_HANDLE hAdapter, OS_802_11_POWER_PROFILE* pPowerProfile ) 949 { 950 if ( !TI_CheckAdapterObject(hAdapter) ) 951 return TI_RESULT_FAILED; 952 return ((TI_WLAN_AdapterAPI *) hAdapter)->GetPowerMode(pPowerProfile); 953 } 954 /********************************************************************/ 955 tiINT32 956 TI_SetPowerMode(TI_HANDLE hAdapter, OS_802_11_POWER_PROFILE uPowerProfile ) 957 { 958 if ( !TI_CheckAdapterObject(hAdapter) ) 959 return TI_RESULT_FAILED; 960 return ((TI_WLAN_AdapterAPI *) hAdapter)->SetPowerMode(uPowerProfile); 961 } 962 /********************************************************************/ 963 tiINT32 964 TI_SetPowerLevelPS(TI_HANDLE hAdapter, OS_802_11_POWER_LEVELS uPowerLevel ) 965 { 966 if ( !TI_CheckAdapterObject(hAdapter) ) 967 return TI_RESULT_FAILED; 968 return ((TI_WLAN_AdapterAPI *) hAdapter)->SetPowerLevelPS(uPowerLevel); 969 } 970 /********************************************************************/ 971 tiINT32 972 TI_GetPowerLevelPS(TI_HANDLE hAdapter, OS_802_11_POWER_LEVELS* pPowerLevel ) 973 { 974 if ( !TI_CheckAdapterObject(hAdapter) ) 975 return TI_RESULT_FAILED; 976 return ((TI_WLAN_AdapterAPI *) hAdapter)->GetPowerLevelPS(pPowerLevel); 977 } 978 /********************************************************************/ 979 tiINT32 980 TI_SetPowerLevelDefault(TI_HANDLE hAdapter, OS_802_11_POWER_LEVELS uPowerLevel ) 981 { 982 if ( !TI_CheckAdapterObject(hAdapter) ) 983 return TI_RESULT_FAILED; 984 return ((TI_WLAN_AdapterAPI *) hAdapter)->SetPowerLevelDefault(uPowerLevel); 985 } 986 /********************************************************************/ 987 tiINT32 988 TI_GetPowerLevelDefault(TI_HANDLE hAdapter, OS_802_11_POWER_LEVELS* pPowerLevel ) 989 { 990 if ( !TI_CheckAdapterObject(hAdapter) ) 991 return TI_RESULT_FAILED; 992 return ((TI_WLAN_AdapterAPI *) hAdapter)->GetPowerLevelDefault(pPowerLevel); 993 } 994 /********************************************************************/ 995 tiINT32 996 TI_SetPowerLevelDozeMode(TI_HANDLE hAdapter, OS_802_11_POWER_PROFILE uPowerLevel ) 997 { 998 if ( !TI_CheckAdapterObject(hAdapter) ) 999 return TI_RESULT_FAILED; 1000 return ((TI_WLAN_AdapterAPI *) hAdapter)->SetPowerLevelDozeMode(uPowerLevel); 1001 } 1002 /********************************************************************/ 1003 tiINT32 1004 TI_GetPowerLevelDozeMode(TI_HANDLE hAdapter, OS_802_11_POWER_PROFILE* pPowerLevel ) 1005 { 1006 if ( !TI_CheckAdapterObject(hAdapter) ) 1007 return TI_RESULT_FAILED; 1008 return ((TI_WLAN_AdapterAPI *) hAdapter)->GetPowerLevelDozeMode(pPowerLevel); 1009 } 1010 /********************************************************************/ 1011 tiINT32 1012 TI_SetBeaconFilterDesiredState(TI_HANDLE hAdapter, OS_802_11_BEACON_FILTER_MODE uBeaconFilterDesiredState ) 1013 { 1014 if ( !TI_CheckAdapterObject(hAdapter) ) 1015 return TI_RESULT_FAILED; 1016 return ((TI_WLAN_AdapterAPI *) hAdapter)->SetBeaconFilterDesiredState(uBeaconFilterDesiredState); 1017 } 1018 1019 /********************************************************************/ 1020 tiINT32 1021 TI_GetBeaconFilterDesiredState(TI_HANDLE hAdapter, tiUINT8* pBeaconFilterState ) 1022 { 1023 if ( !TI_CheckAdapterObject(hAdapter) ) 1024 return TI_RESULT_FAILED; 1025 return ((TI_WLAN_AdapterAPI *) hAdapter)->GetBeaconFilterDesiredState(pBeaconFilterState); 1026 } 1027 1028 1029 /********************************************************************/ 1030 tiINT32 1031 TI_ConfigPowerManagement(TI_HANDLE hAdapter, OS_802_11_POWER_PROFILE uPowerProfile ) 1032 { 1033 if ( !TI_CheckAdapterObject(hAdapter) ) 1034 return TI_RESULT_FAILED; 1035 return ((TI_WLAN_AdapterAPI *) hAdapter)->ConfigPowerManagement(uPowerProfile); 1036 } 1037 1038 /********************************************************************/ 1039 tiINT32 1040 TI_RegisterEvent(TI_HANDLE hAdapter, IPC_EVENT_PARAMS* pEventParams ) 1041 { 1042 if ( !TI_CheckAdapterObject(hAdapter) ) 1043 return TI_RESULT_FAILED; 1044 return ((TI_WLAN_AdapterAPI *) hAdapter)->RegisterEvent(pEventParams); 1045 } 1046 /********************************************************************/ 1047 tiINT32 1048 TI_UnRegisterEvent(TI_HANDLE hAdapter, IPC_EVENT_PARAMS* pEventParams) 1049 { 1050 if ( !TI_CheckAdapterObject(hAdapter) ) 1051 return TI_RESULT_FAILED; 1052 return ((TI_WLAN_AdapterAPI *) hAdapter)->UnRegisterEvent(pEventParams); 1053 } 1054 /********************************************************************/ 1055 tiINT32 1056 TI_hwReadRegister(TI_HANDLE hAdapter, tiUINT32 uRegisterAddr, tiUINT32* puValue ) 1057 { 1058 if ( !TI_CheckAdapterObject(hAdapter) ) 1059 return TI_RESULT_FAILED; 1060 return ((TI_WLAN_AdapterAPI *) hAdapter)->hwReadRegister(uRegisterAddr, puValue); 1061 } 1062 1063 /********************************************************************/ 1064 tiINT32 1065 TI_StartScan(TI_HANDLE hAdapter, scan_Params_t *pScanParams) 1066 { 1067 if ( !TI_CheckAdapterObject(hAdapter) ) 1068 return TI_RESULT_FAILED; 1069 return ((TI_WLAN_AdapterAPI *) hAdapter)->StartScan(pScanParams); 1070 } 1071 /********************************************************************/ 1072 tiINT32 1073 TI_StopScan(TI_HANDLE hAdapter) 1074 { 1075 if ( !TI_CheckAdapterObject(hAdapter) ) 1076 return TI_RESULT_FAILED; 1077 return ((TI_WLAN_AdapterAPI *) hAdapter)->StopScan(); 1078 } 1079 /********************************************************************/ 1080 tiINT32 1081 TI_SetScanPolicy(TI_HANDLE hAdapter, UINT8* buffer, UINT16 bufferLength) 1082 { 1083 if ( !TI_CheckAdapterObject(hAdapter) ) 1084 return TI_RESULT_FAILED; 1085 return ((TI_WLAN_AdapterAPI *) hAdapter)->SetScanPolicy(buffer, bufferLength); 1086 } 1087 /********************************************************************/ 1088 tiINT32 1089 TI_GetScanBssList(TI_HANDLE hAdapter, bssList_t* bssList) 1090 { 1091 if ( !TI_CheckAdapterObject(hAdapter) ) 1092 return TI_RESULT_FAILED; 1093 return ((TI_WLAN_AdapterAPI *) hAdapter)->GetScanBssList(bssList); 1094 } 1095 /********************************************************************/ 1096 tiINT32 1097 TI_ConfigTxClassifier(TI_HANDLE hAdapter, 1098 tiUINT32 inParamsBuffLen, 1099 tiUINT8 *inParamsBuff) 1100 { 1101 if ( !TI_CheckAdapterObject(hAdapter) ) 1102 return TI_RESULT_FAILED; 1103 return ((TI_WLAN_AdapterAPI *) hAdapter)->ConfigTxClassifier(inParamsBuffLen,inParamsBuff); 1104 } 1105 /********************************************************************/ 1106 tiINT32 1107 TI_RemoveClassifierEntry(TI_HANDLE hAdapter, clsfr_tableEntry_t *pClsfrEntry) 1108 { 1109 if ( !TI_CheckAdapterObject(hAdapter) ) 1110 return TI_RESULT_FAILED; 1111 return ((TI_WLAN_AdapterAPI *) hAdapter)->RemoveClassifierEntry(pClsfrEntry); 1112 } 1113 /********************************************************************/ 1114 tiINT32 1115 TI_GetClsfrType(TI_HANDLE hAdapter, 1116 clsfrTypeAndSupport *currClsfrType) 1117 { 1118 if ( !TI_CheckAdapterObject(hAdapter) ) 1119 return TI_RESULT_FAILED; 1120 return ((TI_WLAN_AdapterAPI *) hAdapter)->GetClsfrType(currClsfrType); 1121 } 1122 /********************************************************************/ 1123 tiINT32 1124 TI_GetDesiredPsMode(TI_HANDLE hAdapter, OS_802_11_QOS_DESIRED_PS_MODE *desiredPsMode) 1125 { 1126 if ( !TI_CheckAdapterObject(hAdapter) ) 1127 return TI_RESULT_FAILED; 1128 return ((TI_WLAN_AdapterAPI *) hAdapter)->GetDesiredPsMode(desiredPsMode); 1129 } 1130 /********************************************************************/ 1131 tiINT32 1132 TI_GetDriverCapabilities (TI_HANDLE hAdapter, OS_802_11_DRIVER_CAPABILITIES* pDriverCapabilities ) 1133 { 1134 if ( !TI_CheckAdapterObject(hAdapter) ) 1135 return TI_RESULT_FAILED; 1136 return ((TI_WLAN_AdapterAPI *) hAdapter)->GetDriverCapabilities(pDriverCapabilities); 1137 } 1138 /********************************************************************/ 1139 tiINT32 TI_GetSelectedBSSIDInfo(TI_HANDLE hAdapter, OS_802_11_BSSID_EX *pSelectedBSSIDInfo ) 1140 { 1141 tiINT32 Rssi; 1142 1143 if ( !TI_CheckAdapterObject(hAdapter) ) 1144 return TI_RESULT_FAILED; 1145 1146 /* Query the RSSI so it will be updated in the Site Manager in CORE so the BSSID List retrive will be updated with 1147 the correct current RSSI */ 1148 ((TI_WLAN_AdapterAPI *) hAdapter)->GetRSSI(&Rssi); 1149 1150 return ((TI_WLAN_AdapterAPI *) hAdapter)->GetSelectedBSSIDInfo(pSelectedBSSIDInfo); 1151 } 1152 /********************************************************************/ 1153 tiINT32 TI_GetPrimaryBSSIDInfo(TI_HANDLE hAdapter, OS_802_11_BSSID_EX *pSelectedBSSIDInfo) 1154 { 1155 tiINT32 Rssi; 1156 1157 if ( !TI_CheckAdapterObject(hAdapter) ) 1158 return TI_RESULT_FAILED; 1159 1160 /* Query the RSSI so it will be updated in the Site Manager in CORE so the BSSID List retrive will be updated with 1161 the correct current RSSI */ 1162 ((TI_WLAN_AdapterAPI *) hAdapter)->GetRSSI(&Rssi); 1163 1164 return ((TI_WLAN_AdapterAPI *) hAdapter)->GetPrimaryBSSIDInfo(pSelectedBSSIDInfo); 1165 } 1166 /********************************************************************/ 1167 tiINT32 1168 TI_hwWriteRegister(TI_HANDLE hAdapter, tiUINT32 uRegisterAddr, tiUINT32 dwValue ) 1169 { 1170 if ( !TI_CheckAdapterObject(hAdapter) ) 1171 return TI_RESULT_FAILED; 1172 return ((TI_WLAN_AdapterAPI *) hAdapter)->hwWriteRegister(uRegisterAddr, dwValue); 1173 } 1174 /********************************************************************/ 1175 tiINT32 1176 TI_Disassociate(TI_HANDLE hAdapter) 1177 { 1178 if ( !TI_CheckAdapterObject(hAdapter) ) 1179 return TI_RESULT_FAILED; 1180 return ((TI_WLAN_AdapterAPI *) hAdapter)->Disassociate(); 1181 } 1182 /********************************************************************/ 1183 tiUINT32 1184 TI_ReloadDefaults(TI_HANDLE hAdapter) 1185 { 1186 if ( !TI_CheckAdapterObject(hAdapter) ) 1187 return TI_RESULT_FAILED; 1188 return ((TI_WLAN_AdapterAPI *) hAdapter)->ReloadDefaults(); 1189 } 1190 /********************************************************************/ 1191 tiINT32 1192 TI_IsDriverLoaded(TI_HANDLE hAdapter) 1193 { 1194 if ( !TI_CheckAdapterObject(hAdapter) ) 1195 return TI_RESULT_FAILED; 1196 return ((TI_WLAN_AdapterAPI *) hAdapter)->IsDriverLoaded(); 1197 } 1198 /********************************************************************/ 1199 tiINT32 1200 TI_GetNumberOfAntennas(TI_HANDLE hAdapter, tiUINT32* puNumberOfAntennas) 1201 { 1202 if ( !TI_CheckAdapterObject(hAdapter) ) 1203 return TI_RESULT_FAILED; 1204 return ((TI_WLAN_AdapterAPI *) hAdapter)->GetNumberOfAntennas(puNumberOfAntennas); 1205 } 1206 /********************************************************************/ 1207 tiINT32 1208 TI_GetDriverVersion(TI_HANDLE hAdapter, TIWLN_VERSION_EX* pdrvVersion) 1209 { 1210 if ( !TI_CheckAdapterObject(hAdapter) ) 1211 return TI_RESULT_FAILED; 1212 return ((TI_WLAN_AdapterAPI *) hAdapter)->GetDriverVersion(pdrvVersion); 1213 } 1214 1215 1216 /********************************************************************/ 1217 tiINT32 1218 TI_SetBtCoeEnable(TI_HANDLE hAdapter, tiUINT32 ModeEnable) 1219 { 1220 if ( !TI_CheckAdapterObject(hAdapter) ) 1221 return TI_RESULT_FAILED; 1222 return ((TI_WLAN_AdapterAPI *) hAdapter)->SetBtCoeEnable(ModeEnable); 1223 } 1224 /********************************************************************/ 1225 tiINT32 1226 TI_SetBtCoeRate(TI_HANDLE hAdapter, tiUINT8 *pRate) 1227 { 1228 if ( !TI_CheckAdapterObject(hAdapter) ) 1229 return TI_RESULT_FAILED; 1230 return ((TI_WLAN_AdapterAPI *) hAdapter)->SetBtCoeRate(pRate); 1231 } 1232 /********************************************************************/ 1233 tiINT32 1234 TI_SetBtCoeConfig(TI_HANDLE hAdapter, tiUINT32 *pConfig) 1235 { 1236 if ( !TI_CheckAdapterObject(hAdapter) ) 1237 return TI_RESULT_FAILED; 1238 return ((TI_WLAN_AdapterAPI *) hAdapter)->SetBtCoeConfig(pConfig); 1239 } 1240 1241 /********************************************************************/ 1242 tiINT32 1243 TI_SetBtCoeGetStatus(TI_HANDLE hAdapter, tiUINT32 *pStatus) 1244 { 1245 if ( !TI_CheckAdapterObject(hAdapter) ) 1246 return TI_RESULT_FAILED; 1247 return ((TI_WLAN_AdapterAPI *) hAdapter)->SetBtCoeGetStatus(pStatus); 1248 } 1249 1250 1251 1252 #ifdef TI_DBG 1253 /********************************************************************/ 1254 tiUINT32 1255 TI_DebugBuffer(TI_HANDLE hAdapter, tiUINT8* pBuffer, tiUINT32 uLenght) 1256 { 1257 if ( !TI_CheckAdapterObject(hAdapter) ) 1258 return TI_RESULT_FAILED; 1259 return ((TI_WLAN_AdapterAPI *) hAdapter)->GetDebugBuffer(pBuffer, uLenght); 1260 } 1261 /********************************************************************/ 1262 tiINT32 1263 TI_SetReportModule(TI_HANDLE hAdapter, tiUINT8* pData) 1264 { 1265 if ( !TI_CheckAdapterObject(hAdapter) ) 1266 return TI_RESULT_FAILED; 1267 return ((TI_WLAN_AdapterAPI *) hAdapter)->SetReportModule(pData); 1268 } 1269 /********************************************************************/ 1270 tiINT32 1271 TI_GetReportModule(TI_HANDLE hAdapter, tiUINT8* pData) 1272 { 1273 if ( !TI_CheckAdapterObject(hAdapter) ) 1274 return TI_RESULT_FAILED; 1275 return ((TI_WLAN_AdapterAPI *) hAdapter)->GetReportModule(pData); 1276 } 1277 /********************************************************************/ 1278 tiINT32 1279 TI_SetOsDbgState(TI_HANDLE hAdapter, tiUINT32 uData) 1280 { 1281 if ( !TI_CheckAdapterObject(hAdapter) ) 1282 return TI_RESULT_FAILED; 1283 return ((TI_WLAN_AdapterAPI *) hAdapter)->SetOsDbgState(uData); 1284 } 1285 /********************************************************************/ 1286 tiINT32 1287 TI_GetOsDbgState(TI_HANDLE hAdapter, tiUINT32* puData) 1288 { 1289 if ( !TI_CheckAdapterObject(hAdapter) ) 1290 return TI_RESULT_FAILED; 1291 return ((TI_WLAN_AdapterAPI *) hAdapter)->GetOsDbgState(puData); 1292 } 1293 /********************************************************************/ 1294 tiINT32 1295 TI_SetReportSeverity(TI_HANDLE hAdapter, tiUINT8* pData) 1296 { 1297 if ( !TI_CheckAdapterObject(hAdapter) ) 1298 return TI_RESULT_FAILED; 1299 return ((TI_WLAN_AdapterAPI *) hAdapter)->SetReportSeverity(pData); 1300 } 1301 /********************************************************************/ 1302 tiINT32 1303 TI_GetReportSeverity(TI_HANDLE hAdapter, tiUINT8* pData) 1304 { 1305 if ( !TI_CheckAdapterObject(hAdapter) ) 1306 return TI_RESULT_FAILED; 1307 return ((TI_WLAN_AdapterAPI *) hAdapter)->GetReportSeverity(pData); 1308 } 1309 /********************************************************************/ 1310 tiINT32 1311 TI_SetReportPPMode(TI_HANDLE hAdapter, tiUINT32 uData) 1312 { 1313 if ( !TI_CheckAdapterObject(hAdapter) ) 1314 return TI_RESULT_FAILED; 1315 return ((TI_WLAN_AdapterAPI *) hAdapter)->SetReportPPMode(uData); 1316 } 1317 /********************************************************************/ 1318 tiINT32 1319 TI_DisplayStats(TI_HANDLE hAdapter, tiUINT8* puDbgBuffer, tiUINT32 uBuffSize) 1320 { 1321 if ( !TI_CheckAdapterObject(hAdapter) ) 1322 return TI_RESULT_FAILED; 1323 return ((TI_WLAN_AdapterAPI *) hAdapter)->DisplayStats(puDbgBuffer, uBuffSize); 1324 } 1325 #endif //TI_DBG 1326 /********************************************************************/ 1327 tiINT32 1328 TI_GetRegDomainTable(TI_HANDLE hAdapter, TIWLN_REGDOMAINS* pRegDomainTable) 1329 { 1330 if ( !TI_CheckAdapterObject(hAdapter) ) 1331 return TI_RESULT_FAILED; 1332 return ((TI_WLAN_AdapterAPI *) hAdapter)->GetRegDomainTable(pRegDomainTable); 1333 } 1334 /********************************************************************/ 1335 tiINT32 1336 TI_GetMediumUsage(TI_HANDLE hAdapter, TIWLN_MEDIUM_USAGE* pMediumUsage) 1337 { 1338 if ( !TI_CheckAdapterObject(hAdapter) ) 1339 return TI_RESULT_FAILED; 1340 return ((TI_WLAN_AdapterAPI *) hAdapter)->GetMediumUsage(pMediumUsage); 1341 } 1342 /********************************************************************/ 1343 tiINT32 1344 TI_GetApiVersion(TI_HANDLE hAdapter, tiUINT32* puApiVersion) 1345 { 1346 if ( !TI_CheckAdapterObject(hAdapter) ) 1347 return TI_RESULT_FAILED; 1348 return ((TI_WLAN_AdapterAPI *) hAdapter)->GetApiVersion(puApiVersion); 1349 } 1350 /********************************************************************/ 1351 tiINT32 1352 TI_StartSM(TI_HANDLE hAdapter) 1353 { 1354 if ( !TI_CheckAdapterObject(hAdapter) ) 1355 return TI_RESULT_FAILED; 1356 return ((TI_WLAN_AdapterAPI *) hAdapter)->StartSM(); 1357 } 1358 /********************************************************************/ 1359 tiINT32 1360 TI_StopSM( TI_HANDLE hAdapter ) 1361 { 1362 if ( !TI_CheckAdapterObject(hAdapter) ) 1363 return TI_RESULT_FAILED; 1364 return ((TI_WLAN_AdapterAPI *) hAdapter)->StopSM(); 1365 } 1366 /********************************************************************/ 1367 tiINT32 1368 TI_GetAssociationInfo(TI_HANDLE hAdapter, OS_802_11_ASSOCIATION_INFORMATION** ppInfo) 1369 { 1370 if ( !TI_CheckAdapterObject(hAdapter) ) 1371 return TI_RESULT_FAILED; 1372 1373 if ( ppInfo == NULL) 1374 return TI_RESULT_FAILED; 1375 1376 return ((TI_WLAN_AdapterAPI *) hAdapter)->GetAssociationInfo( ppInfo ); 1377 } 1378 /********************************************************************/ 1379 TI_HANDLE 1380 TI_AdapterInit(tiCHAR* pszAdapterName) 1381 { 1382 return (TI_HANDLE) TI_AdapterCppInit(pszAdapterName, FALSE); 1383 } 1384 1385 /********************************************************************/ 1386 tiINT32 1387 TI_AdapterDeinit(TI_HANDLE hAdapter) 1388 { 1389 if ( !TI_CheckAdapterObject(hAdapter) ) 1390 return TI_RESULT_FAILED; 1391 TI_AdapterCppDeinit((TI_WLAN_AdapterAPI *) hAdapter, FALSE ); 1392 return TI_RESULT_OK; 1393 } 1394 /********************************************************************/ 1395 tiINT32 1396 TI_Start(TI_HANDLE hAdapter) 1397 { 1398 if ( !TI_CheckAdapterObject(hAdapter) ) 1399 return TI_RESULT_FAILED; 1400 return ((TI_WLAN_AdapterAPI *) hAdapter)->Start(); 1401 } 1402 /********************************************************************/ 1403 tiINT32 1404 TI_Stop(TI_HANDLE hAdapter) 1405 { 1406 if ( !TI_CheckAdapterObject(hAdapter) ) 1407 return TI_RESULT_FAILED; 1408 return ((TI_WLAN_AdapterAPI *) hAdapter)->Stop(); 1409 } 1410 /********************************************************************/ 1411 tiINT32 1412 TI_WLAN_IsDriverRun(TI_HANDLE hAdapter, tiBOOL* pbStatus) 1413 { 1414 if ( !TI_CheckAdapterObject(hAdapter) ) 1415 return TI_RESULT_FAILED; 1416 return ((TI_WLAN_AdapterAPI *) hAdapter)->IsDriverRun(pbStatus); 1417 } 1418 /********************************************************************/ 1419 tiINT32 1420 TI_SetWpaOptions(TI_HANDLE hAdapter, tiUINT32 fWPAOptions ) 1421 { 1422 if ( !TI_CheckAdapterObject(hAdapter) ) 1423 return TI_RESULT_FAILED; 1424 return ((TI_WLAN_AdapterAPI *) hAdapter)->SetWPAOptions(fWPAOptions); 1425 } 1426 /********************************************************************/ 1427 tiINT32 TI_GetWpaOptions(TI_HANDLE hAdapter, tiUINT32 * fWPAOptions ) 1428 { 1429 if ( !TI_CheckAdapterObject(hAdapter) ) 1430 return TI_RESULT_FAILED; 1431 return TI_RESULT_FAILED; 1432 1433 //return ((TI_WLAN_AdapterAPI *) hAdapter)->GetWPAOptions(fWPAOptions); 1434 } 1435 1436 /********************************************************************/ 1437 tiINT32 1438 TI_SetRoamingConfiguration(TI_HANDLE hAdapter, UINT8* buffer, UINT16 bufferLength) 1439 { 1440 if ( !TI_CheckAdapterObject(hAdapter) ) 1441 return TI_RESULT_FAILED; 1442 return ((TI_WLAN_AdapterAPI *) hAdapter)->Set_RoamingConfParams(buffer, bufferLength); 1443 } 1444 1445 tiINT32 1446 TI_GetRoamingConfiguration(TI_HANDLE hAdapter, UINT8* buffer, UINT16 bufferLength) 1447 { 1448 if ( !TI_CheckAdapterObject(hAdapter) ) 1449 return TI_RESULT_FAILED; 1450 1451 return ((TI_WLAN_AdapterAPI *) hAdapter)->Get_RoamingConfParams(buffer, bufferLength); 1452 } 1453 /********************************************************************/ 1454 tiINT32 1455 TI_GWSICommand(TI_HANDLE hAdapter, tiUINT32* pGWSICommand ) 1456 { 1457 if ( !TI_CheckAdapterObject(hAdapter) ) 1458 return TI_RESULT_FAILED; 1459 return ((TI_WLAN_AdapterAPI *) hAdapter)->GWSICommand(pGWSICommand); 1460 1461 } 1462 1463 /********************************************************************/ 1464 tiINT32 1465 TI_GWSIInitialize(TI_HANDLE hAdapter, tiUINT32* pGWSICommand ) 1466 { 1467 if ( !TI_CheckAdapterObject(hAdapter) ) 1468 return TI_RESULT_FAILED; 1469 return ((TI_WLAN_AdapterAPI *) hAdapter)->GWSIInitialize(pGWSICommand); 1470 1471 } 1472 1473 /********************************************************************/ 1474 tiINT32 1475 TI_GWSIConfig(TI_HANDLE hAdapter, tiUINT32* pGWSICommand ) 1476 { 1477 if ( !TI_CheckAdapterObject(hAdapter) ) 1478 return TI_RESULT_FAILED; 1479 return ((TI_WLAN_AdapterAPI *) hAdapter)->GWSIConfig(pGWSICommand); 1480 1481 } 1482 1483 /********************************************************************/ 1484 tiINT32 1485 TI_GWSIRelease(TI_HANDLE hAdapter, tiUINT32* pGWSICommand ) 1486 { 1487 if ( !TI_CheckAdapterObject(hAdapter) ) 1488 return TI_RESULT_FAILED; 1489 return ((TI_WLAN_AdapterAPI *) hAdapter)->GWSIRelease(pGWSICommand); 1490 1491 } 1492 1493 /********************************************************************/ 1494 1495 tiINT32 1496 TI_GWSIGetInitTable(TI_HANDLE hAdapter, tiUINT32* pGWSICommand ) 1497 { 1498 if ( !TI_CheckAdapterObject(hAdapter) ) 1499 return TI_RESULT_FAILED; 1500 return ((TI_WLAN_AdapterAPI *) hAdapter)->GWSIGetInitTable(pGWSICommand); 1501 1502 } 1503 /********************************************************************/ 1504 1505 //PLT 1506 1507 tiINT32 1508 TI_PLT_ReadRegister(TI_HANDLE hAdapter, UINT32 uRegisterAddr, PUINT32 uRegisterData ) 1509 { 1510 if ( !TI_CheckAdapterObject(hAdapter) ) 1511 return TI_RESULT_FAILED; 1512 return ((TI_WLAN_AdapterAPI *) hAdapter)->PLT_ReadRegister( uRegisterAddr, uRegisterData ); 1513 } 1514 1515 tiINT32 1516 TI_PLT_WriteRegister(TI_HANDLE hAdapter, UINT32 uRegisterAddr, UINT32 uRegisterData ) 1517 { 1518 if ( !TI_CheckAdapterObject(hAdapter) ) 1519 return TI_RESULT_FAILED; 1520 return ((TI_WLAN_AdapterAPI *) hAdapter)->PLT_WriteRegister( uRegisterAddr, uRegisterData ); 1521 } 1522 1523 1524 tiINT32 1525 TI_PLT_RxPerStart(TI_HANDLE hAdapter) 1526 { 1527 if ( !TI_CheckAdapterObject(hAdapter) ) 1528 return TI_RESULT_FAILED; 1529 return ((TI_WLAN_AdapterAPI *) hAdapter)->PLT_RxPerStart(); 1530 } 1531 1532 tiINT32 1533 TI_PLT_RxPerStop(TI_HANDLE hAdapter) 1534 { 1535 if ( !TI_CheckAdapterObject(hAdapter) ) 1536 return TI_RESULT_FAILED; 1537 return ((TI_WLAN_AdapterAPI *) hAdapter)->PLT_RxPerStop(); 1538 } 1539 1540 tiINT32 1541 TI_PLT_RxPerClear(TI_HANDLE hAdapter) 1542 { 1543 if ( !TI_CheckAdapterObject(hAdapter) ) 1544 return TI_RESULT_FAILED; 1545 return ((TI_WLAN_AdapterAPI *) hAdapter)->PLT_RxPerClear(); 1546 } 1547 1548 tiINT32 1549 TI_PLT_RxPerGetResults(TI_HANDLE hAdapter, PltRxPer_t* pPltRxPer ) 1550 { 1551 if ( !TI_CheckAdapterObject(hAdapter) ) 1552 return TI_RESULT_FAILED; 1553 return ((TI_WLAN_AdapterAPI *) hAdapter)->PLT_RxPerGetResults( pPltRxPer ); 1554 } 1555 1556 tiINT32 1557 TI_PLT_TxCW(TI_HANDLE hAdapter, TestCmdChannelBand_t* pPltTxCW) 1558 { 1559 if ( !TI_CheckAdapterObject(hAdapter) ) 1560 return TI_RESULT_FAILED; 1561 return ((TI_WLAN_AdapterAPI *) hAdapter)->PLT_TxCW(pPltTxCW); 1562 } 1563 1564 tiINT32 1565 TI_PLT_TxContiues(TI_HANDLE hAdapter, PltTxContinues_t* pPltTxContinues) 1566 { 1567 if ( !TI_CheckAdapterObject(hAdapter) ) 1568 return TI_RESULT_FAILED; 1569 return ((TI_WLAN_AdapterAPI *) hAdapter)->PLT_TxContiues( pPltTxContinues); 1570 } 1571 1572 tiINT32 1573 TI_PLT_TxStop(TI_HANDLE hAdapter) 1574 { 1575 if ( !TI_CheckAdapterObject(hAdapter) ) 1576 return TI_RESULT_FAILED; 1577 return ((TI_WLAN_AdapterAPI *) hAdapter)->PLT_TxStop( ); 1578 } 1579 1580 tiINT32 1581 TI_PLT_ReadMIB(TI_HANDLE hAdapter, PLT_MIB_t* pMib ) 1582 { 1583 if ( !TI_CheckAdapterObject(hAdapter) ) 1584 return TI_RESULT_FAILED; 1585 return ((TI_WLAN_AdapterAPI *) hAdapter)->PLT_ReadMIB(pMib); 1586 } 1587 1588 tiINT32 1589 TI_PLT_WriteMIB(TI_HANDLE hAdapter, PLT_MIB_t* pMib ) 1590 { 1591 if ( !TI_CheckAdapterObject(hAdapter) ) 1592 return TI_RESULT_FAILED; 1593 return ((TI_WLAN_AdapterAPI *) hAdapter)->PLT_WriteMIB(pMib); 1594 } 1595 1596 tiINT32 1597 TI_GetDefaultWepKey(TI_HANDLE hAdapter, tiUINT32* puKeyIndex ) 1598 { 1599 if ( !TI_CheckAdapterObject(hAdapter) ) 1600 return TI_RESULT_FAILED; 1601 return ((TI_WLAN_AdapterAPI *) hAdapter)->GetDefaultWepKey(puKeyIndex); 1602 } 1603 1604 tiINT32 1605 TI_PLT_TxCalGainGet(TI_HANDLE hAdapter, PltGainGet_t* pPLTGainGet) 1606 { 1607 if ( !TI_CheckAdapterObject(hAdapter) ) 1608 return TI_RESULT_FAILED; 1609 return ((TI_WLAN_AdapterAPI *) hAdapter)->PLT_TxCalGainGet(pPLTGainGet); 1610 } 1611 1612 tiINT32 1613 TI_PLT_TxCalGainAdjust(TI_HANDLE hAdapter, tiINT32 uTxGainChange) 1614 { 1615 if ( !TI_CheckAdapterObject(hAdapter) ) 1616 return TI_RESULT_FAILED; 1617 return ((TI_WLAN_AdapterAPI *) hAdapter)->PLT_TxCalGainAdjust(uTxGainChange); 1618 } 1619 1620 tiINT32 1621 TI_PLT_TxCalStart(TI_HANDLE hAdapter, PltTxCalibrationRequest_t* pPLTTxCal) 1622 { 1623 if ( !TI_CheckAdapterObject(hAdapter) ) 1624 return TI_RESULT_FAILED; 1625 return ((TI_WLAN_AdapterAPI *) hAdapter)->PLT_TxCalStart(pPLTTxCal); 1626 } 1627 1628 tiINT32 1629 TI_PLT_TxCalStop(TI_HANDLE hAdapter) 1630 { 1631 if ( !TI_CheckAdapterObject(hAdapter) ) 1632 return TI_RESULT_FAILED; 1633 return ((TI_WLAN_AdapterAPI *) hAdapter)->PLT_TxCalStop(); 1634 } 1635 1636 tiINT32 1637 TI_PLT_RxTxCalNVSUpdateBuffer(TI_HANDLE hAdapter, PltNvsResultsBuffer_t* pPLT_NVSUpdateBuffer) 1638 { 1639 if ( !TI_CheckAdapterObject(hAdapter) ) 1640 return TI_RESULT_FAILED; 1641 return ((TI_WLAN_AdapterAPI *) hAdapter)->PLT_RxTxCalNVSUpdateBuffer(pPLT_NVSUpdateBuffer); 1642 } 1643 1644 tiINT32 1645 TI_PLT_RxCal(TI_HANDLE hAdapter, PltRxCalibrationRequest_t* pPltRxCalibration) 1646 { 1647 if ( !TI_CheckAdapterObject(hAdapter) ) 1648 return TI_RESULT_FAILED; 1649 return ((TI_WLAN_AdapterAPI *) hAdapter)->PLT_RxCal(pPltRxCalibration); 1650 } 1651 1652 tiINT32 1653 TI_PLT_RadioTune(TI_HANDLE hAdapter, TestCmdChannelBand_t* pChannelBand) 1654 { 1655 if ( !TI_CheckAdapterObject(hAdapter) ) 1656 return TI_RESULT_FAILED; 1657 return ((TI_WLAN_AdapterAPI *) hAdapter)->PLT_RadioTune(pChannelBand); 1658 } 1659 1660 /********************************************************************/ 1661 #ifdef _WINDOWS 1662 #endif 1663 1664 /********************************************************************/ 1665 1666 #ifdef TI_DBG 1667 1668 #ifdef DRIVER_PROFILING 1669 1670 tiINT32 1671 TI_ProfileReport(TI_HANDLE hAdapter) 1672 { 1673 if ( !TI_CheckAdapterObject(hAdapter) ) 1674 return TI_RESULT_FAILED; 1675 return ((TI_WLAN_AdapterAPI *) hAdapter)->ProfileReport(); 1676 } 1677 1678 tiINT32 1679 TI_CpuEstimatorCommand(TI_HANDLE hAdapter, tiUINT8 uType, tiUINT32 uData) 1680 { 1681 if ( !TI_CheckAdapterObject(hAdapter) ) 1682 return TI_RESULT_FAILED; 1683 return ((TI_WLAN_AdapterAPI *) hAdapter)->CpuEstimatorCommand(uType, uData); 1684 } 1685 1686 #endif 1687 1688 #endif // TI_DBG 1689 1690 /********************************************************************/ 1691 tiINT32 1692 TI_Send_EAPOL_Packet( TI_HANDLE hAdapter, tiVOID* pData, tiUINT32 uSize ) 1693 { 1694 if ( !TI_CheckAdapterObject(hAdapter) || !pData ) 1695 return TI_RESULT_FAILED; 1696 return ((TI_WLAN_AdapterAPI *) hAdapter)->Send_EAPOL_Packet(pData,uSize); 1697 } 1698 /********************************************************************/ 1699