cm-kernel /drivers/net/wireless/tiwlan1251/CUDK/Inc/TI_AdapterApiC.h

Language C/C++ Header Lines 1522
MD5 Hash 57a4e59dd18daf2f1dce02f2f42ffe0d Estimated Cost $6,170 (why?)
Repository git://github.com/CyanogenMod/cm-kernel.git View Raw File View Project SPDX
   1
   2
   3
   4
   5
   6
   7
   8
   9
  10
  11
  12
  13
  14
  15
  16
  17
  18
  19
  20
  21
  22
  23
  24
  25
  26
  27
  28
  29
  30
  31
  32
  33
  34
  35
  36
  37
  38
  39
  40
  41
  42
  43
  44
  45
  46
  47
  48
  49
  50
  51
  52
  53
  54
  55
  56
  57
  58
  59
  60
  61
  62
  63
  64
  65
  66
  67
  68
  69
  70
  71
  72
  73
  74
  75
  76
  77
  78
  79
  80
  81
  82
  83
  84
  85
  86
  87
  88
  89
  90
  91
  92
  93
  94
  95
  96
  97
  98
  99
 100
 101
 102
 103
 104
 105
 106
 107
 108
 109
 110
 111
 112
 113
 114
 115
 116
 117
 118
 119
 120
 121
 122
 123
 124
 125
 126
 127
 128
 129
 130
 131
 132
 133
 134
 135
 136
 137
 138
 139
 140
 141
 142
 143
 144
 145
 146
 147
 148
 149
 150
 151
 152
 153
 154
 155
 156
 157
 158
 159
 160
 161
 162
 163
 164
 165
 166
 167
 168
 169
 170
 171
 172
 173
 174
 175
 176
 177
 178
 179
 180
 181
 182
 183
 184
 185
 186
 187
 188
 189
 190
 191
 192
 193
 194
 195
 196
 197
 198
 199
 200
 201
 202
 203
 204
 205
 206
 207
 208
 209
 210
 211
 212
 213
 214
 215
 216
 217
 218
 219
 220
 221
 222
 223
 224
 225
 226
 227
 228
 229
 230
 231
 232
 233
 234
 235
 236
 237
 238
 239
 240
 241
 242
 243
 244
 245
 246
 247
 248
 249
 250
 251
 252
 253
 254
 255
 256
 257
 258
 259
 260
 261
 262
 263
 264
 265
 266
 267
 268
 269
 270
 271
 272
 273
 274
 275
 276
 277
 278
 279
 280
 281
 282
 283
 284
 285
 286
 287
 288
 289
 290
 291
 292
 293
 294
 295
 296
 297
 298
 299
 300
 301
 302
 303
 304
 305
 306
 307
 308
 309
 310
 311
 312
 313
 314
 315
 316
 317
 318
 319
 320
 321
 322
 323
 324
 325
 326
 327
 328
 329
 330
 331
 332
 333
 334
 335
 336
 337
 338
 339
 340
 341
 342
 343
 344
 345
 346
 347
 348
 349
 350
 351
 352
 353
 354
 355
 356
 357
 358
 359
 360
 361
 362
 363
 364
 365
 366
 367
 368
 369
 370
 371
 372
 373
 374
 375
 376
 377
 378
 379
 380
 381
 382
 383
 384
 385
 386
 387
 388
 389
 390
 391
 392
 393
 394
 395
 396
 397
 398
 399
 400
 401
 402
 403
 404
 405
 406
 407
 408
 409
 410
 411
 412
 413
 414
 415
 416
 417
 418
 419
 420
 421
 422
 423
 424
 425
 426
 427
 428
 429
 430
 431
 432
 433
 434
 435
 436
 437
 438
 439
 440
 441
 442
 443
 444
 445
 446
 447
 448
 449
 450
 451
 452
 453
 454
 455
 456
 457
 458
 459
 460
 461
 462
 463
 464
 465
 466
 467
 468
 469
 470
 471
 472
 473
 474
 475
 476
 477
 478
 479
 480
 481
 482
 483
 484
 485
 486
 487
 488
 489
 490
 491
 492
 493
 494
 495
 496
 497
 498
 499
 500
 501
 502
 503
 504
 505
 506
 507
 508
 509
 510
 511
 512
 513
 514
 515
 516
 517
 518
 519
 520
 521
 522
 523
 524
 525
 526
 527
 528
 529
 530
 531
 532
 533
 534
 535
 536
 537
 538
 539
 540
 541
 542
 543
 544
 545
 546
 547
 548
 549
 550
 551
 552
 553
 554
 555
 556
 557
 558
 559
 560
 561
 562
 563
 564
 565
 566
 567
 568
 569
 570
 571
 572
 573
 574
 575
 576
 577
 578
 579
 580
 581
 582
 583
 584
 585
 586
 587
 588
 589
 590
 591
 592
 593
 594
 595
 596
 597
 598
 599
 600
 601
 602
 603
 604
 605
 606
 607
 608
 609
 610
 611
 612
 613
 614
 615
 616
 617
 618
 619
 620
 621
 622
 623
 624
 625
 626
 627
 628
 629
 630
 631
 632
 633
 634
 635
 636
 637
 638
 639
 640
 641
 642
 643
 644
 645
 646
 647
 648
 649
 650
 651
 652
 653
 654
 655
 656
 657
 658
 659
 660
 661
 662
 663
 664
 665
 666
 667
 668
 669
 670
 671
 672
 673
 674
 675
 676
 677
 678
 679
 680
 681
 682
 683
 684
 685
 686
 687
 688
 689
 690
 691
 692
 693
 694
 695
 696
 697
 698
 699
 700
 701
 702
 703
 704
 705
 706
 707
 708
 709
 710
 711
 712
 713
 714
 715
 716
 717
 718
 719
 720
 721
 722
 723
 724
 725
 726
 727
 728
 729
 730
 731
 732
 733
 734
 735
 736
 737
 738
 739
 740
 741
 742
 743
 744
 745
 746
 747
 748
 749
 750
 751
 752
 753
 754
 755
 756
 757
 758
 759
 760
 761
 762
 763
 764
 765
 766
 767
 768
 769
 770
 771
 772
 773
 774
 775
 776
 777
 778
 779
 780
 781
 782
 783
 784
 785
 786
 787
 788
 789
 790
 791
 792
 793
 794
 795
 796
 797
 798
 799
 800
 801
 802
 803
 804
 805
 806
 807
 808
 809
 810
 811
 812
 813
 814
 815
 816
 817
 818
 819
 820
 821
 822
 823
 824
 825
 826
 827
 828
 829
 830
 831
 832
 833
 834
 835
 836
 837
 838
 839
 840
 841
 842
 843
 844
 845
 846
 847
 848
 849
 850
 851
 852
 853
 854
 855
 856
 857
 858
 859
 860
 861
 862
 863
 864
 865
 866
 867
 868
 869
 870
 871
 872
 873
 874
 875
 876
 877
 878
 879
 880
 881
 882
 883
 884
 885
 886
 887
 888
 889
 890
 891
 892
 893
 894
 895
 896
 897
 898
 899
 900
 901
 902
 903
 904
 905
 906
 907
 908
 909
 910
 911
 912
 913
 914
 915
 916
 917
 918
 919
 920
 921
 922
 923
 924
 925
 926
 927
 928
 929
 930
 931
 932
 933
 934
 935
 936
 937
 938
 939
 940
 941
 942
 943
 944
 945
 946
 947
 948
 949
 950
 951
 952
 953
 954
 955
 956
 957
 958
 959
 960
 961
 962
 963
 964
 965
 966
 967
 968
 969
 970
 971
 972
 973
 974
 975
 976
 977
 978
 979
 980
 981
 982
 983
 984
 985
 986
 987
 988
 989
 990
 991
 992
 993
 994
 995
 996
 997
 998
 999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
/*******************************************************************************
**+--------------------------------------------------------------------------+**
**|                                                                          |**
**| Copyright 1998-2008 Texas Instruments, Inc. - http://www.ti.com/         |**
**|                                                                          |**
**| Licensed under the Apache License, Version 2.0 (the "License");          |**
**| you may not use this file except in compliance with the License.         |**
**| You may obtain a copy of the License at                                  |**
**|                                                                          |**
**|     http://www.apache.org/licenses/LICENSE-2.0                           |**
**|                                                                          |**
**| Unless required by applicable law or agreed to in writing, software      |**
**| distributed under the License is distributed on an "AS IS" BASIS,        |**
**| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |**
**| See the License for the specific language governing permissions and      |**
**| limitations under the License.                                           |**
**|                                                                          |**
**+--------------------------------------------------------------------------+**
*******************************************************************************/


/*--------------------------------------------------------------------------*/
/* Module:      TI_AdapterApiC.H*/
/**/
/* Purpose:     This module contains "C" interface for TI WLAN Utility Adapter.*/
/**/
/*--------------------------------------------------------------------------*/
#ifndef _TI_ADAPTER_API_H
#define _TI_ADAPTER_API_H

#include "paramOut.h"
#include "roamingMngrTypes.h"
#include "tiwlnif.h"
#include "TI_IPC_Api.h"


#include "TI_AdapterQOS.h"
#include "TI_AdapterGWSI.h"
#include "TI_AdapterSEC.h"
#include "TI_AdapterSG.h"
#include "TI_AdapterPM.h"

#ifdef EXC_MODULE_INCLUDED
    #include "TI_AdapterEXC.h"
    #define EXC_SUPPORT_H    ADAPTER_EXC
#else
    #define EXC_SUPPORT_H
#endif /*EXC_MODULE_INCLUDED*/

#ifdef TI_DBG     
#include "TI_AdapterDBG.h"
#endif/* TI_DBG*/


#ifdef __cplusplus
extern "C" {
#endif

    
/******************************************************************************

    Name:   TI_AdapterInit
    Desc:   Create and initialize the Utility Adapter object
    Params: pszDeviceName - Pointer to a null-terminated string that contains 
                            the name of the specific WLAN device, If this parameter
                            is NULL, TI_AdapterInit() returns a handle to the adapter
                            object that will work with first founded WLAN device.
    
    Return: If the function succeeds, the return value is a handle to the 
            specified Adapter. If the function fails, the return value is NULL.
    
******************************************************************************/
    TI_HANDLE   TI_AdapterInit              (tiCHAR*    pszDeviceName );

/******************************************************************************

    Name:   TI_AdapterDeinit
    Desc:   This function destroys the Utility Adapter object.
    Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
    Return: TI_RESULT_OK on success. Any other value indicates an error.
    
******************************************************************************/
    tiINT32     TI_AdapterDeinit            (TI_HANDLE  hAdapter      );

/******************************************************************************

    Name:   TI_GetApiVersion
    Desc:   This function retrieves the API version information.
    Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
    Return: TI_RESULT_OK on success. Any other value indicates an error.
    
******************************************************************************/
    tiINT32     TI_GetApiVersion            (TI_HANDLE  hAdapter, tiUINT32* puApiVersion);


/******************************************************************************

    Name:   TI_GetDriverVersion
    Desc:   This function retrieves the driver and firmware version information. 
            PdrvVersion points to a TIWLN_VERSION structure, which is defined in
            tiwlnif.h.
    Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
            pdrvVersion - A pointer to TIWLN_VERSION_EX structure.
    Return: TI_RESULT_OK on success. Any other value indicates an error.
    
******************************************************************************/
tiINT32     TI_GetDriverVersion      (TI_HANDLE  hAdapter, 
                                      TIWLN_VERSION_EX* pdrvVersion ); 


/******************************************************************************

    Name:   TI_GetCurrentAddress
    Desc:   This function retrieves the MAC Address of the wireless card.
    Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
            pCurrentAddr - A pointer to OS_802_11_MAC_ADDRESS that contains the 
                           MAC Address.
    Return: TI_RESULT_OK on success. Any other value indicates an error.
    
******************************************************************************/
tiINT32     TI_GetCurrentAddress     (TI_HANDLE  hAdapter, 
                                      OS_802_11_MAC_ADDRESS* pCurrentAddr);



/******************************************************************************

    Name:   TI_GetDriverCapabilities
    Desc:   This function retrieves the driver capabilities list.
    Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
            pDrvCapabilities - A pointer to a OS_802_11_DRIVER_CAPABILITIES 
                               structure that contains the WiLink™ 4.0 driver 
                               capabilities.
    Return: TI_RESULT_OK on success. Any other value indicates an error.
    
******************************************************************************/
tiINT32     TI_GetDriverCapabilities(TI_HANDLE  hAdapter, 
                                     OS_802_11_DRIVER_CAPABILITIES* pDrvCapabilities);

/******************************************************************************

    Name:   TI_SetBSSID
    Desc:   Specify the BSSID to connect.
    Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
            pAddrBSSID - A pointer to an OS_802_11_MAC_ADDRESS structure.
    Return: TI_RESULT_OK on success. Any other value indicates an error.
    
******************************************************************************/
tiINT32     TI_SetBSSID                 (TI_HANDLE  hAdapter, 
                                         OS_802_11_MAC_ADDRESS *pAddrBSSID);

/******************************************************************************

    Name:   TI_GetBSSID
    Desc:   This function retrieves the BSSID of the current connection
    Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
            pAddrBSSID - A pointer to an OS_802_11_MAC_ADDRESS structure.
    Return: TI_RESULT_OK on success. Any other value indicates an error.
    
******************************************************************************/
tiINT32     TI_GetBSSID                 (TI_HANDLE  hAdapter, 
                                         OS_802_11_MAC_ADDRESS *pAddrBSSID);

/******************************************************************************

    Name:   TI_GetBSSIDList
    Desc:   This function retrieves the BSSID list from the driver after a scan
            operation completes. ppBSSIDlist points to an OS_802_11_BSSID_LIST_EX
            structure, which is defined in osDot11.h.
    Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
            pAddrBSSID - A pointer to an OS_802_11_BSSID_LIST structure.
    Return: TI_RESULT_OK on success. Any other value indicates an error.
    
******************************************************************************/
tiINT32     TI_GetBSSIDList             (TI_HANDLE  hAdapter, 
                                         OS_802_11_BSSID_LIST_EX** ppBSSIDlist );



/******************************************************************************

    Name:   TI_GetFullBSSIDList
    Desc:   This function is almost the same as TI_SetBSSIDList, the only 
            difference is that is retrieves more information than TI_SetBSSIDList.
    Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
            ppBSSIDlist - A pointer to an OS_802_11_BSSID_LIST structure.
    Return: TI_RESULT_OK on success. Any other value indicates an error.
    
******************************************************************************/
tiINT32     TI_GetFullBSSIDList         (TI_HANDLE  hAdapter, 
                                         OS_802_11_BSSID_LIST_EX** ppBSSIDlist );

/******************************************************************************

    Name:   TI_GetSelectedBSSIDInfo
    Desc:   Retrieves the BSSID information from the driver after a scan operation
            completes and select was performed. The information structure is 
            published in OS_802_11_BSSID_EX format (see TI_GetBSSIDList() command).
    Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
            pSelectedBSSIDInfo - A pointer to a structure to be filled with the 
                                 selected BSSID information.
    Return: TI_RESULT_OK on success. Any other value indicates an error.
    
******************************************************************************/
tiINT32     TI_GetSelectedBSSIDInfo     (TI_HANDLE hAdapter, 
                                         OS_802_11_BSSID_EX  *pSelectedBSSIDInfo);

/******************************************************************************

    Name:   TI_GetPrimaryBSSIDInfo
    Desc:   Retrieves the primary BSSID information from the driver, i.e. the BSSID
                The STA is currently connected to. The information structure is 
            published in OS_802_11_BSSID_EX format (see TI_GetBSSIDList() command).
    Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
            pSelectedBSSIDInfo - A pointer to a structure to be filled with the 
                                 selected BSSID information.
    Return: TI_RESULT_OK on success. Any other value indicates an error.
    
******************************************************************************/
tiINT32     TI_GetPrimaryBSSIDInfo      (TI_HANDLE hAdapter, 
                                         OS_802_11_BSSID_EX  *pSelectedBSSIDInfo);

/******************************************************************************

    Name:   TI_SetDesiredChannel
    Desc:   This function sets the desired operating channel. uDesiredChannel 
            points to a channel number, which can range from 1 to 14, 
            36,40,44,48,52,56,60,64 depended from mode.
    Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
            uDesiredChannel - A pointer to a tiUINT32 that contains the channel
                              number.
    Return: TI_RESULT_OK on success. Any other value indicates an error.
    
******************************************************************************/
tiINT32     TI_SetDesiredChannel        (TI_HANDLE  hAdapter, 
                                         tiUINT32   uDesiredChannel);

/******************************************************************************

    Name:   TI_GetDesiredChannel
    Desc:   This function retrieves the desired operating channel. 
            puDesiredChannel points to a channel number, which can range from 
            1 to 14, 36,40,44,48,52,56,60,64 depended on mode (a/b/g).
    Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
            puDesiredChannel - A pointer to a tiUINT32 that contains the channel
                               number.
    Return: TI_RESULT_OK on success. Any other value indicates an error.
    
******************************************************************************/
tiINT32     TI_GetDesiredChannel        (TI_HANDLE  hAdapter, 
                                         tiUINT32*  puDesiredChannel);

/******************************************************************************

    Name:   TI_GetCurrentChannel
    Desc:   This function retrieves the current operating channel. 
            puDesiredChannel points to a channel number, which can range from 
            1 to 14, 36,40,44,48,52,56,60,64 depended on mode (a/b/g).
    Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
            puCurrentChannel - A pointer to a tiUINT32 that contains the current
                               channel number.
    Return: TI_RESULT_OK on success. Any other value indicates an error.
    
******************************************************************************/
tiINT32     TI_GetCurrentChannel        (TI_HANDLE  hAdapter, 
                                         tiUINT32*  puCurrentChannel);

/******************************************************************************

    Name:   TI_GetDesiredRate
    Desc:   This function retrieves the desired transmission rate for the adapter.
    Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
            puDesiredRate - A pointer to a tiUINT32 that contains the desired 
                            transmission rate
    Return: TI_RESULT_OK on success. Any other value indicates an error.
    
******************************************************************************/
tiINT32     TI_GetDesiredRate           (TI_HANDLE  hAdapter, 
                                         tiUINT32*  puDesiredRate);
/******************************************************************************

    Name:   TI_GetCurrentRate
    Desc:   This function retrieves the current transmission rate for the 
            adapter. The adapter may change the desired rate if using AUTO rate.
    Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
            puCurrentRate - A pointer to a tiUINT32 that contains the current 
                            transmission rate
    Return: TI_RESULT_OK on success. Any other value indicates an error.
    
******************************************************************************/
tiINT32     TI_GetCurrentRate           (TI_HANDLE  hAdapter, 
                                         tiUINT32*  puCurrentRate);

/******************************************************************************

    Name:   TI_SetFragmentThreshold
    Desc:   This function sets the current fragmentation threshold.
            Only packets that are greater than the fragmentation threshold are
            fragmented.
    Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
            uFragmentThreshold - a pointer to a tiUINT32 that contains the 
                                 fragmentation threshold in bytes.
    Return: TI_RESULT_OK on success. Any other value indicates an error.
    
******************************************************************************/
tiINT32     TI_SetFragmentThreshold     (TI_HANDLE  hAdapter, 
                                         tiUINT32   uFragmentThreshold );

/******************************************************************************

    Name:   TI_GetFragmentThreshold
    Desc:   This function retrieves the current fragmentation threshold.
            Only packets that are greater than the fragmentation threshold 
            are fragmented.
    Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
            uFragmentThreshold - A pointer to a tiUINT32 that contains the 
                                 fragmentation threshold in bytes.
    Return: TI_RESULT_OK on success. Any other value indicates an error.
    
******************************************************************************/
tiINT32     TI_GetFragmentThreshold     (TI_HANDLE  hAdapter, 
                                         tiUINT32*  puFragmentThreshold);

/******************************************************************************

    Name:   TI_SetBSSType
    Desc:   This function sets the network mode, either Infrastructure or Ad Hoc.
            uBSSType points to an OS_802_11_NETWORK_MODE enum, which is defined in
            osDot11.h.
    Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
            uBSSType - Points to the network mode (OS_802_11_NETWORK_MODE enum):
                       os802_11IBSS - for Ad Hoc mode.
                       os802_11Infrastructure - for infrastructure mode.
                       os802_11AutoUnknown - for automatic mode in which the 
                                             adapter can switch between Ad Hoc and 
                                             infrastructure modes as required.
    Return: TI_RESULT_OK on success. Any other value indicates an error.
    
******************************************************************************/
tiINT32     TI_SetBSSType               (TI_HANDLE  hAdapter, 
                                         OS_802_11_NETWORK_MODE  uBSSType );

/******************************************************************************

    Name:   TI_GetBSSType
    Desc:   This function retrieves the network mode. For more information see 
            TI_SetBSSID().
    Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
            puBSSType - A pointer to the network mode (OS_802_11_NETWORK_MODE enum):
                        see TI_SetBSSType.
    Return: TI_RESULT_OK on success. Any other value indicates an error.
    
******************************************************************************/
tiINT32     TI_GetBSSType               (TI_HANDLE  hAdapter, 
                                         OS_802_11_NETWORK_MODE* puBSSType);



/******************************************************************************

    Name:   TI_SetBeaconFilterDesiredState
    Desc:   
    Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
            uBeaconFilterMode - 
    Return: TI_RESULT_OK on success. Any other value indicates an error.
    
******************************************************************************/
tiINT32     TI_SetBeaconFilterDesiredState(TI_HANDLE  hAdapter, 
                                           OS_802_11_BEACON_FILTER_MODE uBeaconFilterMode );

/******************************************************************************

    Name:   TI_GetBeaconFilterDesiredState
    Desc:   
    Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
            uBeaconFilterMode - 
    Return: TI_RESULT_OK on success. Any other value indicates an error.
    
******************************************************************************/
tiINT32     TI_GetBeaconFilterDesiredState(TI_HANDLE  hAdapter, 
                                           tiUINT8* uBeaconFilterMode );

/******************************************************************************

    Name:   TI_SetRTSThreshold
    Desc:   This function sets the current RTS (Request to Send) threshold.
            The value specifies the packet size, in bytes, beyond which the WLAN
            invokes its RTS/CTS mechanism. Packets that exceed the specified RTS
            threshold trigger the RTS/CTS mechanism. The NIC transmits smaller
            packets without RTS/CTS.
            An RTS threshold value of 0 indicates that the NIC should transmit all
            packets with RTS/CTS.
    Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
            uRTSThreshold - Contains the RTS Threshold in bytes.
    Return: TI_RESULT_OK on success. Any other value indicates an error.
    
******************************************************************************/
tiINT32     TI_SetRTSThreshold          (TI_HANDLE  hAdapter, 
                                         tiUINT32   uRTSThreshold  );

/******************************************************************************

    Name:   TI_GetRTSThreshold
    Desc:   This function retrieves the current RTS (Request to Send) threshold.
    Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
            puRTSThreshold - A pointer to a tiUINT32 that contains the RTS 
                             Threshold in bytes.
    Return: TI_RESULT_OK on success. Any other value indicates an error.
    
******************************************************************************/
tiINT32     TI_GetRTSThreshold          (TI_HANDLE  hAdapter, 
                                         tiUINT32*  puRTSThreshold );  

/******************************************************************************

    Name:   TI_SetShortPreamble
    Desc:   This function sets the current preamble length. 
    Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
    uShortPreamble - Indicates the preamble length. A value of 0 specifies long 
                     preambles and a value of 1 specifies short preambles.
    Return: TI_RESULT_OK on success. Any other value indicates an error.
    
******************************************************************************/
tiINT32     TI_SetShortPreamble         (TI_HANDLE  hAdapter, 
                                         tiUINT32   uShortPreamble );

/******************************************************************************

    Name:   TI_GetShortPreamble
    Desc:   This function retrieves the current preamble length. A value of 0 
            (zero) in puShortPreamble specifies long preambles and a value of 
            1 (one) specifies short preambles.
    Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
            puShortPreamble - A pointer to a tiUINT32 that indicates the 
                              preamble length.
    Return: TI_RESULT_OK on success. Any other value indicates an error.
    
******************************************************************************/
tiINT32     TI_GetShortPreamble         (TI_HANDLE  hAdapter, 
                                         tiUINT32*  puShortPreamble);


/******************************************************************************

    Name:   TI_SetSSID
    Desc:   This function sets desired SSID.
    Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
            pSSIDname - Pointer to a null-terminated string that contains a 
                        desired SSID
    Return: TI_RESULT_OK on success. Any other value indicates an error.
    
******************************************************************************/
tiINT32     TI_SetSSID                  (TI_HANDLE  hAdapter, 
                                         tiUINT8*   pSSIDname   );

/******************************************************************************

    Name:   TI_GetDesiredSSID
    Desc:   This function retrieves the desired SSID.
    Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
            pSSID - Pointer to a null-terminated string that contains a desired
                    SSID.
    Return: TI_RESULT_OK on success. Any other value indicates an error.
    
******************************************************************************/
tiINT32     TI_GetDesiredSSID           (TI_HANDLE  hAdapter, 
                                         OS_802_11_SSID* pSSID  );

/******************************************************************************

    Name:   TI_GetCurrentSSID
    Desc:   This function retrieves the current SSID.
    Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
            pSSID - Pointer to a null-terminated string that contains a current
                    SSID.
    Return: TI_RESULT_OK on success. Any other value indicates an error.
    
******************************************************************************/
tiINT32     TI_GetCurrentSSID           (TI_HANDLE  hAdapter, 
                                         OS_802_11_SSID* pSSID   );

/******************************************************************************

    Name:   TI_GetStatistics
    Desc:   This function retrieves driver statistics. pStatistics points to a 
            TIWLN_STATISTICS structure, which is defined in tiwlnif.h. The 
            OS_802_11* types are defined in osDot11.h.
    Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
            pStatistics - A pointer to a TIWLN_STATISTICS structure.
    Return: TI_RESULT_OK on success. Any other value indicates an error.
    
******************************************************************************/
tiINT32     TI_GetStatistics            (TI_HANDLE  hAdapter, 
                                         TIWLN_STATISTICS* pStatistics );

/******************************************************************************

    Name:   TI_GetTxStatistics
    Desc:   This function retrieves driver statistics. pStatistics points to a
            TIWLN_TX_STATISTICS structure, which is defined in tiwlnif.h. The 
            OS_802_11* types are defined in osDot11.h. The TIWLN_TX_STATISTICS
            structure includes the structure txDataCounters_t.
    Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
            pTxStatistics - A pointer to a TIWLN_TX_STATISTICS structure.
            clearStatsFlag - Indication whether to clear the statistic counters
                             upon read.
    Return: TI_RESULT_OK on success. Any other value indicates an error.
    
******************************************************************************/
tiINT32     TI_GetTxStatistics          (TI_HANDLE  hAdapter, 
                                         TIWLN_TX_STATISTICS* pTxStatistics, 
                                         UINT32 clearStatsFlag );

/******************************************************************************

Name:   TI_EnableDisableRxDataFilters
Desc:   This function enables or disables the Rx Data Filter feature.

Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
        enable - 0 to disable the feature, any other value to enable
Return: TI_RESULT_OK on success. Any other value indicates an error.

******************************************************************************/
tiINT32     TI_EnableDisableRxDataFilters(TI_HANDLE hAdapter,
                                          tiBOOL enabled);


/******************************************************************************

Name:   TI_AddRxDataFilter
Desc:   This function adds the given filter to the WLAN driver's list of
data filters.

Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
pRequest - A pointer to the data filter request.
Return: TI_RESULT_OK on success, RX_FILTER_ALREADY_EXISTS if filter
        already exists. Any other value indicates an error.

******************************************************************************/
tiINT32     TI_AddRxDataFilter          (TI_HANDLE hAdapter,
                                         TIWLAN_DATA_FILTER_REQUEST * pRequest);


/******************************************************************************

Name:   TI_GetRxDataFiltersStatistics
Desc:   This function adds the given filter to the WLAN driver's list of
        data filters.

Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
        pRequest - A pointer to the data filter request.
Return: TI_RESULT_OK on success. Any other value indicates an error.

******************************************************************************/
tiINT32     TI_GetRxDataFiltersStatistics(TI_HANDLE hAdapter,
                                          TIWLAN_DATA_FILTER_STATISTICS * pStatistics);


/******************************************************************************

Name:   TI_GetPowerConsumptionStatistics
Desc:   This function retrieves the power consumption statisticts from the FW.

Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
        pStatistics - A pointer to the statistics data structure.
Return: TI_RESULT_OK on success. Any other value indicates an error.

******************************************************************************/
tiINT32     TI_GetPowerConsumptionStatistics(TI_HANDLE hAdapter, PowerConsumptionTimeStat_t * pStatistics);



/******************************************************************************

Name:   TI_RemoveRxDataFilter
Desc:   This function removes a previously added filter with the given
        details from the WLAN driver's list of data filters. Note that the
        request must be identical to the one given when the filter was added.

Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
        pRequest - A pointer to the data filter request.
Return: TI_RESULT_OK on success, RX_FILTER_DOES_NOT_EXIST if filter
        doesn't exist. Any other value indicates an error.

******************************************************************************/
tiINT32     TI_RemoveRxDataFilter          (TI_HANDLE hAdapter,
                                            TIWLAN_DATA_FILTER_REQUEST * pRequest);


/******************************************************************************

    Name:   TI_SetSupportedRates
    Desc:   This function sets the transmission rates supported by the driver.
            This is the list of basic and supported rates. Basic rates have MSB
            set to 1 (one).
    Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
            pSupportedRatesLst - A pointer to a buffer that contains list of rates.
            uBufLength - Contains a size of buffer.
    Return: TI_RESULT_OK on success. Any other value indicates an error.
    
******************************************************************************/
tiINT32     TI_SetSupportedRates        (TI_HANDLE  hAdapter, 
                                         tiUINT8*   pSupportedRatesLst, 
                                         tiUINT32  uBufLength );

/******************************************************************************

    Name:   TI_GetSupportedRates
    Desc:   This function retrieves the transmission rates supported by the driver.
    Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
            pSupportedRatesLst - A pointer to a buffer that contains list of rates.
            uBufLength - Contains a size of buffer
    Return: TI_RESULT_OK on success. Any other value indicates an error.
    
******************************************************************************/
tiINT32     TI_GetSupportedRates        (TI_HANDLE  hAdapter, 
                                         tiUINT8*   pSupportedRatesLst, 
                                         tiUINT32  uBufLength );


/******************************************************************************

    Name:   TI_SetIBSSProtection
    Desc:   Sets the 802.11g extended rate protection (ERP) configuration of 
            the driver. Configuration of ERP is only possible when the adapter 
            is operating in Ad Hoc mode. In infrastructure mode, the driver uses
            the ERP method supported by the AP.
    Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
            uProtection - Indicates the 802.11g protections.
    Return: TI_RESULT_OK on success. Any other value indicates an error.
    Note:   This function supported only on WiLink™ 4.0 - based designs.
    
******************************************************************************/
tiINT32     TI_SetIBSSProtection        (TI_HANDLE  hAdapter, 
                                         tiUINT32  uProtection );

/******************************************************************************

    Name:   TI_GetIBSSProtection
    Desc:   Returns the 802.11g extended rate protection (ERP) configuration of 
            the driver. For more information see TI_SetIBSSProtection().
    Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
            puProtection - A pointer to a tiUINT32 that indicates the 802.11g
                           protections.
    Return: TI_RESULT_OK on success. Any other value indicates an error.
    
******************************************************************************/
tiINT32     TI_GetIBSSProtection        (TI_HANDLE  hAdapter, 
                                         tiUINT32* puProtection);

/******************************************************************************

    Name:   TI_GetDriverState
    Desc:   This function returns a driver's state.
    Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
            puDriverState - A pointer to a driverState_e that indicates the 
                            driver state:
                            DRIVER_STATE_IDLE = 0,
                            DRIVER_STATE_SCANNING = 1,
                            DRIVER_STATE_SELECTING = 2,
                            DRIVER_STATE_CONNECTING = 3,
                            DRIVER_STATE_CONNECTED = 4,
                            DRIVER_STATE_DISCONNECTED = 5,
    Return: TI_RESULT_OK on success. Any other value indicates an error.
    
******************************************************************************/
tiINT32     TI_GetDriverState           (TI_HANDLE  hAdapter,  
                                         driverState_e* puDriverState );

/******************************************************************************

    Name:   TI_SetShortSlot
    Desc:   Sets the 802.11g slot time. 
            A value of 0 (zero) in uShortSlot indicates a long slot time (20 uSec) 
            A value of 1 (one) in uShortSlot indicates a short slot time (9 uSec).
    Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
            uShortSlot - Indicates the 802.11g slot time.
    Return: TI_RESULT_OK on success. Any other value indicates an error.
    Note: This function supported only on WiLink™ 4.0 - based designs.
    
******************************************************************************/
tiINT32     TI_SetShortSlot             (TI_HANDLE  hAdapter, 
                                         tiUINT32  uShortSlot  );

/******************************************************************************

    Name:   TI_GetShortSlot
    Desc:   Returns the 802.11g slot time. Refer to TI_SetShortSlot.
    Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
            puShortSlot - pointer to a tiUINT32 that indicates the 802.11g slot
                          time.
    Return: TI_RESULT_OK on success. Any other value indicates an error.
    
******************************************************************************/
tiINT32     TI_GetShortSlot             (TI_HANDLE  hAdapter, 
                                         tiUINT32* puShortSlot );

/******************************************************************************

    Name:   TI_SetTxPowerDbm
    Desc:   This function sets the maximum station transmit power in Dbm. The station 
            also takes into consideration two additional power level settings 
            AP-IE and Chip ID. The final setting is the minimum of among these
            three settings.
    Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
            uTxPower - Contains a station power level
    Return: TI_RESULT_OK on success. Any other value indicates an error.
    
******************************************************************************/
tiINT32     TI_SetTxPowerDbm          (TI_HANDLE  hAdapter, 
                                         tiUINT8  uTxPower);

/******************************************************************************

    Name:   TI_GetTxPowerLevel
    Desc:   Retrieve the current station power level table.
    Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
            puTxPower - A pointer to a tiCHAR that contains the station power 
                        level table.
    Return: TI_RESULT_OK on success. Any other value indicates an error.
    
******************************************************************************/
tiINT32     TI_GetTxPowerLevel          (TI_HANDLE  hAdapter, 
                                         tiCHAR* puTxPower);

/******************************************************************************

    Name:   TI_GetTxPowerDbm
    Desc:   Retrieve the current Tx Power in Dbm/10 value.
    Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
            puTxPower - A pointer to a tiCHAR that contains the station TX power
                        in Dbm value.
    Return: TI_RESULT_OK on success. Any other value indicates an error.
    
******************************************************************************/
tiINT32     TI_GetTxPowerDbm            (TI_HANDLE  hAdapter, 
                                         tiCHAR* puTxPower);

/******************************************************************************

    Name:   TI_GetSupportedNetworkTypes
    Desc:   This function retrieves the supported network types.
    Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
            pNetTypeLst - Pointer to the buffer that contains list of supported 
                          network types.
            uMaxNetTypes - Maximum number of types that will contains in the 
                           buffer pNetTypeLst.
    Return: TI_RESULT_OK on success. Any other value indicates an error.
    
******************************************************************************/
tiINT32     TI_GetSupportedNetworkTypes (TI_HANDLE  hAdapter, 
                                         OS_802_11_NETWORK_TYPE* pNetTypeLst, 
                                         tiUINT32 uMaxNetTypes);

/******************************************************************************

    Name:   TI_SetNetworkTypeInUse
    Desc:   This function sets the network type.
    Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
            uNetType - Contains network type:
                        os802_11FH,
                        os802_11DS,
                        os802_11OFDM5,
                        os802_11OFDM24,
                        os802_11OFDM24_AND_5 
    Return: TI_RESULT_OK on success. Any other value indicates an error.
    
******************************************************************************/
tiINT32     TI_SetNetworkTypeInUse      (TI_HANDLE  hAdapter, 
                                         OS_802_11_NETWORK_TYPE   uNetType  );

/******************************************************************************

    Name:   TI_GetNetworkTypeInUse
    Desc:   This function retrieves the current network type in use.
    Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
            puNetType - Pointer to the buffer that contains value of network type.
    Return: TI_RESULT_OK on success. Any other value indicates an error.
    
******************************************************************************/
tiINT32     TI_GetNetworkTypeInUse      (TI_HANDLE  hAdapter, 
                                         OS_802_11_NETWORK_TYPE*  puNetType );


/******************************************************************************

    Name:   TI_GetNumberOfAntennas
    Desc:   This function retrieves the number of antennas.
    Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
            puNumberOfAntennas - 
    Return: TI_RESULT_OK on success. Any other value indicates an error.
    
******************************************************************************/
tiINT32     TI_GetNumberOfAntennas      (TI_HANDLE  hAdapter, 
                                         tiUINT32*  puNumberOfAntennas    );

/******************************************************************************

    Name:   TI_SetAntennaDiversityParams
    Desc:   This function sets various antenna diversity parameters.
    Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
            pAntennaDiversityOptions - Pointer to antenna diversity parameters 
                  structure holding required parameters:
                  enableRxDiversity - specifies whether antenna diversity should
                                      be enables for reception.
                  rxSelectedAntenna - specifies which antenna to use for reception.
                  enableTxDiversity - specifies whether antenna diversity should 
                                      be enables for transmission.
                  txSelectedAntenna - specifies which antenna to use for 
                                      transmission.
                  rxTxSharedAnts    - specifies whether to share reception and
                                      transmission antennas.
    Return: TI_RESULT_OK on success. Any other value indicates an error.
    
******************************************************************************/
tiINT32     TI_SetAntennaDiversityParams(TI_HANDLE  hAdapter, 
                                         PTIWLAN_ANT_DIVERSITY pAntennaDiversityOptions);


/******************************************************************************

    Name:   TI_GetRegDomainTable
    Desc:   This function retrieves the regularity domain table.
    Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
            pRegDomainTable - Pointer to TIWLAN_REGDOMAINS structure which includes
                              regulatory domains table and its size.
    Return: TI_RESULT_OK on success. Any other value indicates an error.
    
******************************************************************************/
tiINT32     TI_GetRegDomainTable(TI_HANDLE  hAdapter, 
                                 TIWLN_REGDOMAINS* pRegDomainTable);                                         
                                         
/******************************************************************************

    Name:   TI_EnableDisable_802_11d
    Desc:   This function enables or disables the 802.11d protocol.
    Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
            enableDisable_802_11d - Enable or Disable value
    Return: TI_RESULT_OK on success. Any other value indicates an error.
    
******************************************************************************/
tiINT32     TI_EnableDisable_802_11d    (TI_HANDLE  hAdapter, 
                                         tiUINT8 enableDisable_802_11d);

/******************************************************************************

    Name:   TI_Get_802_11d
    Desc:   This function retrieves whether the 802.11d protocol in enabled or 
            disabled.
    Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
            enableDisable_802_11d - A pointer to a tiUINT8 which returns an 
                                    Enable or Disable value.
    Return: TI_RESULT_OK on success. Any other value indicates an error.
    
******************************************************************************/
tiINT32     TI_Get_802_11d              (TI_HANDLE  hAdapter, 
                                         tiUINT8 *enableDisable_802_11d);

/******************************************************************************

    Name:   TI_EnableDisable_802_11h
    Desc:   This function enables or disables the 802.11h protocol.
    Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
            enableDisable_802_11h - Enable or Disable value
    Return: TI_RESULT_OK on success. Any other value indicates an error.
    
******************************************************************************/
tiINT32     TI_EnableDisable_802_11h    (TI_HANDLE  hAdapter, 
                                         tiUINT8 enableDisable_802_11h);

/******************************************************************************

    Name:   TI_Get_802_11h
    Desc:   This function retrieves whether the 802.11h protocol in enabled or
            disabled.
    Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
            enableDisable_802_11h - A pointer to a tiUINT8 which returns an 
                                    Enable or Disable value.
    Return: TI_RESULT_OK on success. Any other value indicates an error.
    
******************************************************************************/
tiINT32     TI_Get_802_11h              (TI_HANDLE  hAdapter, 
                                         tiUINT8 *enableDisable_802_11h);

/******************************************************************************

    Name:   TI_Set_countryIeFor2_4_Ghz
    Desc:   
    Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
            countryIe - 
    Return: TI_RESULT_OK on success. Any other value indicates an error.
    
******************************************************************************/
tiINT32     TI_Set_countryIeFor2_4_Ghz  (TI_HANDLE  hAdapter, 
                                         country_t countryIe);

/******************************************************************************

    Name:   TI_Get_countryIeFor2_4_Ghz
    Desc:   
    Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
            countryString - 
    Return: TI_RESULT_OK on success. Any other value indicates an error.
    
******************************************************************************/
tiINT32     TI_Get_countryIeFor2_4_Ghz  (TI_HANDLE  hAdapter, 
                                         tiUINT8 **countryString);

/******************************************************************************

    Name:   TI_Set_countryIeFor5_Ghz
    Desc:   
    Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
            countryIe - 
    Return: TI_RESULT_OK on success. Any other value indicates an error.
    
******************************************************************************/
tiINT32     TI_Set_countryIeFor5_Ghz    (TI_HANDLE  hAdapter, 
                                         country_t countryIe);

/******************************************************************************

    Name:   TI_Get_countryIeFor5_Ghz
    Desc:   
    Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
            countryString - 
    Return: TI_RESULT_OK on success. Any other value indicates an error.
    
******************************************************************************/
tiINT32     TI_Get_countryIeFor5_Ghz    (TI_HANDLE  hAdapter, 
                                         tiUINT8 **countryString);

/******************************************************************************

    Name:   TI_Set_minMaxDfsChannels
    Desc:   
    Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
            DFS_ChannelRange - Minimum and maximum cahnnel numbers for which 
                               DFS is used
    Return: TI_RESULT_OK on success. Any other value indicates an error.
    
******************************************************************************/
tiINT32     TI_Set_minMaxDfsChannels    (TI_HANDLE  hAdapter,
                                         DFS_ChannelRange_t DFS_ChannelRange);

/******************************************************************************

    Name:   TI_Get_minMaxDfsChannels
    Desc:   
    Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
            DFS_ChannelRange - Minimum and maximum cahnnel numbers for which 
                               DFS is used
    Return: TI_RESULT_OK on success. Any other value indicates an error.
    
******************************************************************************/
tiINT32     TI_Get_minMaxDfsChannels    (TI_HANDLE  hAdapter,
                                         DFS_ChannelRange_t *DFS_ChannelRange);

/******************************************************************************

    Name:   TI_Start
    Desc:   This command starts the driver operation. The driver will start 
            scanning and will try to connect according to its configuration.
    Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
    Return: TI_RESULT_OK on success. Any other value indicates an error.
    Note:   Used for Linux only.

******************************************************************************/
    tiINT32     TI_Start                    (TI_HANDLE  hAdapter);

/******************************************************************************

    Name:   TI_Stop
    Desc:   This command blocks the driver's API and turns off the WiLink™ 4.0 
            HW. The driver will be kept loaded and will keep its configuration
    Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
    Return: TI_RESULT_OK on success. Any other value indicates an error.
    Note:   Used for Linux only.
    
******************************************************************************/
    tiINT32     TI_Stop                     (TI_HANDLE  hAdapter);

/******************************************************************************

    Name:   TI_StartSM
    Desc:   This command starts the Supplicant Manager module operation.
    Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
    Return: TI_RESULT_OK on success. Any other value indicates an error.
    
******************************************************************************/
    tiINT32     TI_StartSM                  (TI_HANDLE  hAdapter);

/******************************************************************************

    Name:   TI_StopSM
    Desc:   This command stops the supplicant manager operation.
    Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
    Return: TI_RESULT_OK on success. Any other value indicates an error.
    
******************************************************************************/
    tiINT32     TI_StopSM                   (TI_HANDLE  hAdapter);

/******************************************************************************

    Name:   TI_GetRSSI
    Desc:   This function returns the current RSSI.
    Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
            pRSSI - The current RSSI level.
    Return: TI_RESULT_OK on success. Any other value indicates an error.
    
******************************************************************************/
tiINT32     TI_GetRSSI                  (TI_HANDLE  hAdapter, 
                                         tiINT32* pRSSI); 

/******************************************************************************

    Name:   TI_GetSNR
    Desc:   This function returns the current SNR.
    Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
            pSNR - The current SNR level.
    Return: TI_RESULT_OK on success. Any other value indicates an error.
    
******************************************************************************/
tiINT32     TI_GetSNR                   (TI_HANDLE  hAdapter, 
                                         tiUINT32* pSNR); 

/******************************************************************************

    Name:   TI_Disassociate
    Desc:   This command sets Junk SSID to the Driver. It makes the WiLink™ 4.0
            to disassociate any current AP and to return to idle state. The 
            Driver does not attempt to connect to any other AP until a valid 
            SSID is set.
    Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
    Return: TI_RESULT_OK on success. Any other value indicates an error.
    
******************************************************************************/
    tiINT32     TI_Disassociate             (TI_HANDLE  hAdapter);



/******************************************************************************

    Name:   TI_RegisterEvent
    Desc:   This function registers a driver event, which will trigger the 
            specified callback function.
    Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
            pEventParams - Information about the event to which you are registering.
    Return: TI_RESULT_OK on success. Any other value indicates an error.
    
******************************************************************************/
tiINT32     TI_RegisterEvent            (TI_HANDLE  hAdapter, 
                                         IPC_EVENT_PARAMS*     pEventParams );

/******************************************************************************

    Name:   TI_UnRegisterEvent
    Desc:   This function un-registers a driver event.
    Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
            pEventParams - Information about the event to which you are 
                           registering.
    Return: TI_RESULT_OK on success. Any other value indicates an error.
    
******************************************************************************/
tiINT32     TI_UnRegisterEvent          (TI_HANDLE  hAdapter, 
                                         IPC_EVENT_PARAMS*     pEventParams );

/******************************************************************************

    Name:   TI_StartScan
    Desc:   Starts a scan operation. The user can define the scan parameters.
    Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
            pScanParams - The parameters for the requested scan.
    Return: TI_RESULT_OK on success. Any other value indicates an error.
    Note:   up to 16 scanned channels.
    
******************************************************************************/
tiINT32     TI_StartScan                (TI_HANDLE  hAdapter, 
                                         scan_Params_t *pScanParams);

/******************************************************************************

    Name:   TI_StopScan
    Desc:   Send a command to the WiLink™ 4.0 driver to terminate the scan process.
    Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
    Return: TI_RESULT_OK on success. Any other value indicates an error.
    
******************************************************************************/
    tiINT32     TI_StopScan                 (TI_HANDLE  hAdapter);
    
/******************************************************************************

    Name:   TI_SetScanPolicy
    Desc:   Sends a command buffer to the driver scan manager logic.
    Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
            buffer - A pointer to the buffer holding the scan policy.
            bufferLength - The length of the above buffer.
    Return: TI_RESULT_OK on success. Any other value indicates an error.
    
******************************************************************************/
tiINT32     TI_SetScanPolicy            (TI_HANDLE  hAdapter, 
                                         UINT8* buffer, 
                                         UINT16 bufferLength);

/******************************************************************************

    Name:   TI_GetScanBssList
    Desc:   Retrieves the scan manager tracking BSS list. This function should 
            be used for debug purposes only.
    Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
            bssList - A pointer to a buffer in which the BSS list will be stored.                      
    Return: TI_RESULT_OK on success. Any other value indicates an error.
    
******************************************************************************/
tiINT32     TI_GetScanBssList           (TI_HANDLE  hAdapter, 
                                         bssList_t* bssList);






    /* ****************************************** */
/******************************************************************************

    Name:   TI_WLAN_IsDriverRun 
    Desc:   This command returns the driver status, running or Idle.
    Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
            pbStatus - The Driver status, running or IDLE.
    Return: TI_RESULT_OK on success. Any other value indicates an error.
    
******************************************************************************/
tiINT32     TI_WLAN_IsDriverRun             (TI_HANDLE  hAdapter, 
                                             tiBOOL* pbStatus);

/******************************************************************************

    Name:   TI_Set4XState   
    Desc:   This command sets the 4X state.
    Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
            bStatus - TRUE-4X enabled, FALSE – disabled..
    Return: TI_RESULT_OK on success. Any other value indicates an error.
    Note:   NOT SUPPORTED !!!
    
******************************************************************************/
tiINT32     TI_Set4XState                   (TI_HANDLE  hAdapter, 
                                             tiBOOL bStatus);

/******************************************************************************

    Name:   TI_Get4XState   
    Desc:   This command returns 4X status.
    Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
            pbStatus - .
    Return: TI_RESULT_OK on success. Any other value indicates an error.
    
******************************************************************************/
tiINT32     TI_Get4XState                   (TI_HANDLE  hAdapter, 
                                             tiBOOL* pbStatus);

 
/******************************************************************************

    Name:   TI_SetExtRatesIE    
    Desc:   This command sets the Draft number.
    Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
            uExtRatesIE - The Draft number: 5 or earlier, 6 or later..
    Return: TI_RESULT_OK on success. Any other value indicates an error.
    
******************************************************************************/
tiINT32     TI_SetExtRatesIE                (TI_HANDLE  hAdapter, 
                                             tiUINT32 uExtRatesIE);

/******************************************************************************

    Name:   TI_GetExtRatesIE    
    Desc:   This command returns the Draft number.
    Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
            puExtRatesIE - The Draft number: 5 or earlier, 6 or later..
    Return: TI_RESULT_OK on success. Any other value indicates an error.
    
******************************************************************************/
tiINT32     TI_GetExtRatesIE                (TI_HANDLE  hAdapter, 
                                             tiUINT32* puExtRatesIE);

/******************************************************************************

    Name:   TI_SetEarlyWakeupMode    
    Desc:   This command sets the Early Wakeup mode.
    Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
            uEarlyWakeup - The early Wakeup  mode: 0 - disabled, 1 - enabled
    Return: TI_RESULT_OK on success. Any other value indicates an error.
    
******************************************************************************/
tiINT32      TI_SetEarlyWakeupMode          (TI_HANDLE  hAdapter,
                                              tiUINT8 uEarlyWakeup);

/******************************************************************************

    Name:   TI_GetEarlyWakeupMode    
    Desc:   This command returns the Early Wakeup mode.
    Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
            uEarlyWakeup - The early Wakeup  mode: 0 - disabled, 1 - enabled
    Return: TI_RESULT_OK on success. Any other value indicates an error.
    
******************************************************************************/
tiINT32      TI_GetEarlyWakeupMode         (TI_HANDLE  hAdapter,
                                              tiUINT8* uEarlyWakeup);


/******************************************************************************

    Name:   TI_SetRoamingConfiguration  
    Desc:   The TI_SetRoamingConfiguration() function sends a command buffer to 
            the driver roaming manager logic.
    Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
            buffer - The command buffer.
            bufferLength - The roam command buffer length (bytes).
    Return: TI_RESULT_OK on success. Any other value indicates an error.
    
******************************************************************************/
tiINT32     TI_SetRoamingConfiguration      (TI_HANDLE  hAdapter, 
                                             UINT8* buffer, 
                                             UINT16 bufferLength);

/******************************************************************************

    Name:   TI_GetRoamingConfiguration  
    Desc:   The TI_SetRoamingConfiguration() function sends a command buffer to 
            the driver roaming manager logic.
    Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
            buffer - The command buffer.
            bufferLength - The roam command buffer length (bytes).
    Return: TI_RESULT_OK on success. Any other value indicates an error.
    
******************************************************************************/
tiINT32     TI_GetRoamingConfiguration      (TI_HANDLE  hAdapter, 
                                             UINT8* buffer, 
                                             UINT16 bufferLength);




/* PLT */
/******************************************************************************

    Name:   TI_PLT_ReadRegister 
    Desc:   This command reads a firmware register value.
    Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
            uRegisterAddr  - Register address.
            puRegisterData - Pointer to the register data.
    Return: TI_RESULT_OK on success. Any other value indicates an error.
    
******************************************************************************/
    tiINT32     TI_PLT_ReadRegister     (TI_HANDLE  hAdapter,
                                         UINT32 uRegisterAddr,
                                         PUINT32 puRegisterData );

/******************************************************************************

    Name:   TI_PLT_WriteRegister    
    Desc:   This command writes a firmware register value.
    Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
            uRegisterAddr - Register address.
            uRegisterData - register data.
    Return: TI_RESULT_OK on success. Any other value indicates an error.
    
******************************************************************************/
    tiINT32     TI_PLT_WriteRegister    (TI_HANDLE  hAdapter,
                                         UINT32 uRegisterAddr,
                                         UINT32 uRegisterData );
/******************************************************************************

    Name:   TI_PLT_RxPerStart   
    Desc:   Start or resume the PER measurement. 
            This function will put the device in promiscuous mode, and resume counters update. 
    Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
    Return: TI_RESULT_OK on success. Any other value indicates an error.
    
******************************************************************************/
    tiINT32     TI_PLT_RxPerStart       (TI_HANDLE  hAdapter);

/******************************************************************************

    Name:   TI_PLT_RxPerStop    
    Desc:   Stop Rx PER measurements. 
            This function stop counters update and make it is safe to read the PER test result.
    Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
    Return: TI_RESULT_OK on success. Any other value indicates an error.
    
******************************************************************************/
    tiINT32     TI_PLT_RxPerStop        (TI_HANDLE  hAdapter);

/******************************************************************************

    Name:   TI_PLT_RxPerClear   
    Desc:   Clear the Rx PER test results.
    Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
    Return: TI_RESULT_OK on success. Any other value indicates an error.
    
******************************************************************************/
    tiINT32     TI_PLT_RxPerClear       (TI_HANDLE  hAdapter);

/******************************************************************************

    Name:   TI_PLT_RxPerGetResults  
    Desc:   Get the last Rx PER test results.
            The RX PER test is conducted in order to evaluate the PER of received packets and is basically done by measuring the ratio between the amount of packets received with FCS errors and the total amount of packets received at a certain period of time.
            You can Start and Stop the frame accumulation several times, and read the total frame count after the last Stop command.
    Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
            pPltRxPer - The PLT PER results.
    Return: TI_RESULT_OK on success. Any other value
Back to Top