PageRenderTime 52ms CodeModel.GetById 15ms RepoModel.GetById 1ms app.codeStats 0ms

/drivers/net/wireless/tiwlan1251/CUDK/Inc/TI_AdapterApiC.h

http://github.com/CyanogenMod/cm-kernel
C Header | 1312 lines | 199 code | 129 blank | 984 comment | 0 complexity | 57a4e59dd18daf2f1dce02f2f42ffe0d MD5 | raw file
Possible License(s): AGPL-1.0, GPL-2.0, LGPL-2.0
  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. /* Module: TI_AdapterApiC.H*/
  22. /**/
  23. /* Purpose: This module contains "C" interface for TI WLAN Utility Adapter.*/
  24. /**/
  25. /*--------------------------------------------------------------------------*/
  26. #ifndef _TI_ADAPTER_API_H
  27. #define _TI_ADAPTER_API_H
  28. #include "paramOut.h"
  29. #include "roamingMngrTypes.h"
  30. #include "tiwlnif.h"
  31. #include "TI_IPC_Api.h"
  32. #include "TI_AdapterQOS.h"
  33. #include "TI_AdapterGWSI.h"
  34. #include "TI_AdapterSEC.h"
  35. #include "TI_AdapterSG.h"
  36. #include "TI_AdapterPM.h"
  37. #ifdef EXC_MODULE_INCLUDED
  38. #include "TI_AdapterEXC.h"
  39. #define EXC_SUPPORT_H ADAPTER_EXC
  40. #else
  41. #define EXC_SUPPORT_H
  42. #endif /*EXC_MODULE_INCLUDED*/
  43. #ifdef TI_DBG
  44. #include "TI_AdapterDBG.h"
  45. #endif/* TI_DBG*/
  46. #ifdef __cplusplus
  47. extern "C" {
  48. #endif
  49. /******************************************************************************
  50. Name: TI_AdapterInit
  51. Desc: Create and initialize the Utility Adapter object
  52. Params: pszDeviceName - Pointer to a null-terminated string that contains
  53. the name of the specific WLAN device, If this parameter
  54. is NULL, TI_AdapterInit() returns a handle to the adapter
  55. object that will work with first founded WLAN device.
  56. Return: If the function succeeds, the return value is a handle to the
  57. specified Adapter. If the function fails, the return value is NULL.
  58. ******************************************************************************/
  59. TI_HANDLE TI_AdapterInit (tiCHAR* pszDeviceName );
  60. /******************************************************************************
  61. Name: TI_AdapterDeinit
  62. Desc: This function destroys the Utility Adapter object.
  63. Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
  64. Return: TI_RESULT_OK on success. Any other value indicates an error.
  65. ******************************************************************************/
  66. tiINT32 TI_AdapterDeinit (TI_HANDLE hAdapter );
  67. /******************************************************************************
  68. Name: TI_GetApiVersion
  69. Desc: This function retrieves the API version information.
  70. Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
  71. Return: TI_RESULT_OK on success. Any other value indicates an error.
  72. ******************************************************************************/
  73. tiINT32 TI_GetApiVersion (TI_HANDLE hAdapter, tiUINT32* puApiVersion);
  74. /******************************************************************************
  75. Name: TI_GetDriverVersion
  76. Desc: This function retrieves the driver and firmware version information.
  77. PdrvVersion points to a TIWLN_VERSION structure, which is defined in
  78. tiwlnif.h.
  79. Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
  80. pdrvVersion - A pointer to TIWLN_VERSION_EX structure.
  81. Return: TI_RESULT_OK on success. Any other value indicates an error.
  82. ******************************************************************************/
  83. tiINT32 TI_GetDriverVersion (TI_HANDLE hAdapter,
  84. TIWLN_VERSION_EX* pdrvVersion );
  85. /******************************************************************************
  86. Name: TI_GetCurrentAddress
  87. Desc: This function retrieves the MAC Address of the wireless card.
  88. Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
  89. pCurrentAddr - A pointer to OS_802_11_MAC_ADDRESS that contains the
  90. MAC Address.
  91. Return: TI_RESULT_OK on success. Any other value indicates an error.
  92. ******************************************************************************/
  93. tiINT32 TI_GetCurrentAddress (TI_HANDLE hAdapter,
  94. OS_802_11_MAC_ADDRESS* pCurrentAddr);
  95. /******************************************************************************
  96. Name: TI_GetDriverCapabilities
  97. Desc: This function retrieves the driver capabilities list.
  98. Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
  99. pDrvCapabilities - A pointer to a OS_802_11_DRIVER_CAPABILITIES
  100. structure that contains the WiLink™ 4.0 driver
  101. capabilities.
  102. Return: TI_RESULT_OK on success. Any other value indicates an error.
  103. ******************************************************************************/
  104. tiINT32 TI_GetDriverCapabilities(TI_HANDLE hAdapter,
  105. OS_802_11_DRIVER_CAPABILITIES* pDrvCapabilities);
  106. /******************************************************************************
  107. Name: TI_SetBSSID
  108. Desc: Specify the BSSID to connect.
  109. Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
  110. pAddrBSSID - A pointer to an OS_802_11_MAC_ADDRESS structure.
  111. Return: TI_RESULT_OK on success. Any other value indicates an error.
  112. ******************************************************************************/
  113. tiINT32 TI_SetBSSID (TI_HANDLE hAdapter,
  114. OS_802_11_MAC_ADDRESS *pAddrBSSID);
  115. /******************************************************************************
  116. Name: TI_GetBSSID
  117. Desc: This function retrieves the BSSID of the current connection
  118. Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
  119. pAddrBSSID - A pointer to an OS_802_11_MAC_ADDRESS structure.
  120. Return: TI_RESULT_OK on success. Any other value indicates an error.
  121. ******************************************************************************/
  122. tiINT32 TI_GetBSSID (TI_HANDLE hAdapter,
  123. OS_802_11_MAC_ADDRESS *pAddrBSSID);
  124. /******************************************************************************
  125. Name: TI_GetBSSIDList
  126. Desc: This function retrieves the BSSID list from the driver after a scan
  127. operation completes. ppBSSIDlist points to an OS_802_11_BSSID_LIST_EX
  128. structure, which is defined in osDot11.h.
  129. Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
  130. pAddrBSSID - A pointer to an OS_802_11_BSSID_LIST structure.
  131. Return: TI_RESULT_OK on success. Any other value indicates an error.
  132. ******************************************************************************/
  133. tiINT32 TI_GetBSSIDList (TI_HANDLE hAdapter,
  134. OS_802_11_BSSID_LIST_EX** ppBSSIDlist );
  135. /******************************************************************************
  136. Name: TI_GetFullBSSIDList
  137. Desc: This function is almost the same as TI_SetBSSIDList, the only
  138. difference is that is retrieves more information than TI_SetBSSIDList.
  139. Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
  140. ppBSSIDlist - A pointer to an OS_802_11_BSSID_LIST structure.
  141. Return: TI_RESULT_OK on success. Any other value indicates an error.
  142. ******************************************************************************/
  143. tiINT32 TI_GetFullBSSIDList (TI_HANDLE hAdapter,
  144. OS_802_11_BSSID_LIST_EX** ppBSSIDlist );
  145. /******************************************************************************
  146. Name: TI_GetSelectedBSSIDInfo
  147. Desc: Retrieves the BSSID information from the driver after a scan operation
  148. completes and select was performed. The information structure is
  149. published in OS_802_11_BSSID_EX format (see TI_GetBSSIDList() command).
  150. Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
  151. pSelectedBSSIDInfo - A pointer to a structure to be filled with the
  152. selected BSSID information.
  153. Return: TI_RESULT_OK on success. Any other value indicates an error.
  154. ******************************************************************************/
  155. tiINT32 TI_GetSelectedBSSIDInfo (TI_HANDLE hAdapter,
  156. OS_802_11_BSSID_EX *pSelectedBSSIDInfo);
  157. /******************************************************************************
  158. Name: TI_GetPrimaryBSSIDInfo
  159. Desc: Retrieves the primary BSSID information from the driver, i.e. the BSSID
  160. The STA is currently connected to. The information structure is
  161. published in OS_802_11_BSSID_EX format (see TI_GetBSSIDList() command).
  162. Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
  163. pSelectedBSSIDInfo - A pointer to a structure to be filled with the
  164. selected BSSID information.
  165. Return: TI_RESULT_OK on success. Any other value indicates an error.
  166. ******************************************************************************/
  167. tiINT32 TI_GetPrimaryBSSIDInfo (TI_HANDLE hAdapter,
  168. OS_802_11_BSSID_EX *pSelectedBSSIDInfo);
  169. /******************************************************************************
  170. Name: TI_SetDesiredChannel
  171. Desc: This function sets the desired operating channel. uDesiredChannel
  172. points to a channel number, which can range from 1 to 14,
  173. 36,40,44,48,52,56,60,64 depended from mode.
  174. Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
  175. uDesiredChannel - A pointer to a tiUINT32 that contains the channel
  176. number.
  177. Return: TI_RESULT_OK on success. Any other value indicates an error.
  178. ******************************************************************************/
  179. tiINT32 TI_SetDesiredChannel (TI_HANDLE hAdapter,
  180. tiUINT32 uDesiredChannel);
  181. /******************************************************************************
  182. Name: TI_GetDesiredChannel
  183. Desc: This function retrieves the desired operating channel.
  184. puDesiredChannel points to a channel number, which can range from
  185. 1 to 14, 36,40,44,48,52,56,60,64 depended on mode (a/b/g).
  186. Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
  187. puDesiredChannel - A pointer to a tiUINT32 that contains the channel
  188. number.
  189. Return: TI_RESULT_OK on success. Any other value indicates an error.
  190. ******************************************************************************/
  191. tiINT32 TI_GetDesiredChannel (TI_HANDLE hAdapter,
  192. tiUINT32* puDesiredChannel);
  193. /******************************************************************************
  194. Name: TI_GetCurrentChannel
  195. Desc: This function retrieves the current operating channel.
  196. puDesiredChannel points to a channel number, which can range from
  197. 1 to 14, 36,40,44,48,52,56,60,64 depended on mode (a/b/g).
  198. Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
  199. puCurrentChannel - A pointer to a tiUINT32 that contains the current
  200. channel number.
  201. Return: TI_RESULT_OK on success. Any other value indicates an error.
  202. ******************************************************************************/
  203. tiINT32 TI_GetCurrentChannel (TI_HANDLE hAdapter,
  204. tiUINT32* puCurrentChannel);
  205. /******************************************************************************
  206. Name: TI_GetDesiredRate
  207. Desc: This function retrieves the desired transmission rate for the adapter.
  208. Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
  209. puDesiredRate - A pointer to a tiUINT32 that contains the desired
  210. transmission rate
  211. Return: TI_RESULT_OK on success. Any other value indicates an error.
  212. ******************************************************************************/
  213. tiINT32 TI_GetDesiredRate (TI_HANDLE hAdapter,
  214. tiUINT32* puDesiredRate);
  215. /******************************************************************************
  216. Name: TI_GetCurrentRate
  217. Desc: This function retrieves the current transmission rate for the
  218. adapter. The adapter may change the desired rate if using AUTO rate.
  219. Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
  220. puCurrentRate - A pointer to a tiUINT32 that contains the current
  221. transmission rate
  222. Return: TI_RESULT_OK on success. Any other value indicates an error.
  223. ******************************************************************************/
  224. tiINT32 TI_GetCurrentRate (TI_HANDLE hAdapter,
  225. tiUINT32* puCurrentRate);
  226. /******************************************************************************
  227. Name: TI_SetFragmentThreshold
  228. Desc: This function sets the current fragmentation threshold.
  229. Only packets that are greater than the fragmentation threshold are
  230. fragmented.
  231. Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
  232. uFragmentThreshold - a pointer to a tiUINT32 that contains the
  233. fragmentation threshold in bytes.
  234. Return: TI_RESULT_OK on success. Any other value indicates an error.
  235. ******************************************************************************/
  236. tiINT32 TI_SetFragmentThreshold (TI_HANDLE hAdapter,
  237. tiUINT32 uFragmentThreshold );
  238. /******************************************************************************
  239. Name: TI_GetFragmentThreshold
  240. Desc: This function retrieves the current fragmentation threshold.
  241. Only packets that are greater than the fragmentation threshold
  242. are fragmented.
  243. Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
  244. uFragmentThreshold - A pointer to a tiUINT32 that contains the
  245. fragmentation threshold in bytes.
  246. Return: TI_RESULT_OK on success. Any other value indicates an error.
  247. ******************************************************************************/
  248. tiINT32 TI_GetFragmentThreshold (TI_HANDLE hAdapter,
  249. tiUINT32* puFragmentThreshold);
  250. /******************************************************************************
  251. Name: TI_SetBSSType
  252. Desc: This function sets the network mode, either Infrastructure or Ad Hoc.
  253. uBSSType points to an OS_802_11_NETWORK_MODE enum, which is defined in
  254. osDot11.h.
  255. Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
  256. uBSSType - Points to the network mode (OS_802_11_NETWORK_MODE enum):
  257. os802_11IBSS - for Ad Hoc mode.
  258. os802_11Infrastructure - for infrastructure mode.
  259. os802_11AutoUnknown - for automatic mode in which the
  260. adapter can switch between Ad Hoc and
  261. infrastructure modes as required.
  262. Return: TI_RESULT_OK on success. Any other value indicates an error.
  263. ******************************************************************************/
  264. tiINT32 TI_SetBSSType (TI_HANDLE hAdapter,
  265. OS_802_11_NETWORK_MODE uBSSType );
  266. /******************************************************************************
  267. Name: TI_GetBSSType
  268. Desc: This function retrieves the network mode. For more information see
  269. TI_SetBSSID().
  270. Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
  271. puBSSType - A pointer to the network mode (OS_802_11_NETWORK_MODE enum):
  272. see TI_SetBSSType.
  273. Return: TI_RESULT_OK on success. Any other value indicates an error.
  274. ******************************************************************************/
  275. tiINT32 TI_GetBSSType (TI_HANDLE hAdapter,
  276. OS_802_11_NETWORK_MODE* puBSSType);
  277. /******************************************************************************
  278. Name: TI_SetBeaconFilterDesiredState
  279. Desc:
  280. Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
  281. uBeaconFilterMode -
  282. Return: TI_RESULT_OK on success. Any other value indicates an error.
  283. ******************************************************************************/
  284. tiINT32 TI_SetBeaconFilterDesiredState(TI_HANDLE hAdapter,
  285. OS_802_11_BEACON_FILTER_MODE uBeaconFilterMode );
  286. /******************************************************************************
  287. Name: TI_GetBeaconFilterDesiredState
  288. Desc:
  289. Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
  290. uBeaconFilterMode -
  291. Return: TI_RESULT_OK on success. Any other value indicates an error.
  292. ******************************************************************************/
  293. tiINT32 TI_GetBeaconFilterDesiredState(TI_HANDLE hAdapter,
  294. tiUINT8* uBeaconFilterMode );
  295. /******************************************************************************
  296. Name: TI_SetRTSThreshold
  297. Desc: This function sets the current RTS (Request to Send) threshold.
  298. The value specifies the packet size, in bytes, beyond which the WLAN
  299. invokes its RTS/CTS mechanism. Packets that exceed the specified RTS
  300. threshold trigger the RTS/CTS mechanism. The NIC transmits smaller
  301. packets without RTS/CTS.
  302. An RTS threshold value of 0 indicates that the NIC should transmit all
  303. packets with RTS/CTS.
  304. Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
  305. uRTSThreshold - Contains the RTS Threshold in bytes.
  306. Return: TI_RESULT_OK on success. Any other value indicates an error.
  307. ******************************************************************************/
  308. tiINT32 TI_SetRTSThreshold (TI_HANDLE hAdapter,
  309. tiUINT32 uRTSThreshold );
  310. /******************************************************************************
  311. Name: TI_GetRTSThreshold
  312. Desc: This function retrieves the current RTS (Request to Send) threshold.
  313. Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
  314. puRTSThreshold - A pointer to a tiUINT32 that contains the RTS
  315. Threshold in bytes.
  316. Return: TI_RESULT_OK on success. Any other value indicates an error.
  317. ******************************************************************************/
  318. tiINT32 TI_GetRTSThreshold (TI_HANDLE hAdapter,
  319. tiUINT32* puRTSThreshold );
  320. /******************************************************************************
  321. Name: TI_SetShortPreamble
  322. Desc: This function sets the current preamble length.
  323. Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
  324. uShortPreamble - Indicates the preamble length. A value of 0 specifies long
  325. preambles and a value of 1 specifies short preambles.
  326. Return: TI_RESULT_OK on success. Any other value indicates an error.
  327. ******************************************************************************/
  328. tiINT32 TI_SetShortPreamble (TI_HANDLE hAdapter,
  329. tiUINT32 uShortPreamble );
  330. /******************************************************************************
  331. Name: TI_GetShortPreamble
  332. Desc: This function retrieves the current preamble length. A value of 0
  333. (zero) in puShortPreamble specifies long preambles and a value of
  334. 1 (one) specifies short preambles.
  335. Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
  336. puShortPreamble - A pointer to a tiUINT32 that indicates the
  337. preamble length.
  338. Return: TI_RESULT_OK on success. Any other value indicates an error.
  339. ******************************************************************************/
  340. tiINT32 TI_GetShortPreamble (TI_HANDLE hAdapter,
  341. tiUINT32* puShortPreamble);
  342. /******************************************************************************
  343. Name: TI_SetSSID
  344. Desc: This function sets desired SSID.
  345. Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
  346. pSSIDname - Pointer to a null-terminated string that contains a
  347. desired SSID
  348. Return: TI_RESULT_OK on success. Any other value indicates an error.
  349. ******************************************************************************/
  350. tiINT32 TI_SetSSID (TI_HANDLE hAdapter,
  351. tiUINT8* pSSIDname );
  352. /******************************************************************************
  353. Name: TI_GetDesiredSSID
  354. Desc: This function retrieves the desired SSID.
  355. Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
  356. pSSID - Pointer to a null-terminated string that contains a desired
  357. SSID.
  358. Return: TI_RESULT_OK on success. Any other value indicates an error.
  359. ******************************************************************************/
  360. tiINT32 TI_GetDesiredSSID (TI_HANDLE hAdapter,
  361. OS_802_11_SSID* pSSID );
  362. /******************************************************************************
  363. Name: TI_GetCurrentSSID
  364. Desc: This function retrieves the current SSID.
  365. Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
  366. pSSID - Pointer to a null-terminated string that contains a current
  367. SSID.
  368. Return: TI_RESULT_OK on success. Any other value indicates an error.
  369. ******************************************************************************/
  370. tiINT32 TI_GetCurrentSSID (TI_HANDLE hAdapter,
  371. OS_802_11_SSID* pSSID );
  372. /******************************************************************************
  373. Name: TI_GetStatistics
  374. Desc: This function retrieves driver statistics. pStatistics points to a
  375. TIWLN_STATISTICS structure, which is defined in tiwlnif.h. The
  376. OS_802_11* types are defined in osDot11.h.
  377. Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
  378. pStatistics - A pointer to a TIWLN_STATISTICS structure.
  379. Return: TI_RESULT_OK on success. Any other value indicates an error.
  380. ******************************************************************************/
  381. tiINT32 TI_GetStatistics (TI_HANDLE hAdapter,
  382. TIWLN_STATISTICS* pStatistics );
  383. /******************************************************************************
  384. Name: TI_GetTxStatistics
  385. Desc: This function retrieves driver statistics. pStatistics points to a
  386. TIWLN_TX_STATISTICS structure, which is defined in tiwlnif.h. The
  387. OS_802_11* types are defined in osDot11.h. The TIWLN_TX_STATISTICS
  388. structure includes the structure txDataCounters_t.
  389. Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
  390. pTxStatistics - A pointer to a TIWLN_TX_STATISTICS structure.
  391. clearStatsFlag - Indication whether to clear the statistic counters
  392. upon read.
  393. Return: TI_RESULT_OK on success. Any other value indicates an error.
  394. ******************************************************************************/
  395. tiINT32 TI_GetTxStatistics (TI_HANDLE hAdapter,
  396. TIWLN_TX_STATISTICS* pTxStatistics,
  397. UINT32 clearStatsFlag );
  398. /******************************************************************************
  399. Name: TI_EnableDisableRxDataFilters
  400. Desc: This function enables or disables the Rx Data Filter feature.
  401. Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
  402. enable - 0 to disable the feature, any other value to enable
  403. Return: TI_RESULT_OK on success. Any other value indicates an error.
  404. ******************************************************************************/
  405. tiINT32 TI_EnableDisableRxDataFilters(TI_HANDLE hAdapter,
  406. tiBOOL enabled);
  407. /******************************************************************************
  408. Name: TI_AddRxDataFilter
  409. Desc: This function adds the given filter to the WLAN driver's list of
  410. data filters.
  411. Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
  412. pRequest - A pointer to the data filter request.
  413. Return: TI_RESULT_OK on success, RX_FILTER_ALREADY_EXISTS if filter
  414. already exists. Any other value indicates an error.
  415. ******************************************************************************/
  416. tiINT32 TI_AddRxDataFilter (TI_HANDLE hAdapter,
  417. TIWLAN_DATA_FILTER_REQUEST * pRequest);
  418. /******************************************************************************
  419. Name: TI_GetRxDataFiltersStatistics
  420. Desc: This function adds the given filter to the WLAN driver's list of
  421. data filters.
  422. Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
  423. pRequest - A pointer to the data filter request.
  424. Return: TI_RESULT_OK on success. Any other value indicates an error.
  425. ******************************************************************************/
  426. tiINT32 TI_GetRxDataFiltersStatistics(TI_HANDLE hAdapter,
  427. TIWLAN_DATA_FILTER_STATISTICS * pStatistics);
  428. /******************************************************************************
  429. Name: TI_GetPowerConsumptionStatistics
  430. Desc: This function retrieves the power consumption statisticts from the FW.
  431. Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
  432. pStatistics - A pointer to the statistics data structure.
  433. Return: TI_RESULT_OK on success. Any other value indicates an error.
  434. ******************************************************************************/
  435. tiINT32 TI_GetPowerConsumptionStatistics(TI_HANDLE hAdapter, PowerConsumptionTimeStat_t * pStatistics);
  436. /******************************************************************************
  437. Name: TI_RemoveRxDataFilter
  438. Desc: This function removes a previously added filter with the given
  439. details from the WLAN driver's list of data filters. Note that the
  440. request must be identical to the one given when the filter was added.
  441. Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
  442. pRequest - A pointer to the data filter request.
  443. Return: TI_RESULT_OK on success, RX_FILTER_DOES_NOT_EXIST if filter
  444. doesn't exist. Any other value indicates an error.
  445. ******************************************************************************/
  446. tiINT32 TI_RemoveRxDataFilter (TI_HANDLE hAdapter,
  447. TIWLAN_DATA_FILTER_REQUEST * pRequest);
  448. /******************************************************************************
  449. Name: TI_SetSupportedRates
  450. Desc: This function sets the transmission rates supported by the driver.
  451. This is the list of basic and supported rates. Basic rates have MSB
  452. set to 1 (one).
  453. Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
  454. pSupportedRatesLst - A pointer to a buffer that contains list of rates.
  455. uBufLength - Contains a size of buffer.
  456. Return: TI_RESULT_OK on success. Any other value indicates an error.
  457. ******************************************************************************/
  458. tiINT32 TI_SetSupportedRates (TI_HANDLE hAdapter,
  459. tiUINT8* pSupportedRatesLst,
  460. tiUINT32 uBufLength );
  461. /******************************************************************************
  462. Name: TI_GetSupportedRates
  463. Desc: This function retrieves the transmission rates supported by the driver.
  464. Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
  465. pSupportedRatesLst - A pointer to a buffer that contains list of rates.
  466. uBufLength - Contains a size of buffer
  467. Return: TI_RESULT_OK on success. Any other value indicates an error.
  468. ******************************************************************************/
  469. tiINT32 TI_GetSupportedRates (TI_HANDLE hAdapter,
  470. tiUINT8* pSupportedRatesLst,
  471. tiUINT32 uBufLength );
  472. /******************************************************************************
  473. Name: TI_SetIBSSProtection
  474. Desc: Sets the 802.11g extended rate protection (ERP) configuration of
  475. the driver. Configuration of ERP is only possible when the adapter
  476. is operating in Ad Hoc mode. In infrastructure mode, the driver uses
  477. the ERP method supported by the AP.
  478. Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
  479. uProtection - Indicates the 802.11g protections.
  480. Return: TI_RESULT_OK on success. Any other value indicates an error.
  481. Note: This function supported only on WiLink™ 4.0 - based designs.
  482. ******************************************************************************/
  483. tiINT32 TI_SetIBSSProtection (TI_HANDLE hAdapter,
  484. tiUINT32 uProtection );
  485. /******************************************************************************
  486. Name: TI_GetIBSSProtection
  487. Desc: Returns the 802.11g extended rate protection (ERP) configuration of
  488. the driver. For more information see TI_SetIBSSProtection().
  489. Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
  490. puProtection - A pointer to a tiUINT32 that indicates the 802.11g
  491. protections.
  492. Return: TI_RESULT_OK on success. Any other value indicates an error.
  493. ******************************************************************************/
  494. tiINT32 TI_GetIBSSProtection (TI_HANDLE hAdapter,
  495. tiUINT32* puProtection);
  496. /******************************************************************************
  497. Name: TI_GetDriverState
  498. Desc: This function returns a driver's state.
  499. Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
  500. puDriverState - A pointer to a driverState_e that indicates the
  501. driver state:
  502. DRIVER_STATE_IDLE = 0,
  503. DRIVER_STATE_SCANNING = 1,
  504. DRIVER_STATE_SELECTING = 2,
  505. DRIVER_STATE_CONNECTING = 3,
  506. DRIVER_STATE_CONNECTED = 4,
  507. DRIVER_STATE_DISCONNECTED = 5,
  508. Return: TI_RESULT_OK on success. Any other value indicates an error.
  509. ******************************************************************************/
  510. tiINT32 TI_GetDriverState (TI_HANDLE hAdapter,
  511. driverState_e* puDriverState );
  512. /******************************************************************************
  513. Name: TI_SetShortSlot
  514. Desc: Sets the 802.11g slot time.
  515. A value of 0 (zero) in uShortSlot indicates a long slot time (20 uSec)
  516. A value of 1 (one) in uShortSlot indicates a short slot time (9 uSec).
  517. Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
  518. uShortSlot - Indicates the 802.11g slot time.
  519. Return: TI_RESULT_OK on success. Any other value indicates an error.
  520. Note: This function supported only on WiLink™ 4.0 - based designs.
  521. ******************************************************************************/
  522. tiINT32 TI_SetShortSlot (TI_HANDLE hAdapter,
  523. tiUINT32 uShortSlot );
  524. /******************************************************************************
  525. Name: TI_GetShortSlot
  526. Desc: Returns the 802.11g slot time. Refer to TI_SetShortSlot.
  527. Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
  528. puShortSlot - pointer to a tiUINT32 that indicates the 802.11g slot
  529. time.
  530. Return: TI_RESULT_OK on success. Any other value indicates an error.
  531. ******************************************************************************/
  532. tiINT32 TI_GetShortSlot (TI_HANDLE hAdapter,
  533. tiUINT32* puShortSlot );
  534. /******************************************************************************
  535. Name: TI_SetTxPowerDbm
  536. Desc: This function sets the maximum station transmit power in Dbm. The station
  537. also takes into consideration two additional power level settings
  538. AP-IE and Chip ID. The final setting is the minimum of among these
  539. three settings.
  540. Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
  541. uTxPower - Contains a station power level
  542. Return: TI_RESULT_OK on success. Any other value indicates an error.
  543. ******************************************************************************/
  544. tiINT32 TI_SetTxPowerDbm (TI_HANDLE hAdapter,
  545. tiUINT8 uTxPower);
  546. /******************************************************************************
  547. Name: TI_GetTxPowerLevel
  548. Desc: Retrieve the current station power level table.
  549. Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
  550. puTxPower - A pointer to a tiCHAR that contains the station power
  551. level table.
  552. Return: TI_RESULT_OK on success. Any other value indicates an error.
  553. ******************************************************************************/
  554. tiINT32 TI_GetTxPowerLevel (TI_HANDLE hAdapter,
  555. tiCHAR* puTxPower);
  556. /******************************************************************************
  557. Name: TI_GetTxPowerDbm
  558. Desc: Retrieve the current Tx Power in Dbm/10 value.
  559. Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
  560. puTxPower - A pointer to a tiCHAR that contains the station TX power
  561. in Dbm value.
  562. Return: TI_RESULT_OK on success. Any other value indicates an error.
  563. ******************************************************************************/
  564. tiINT32 TI_GetTxPowerDbm (TI_HANDLE hAdapter,
  565. tiCHAR* puTxPower);
  566. /******************************************************************************
  567. Name: TI_GetSupportedNetworkTypes
  568. Desc: This function retrieves the supported network types.
  569. Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
  570. pNetTypeLst - Pointer to the buffer that contains list of supported
  571. network types.
  572. uMaxNetTypes - Maximum number of types that will contains in the
  573. buffer pNetTypeLst.
  574. Return: TI_RESULT_OK on success. Any other value indicates an error.
  575. ******************************************************************************/
  576. tiINT32 TI_GetSupportedNetworkTypes (TI_HANDLE hAdapter,
  577. OS_802_11_NETWORK_TYPE* pNetTypeLst,
  578. tiUINT32 uMaxNetTypes);
  579. /******************************************************************************
  580. Name: TI_SetNetworkTypeInUse
  581. Desc: This function sets the network type.
  582. Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
  583. uNetType - Contains network type:
  584. os802_11FH,
  585. os802_11DS,
  586. os802_11OFDM5,
  587. os802_11OFDM24,
  588. os802_11OFDM24_AND_5
  589. Return: TI_RESULT_OK on success. Any other value indicates an error.
  590. ******************************************************************************/
  591. tiINT32 TI_SetNetworkTypeInUse (TI_HANDLE hAdapter,
  592. OS_802_11_NETWORK_TYPE uNetType );
  593. /******************************************************************************
  594. Name: TI_GetNetworkTypeInUse
  595. Desc: This function retrieves the current network type in use.
  596. Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
  597. puNetType - Pointer to the buffer that contains value of network type.
  598. Return: TI_RESULT_OK on success. Any other value indicates an error.
  599. ******************************************************************************/
  600. tiINT32 TI_GetNetworkTypeInUse (TI_HANDLE hAdapter,
  601. OS_802_11_NETWORK_TYPE* puNetType );
  602. /******************************************************************************
  603. Name: TI_GetNumberOfAntennas
  604. Desc: This function retrieves the number of antennas.
  605. Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
  606. puNumberOfAntennas -
  607. Return: TI_RESULT_OK on success. Any other value indicates an error.
  608. ******************************************************************************/
  609. tiINT32 TI_GetNumberOfAntennas (TI_HANDLE hAdapter,
  610. tiUINT32* puNumberOfAntennas );
  611. /******************************************************************************
  612. Name: TI_SetAntennaDiversityParams
  613. Desc: This function sets various antenna diversity parameters.
  614. Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
  615. pAntennaDiversityOptions - Pointer to antenna diversity parameters
  616. structure holding required parameters:
  617. enableRxDiversity - specifies whether antenna diversity should
  618. be enables for reception.
  619. rxSelectedAntenna - specifies which antenna to use for reception.
  620. enableTxDiversity - specifies whether antenna diversity should
  621. be enables for transmission.
  622. txSelectedAntenna - specifies which antenna to use for
  623. transmission.
  624. rxTxSharedAnts - specifies whether to share reception and
  625. transmission antennas.
  626. Return: TI_RESULT_OK on success. Any other value indicates an error.
  627. ******************************************************************************/
  628. tiINT32 TI_SetAntennaDiversityParams(TI_HANDLE hAdapter,
  629. PTIWLAN_ANT_DIVERSITY pAntennaDiversityOptions);
  630. /******************************************************************************
  631. Name: TI_GetRegDomainTable
  632. Desc: This function retrieves the regularity domain table.
  633. Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
  634. pRegDomainTable - Pointer to TIWLAN_REGDOMAINS structure which includes
  635. regulatory domains table and its size.
  636. Return: TI_RESULT_OK on success. Any other value indicates an error.
  637. ******************************************************************************/
  638. tiINT32 TI_GetRegDomainTable(TI_HANDLE hAdapter,
  639. TIWLN_REGDOMAINS* pRegDomainTable);
  640. /******************************************************************************
  641. Name: TI_EnableDisable_802_11d
  642. Desc: This function enables or disables the 802.11d protocol.
  643. Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
  644. enableDisable_802_11d - Enable or Disable value
  645. Return: TI_RESULT_OK on success. Any other value indicates an error.
  646. ******************************************************************************/
  647. tiINT32 TI_EnableDisable_802_11d (TI_HANDLE hAdapter,
  648. tiUINT8 enableDisable_802_11d);
  649. /******************************************************************************
  650. Name: TI_Get_802_11d
  651. Desc: This function retrieves whether the 802.11d protocol in enabled or
  652. disabled.
  653. Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
  654. enableDisable_802_11d - A pointer to a tiUINT8 which returns an
  655. Enable or Disable value.
  656. Return: TI_RESULT_OK on success. Any other value indicates an error.
  657. ******************************************************************************/
  658. tiINT32 TI_Get_802_11d (TI_HANDLE hAdapter,
  659. tiUINT8 *enableDisable_802_11d);
  660. /******************************************************************************
  661. Name: TI_EnableDisable_802_11h
  662. Desc: This function enables or disables the 802.11h protocol.
  663. Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
  664. enableDisable_802_11h - Enable or Disable value
  665. Return: TI_RESULT_OK on success. Any other value indicates an error.
  666. ******************************************************************************/
  667. tiINT32 TI_EnableDisable_802_11h (TI_HANDLE hAdapter,
  668. tiUINT8 enableDisable_802_11h);
  669. /******************************************************************************
  670. Name: TI_Get_802_11h
  671. Desc: This function retrieves whether the 802.11h protocol in enabled or
  672. disabled.
  673. Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
  674. enableDisable_802_11h - A pointer to a tiUINT8 which returns an
  675. Enable or Disable value.
  676. Return: TI_RESULT_OK on success. Any other value indicates an error.
  677. ******************************************************************************/
  678. tiINT32 TI_Get_802_11h (TI_HANDLE hAdapter,
  679. tiUINT8 *enableDisable_802_11h);
  680. /******************************************************************************
  681. Name: TI_Set_countryIeFor2_4_Ghz
  682. Desc:
  683. Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
  684. countryIe -
  685. Return: TI_RESULT_OK on success. Any other value indicates an error.
  686. ******************************************************************************/
  687. tiINT32 TI_Set_countryIeFor2_4_Ghz (TI_HANDLE hAdapter,
  688. country_t countryIe);
  689. /******************************************************************************
  690. Name: TI_Get_countryIeFor2_4_Ghz
  691. Desc:
  692. Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
  693. countryString -
  694. Return: TI_RESULT_OK on success. Any other value indicates an error.
  695. ******************************************************************************/
  696. tiINT32 TI_Get_countryIeFor2_4_Ghz (TI_HANDLE hAdapter,
  697. tiUINT8 **countryString);
  698. /******************************************************************************
  699. Name: TI_Set_countryIeFor5_Ghz
  700. Desc:
  701. Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
  702. countryIe -
  703. Return: TI_RESULT_OK on success. Any other value indicates an error.
  704. ******************************************************************************/
  705. tiINT32 TI_Set_countryIeFor5_Ghz (TI_HANDLE hAdapter,
  706. country_t countryIe);
  707. /******************************************************************************
  708. Name: TI_Get_countryIeFor5_Ghz
  709. Desc:
  710. Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
  711. countryString -
  712. Return: TI_RESULT_OK on success. Any other value indicates an error.
  713. ******************************************************************************/
  714. tiINT32 TI_Get_countryIeFor5_Ghz (TI_HANDLE hAdapter,
  715. tiUINT8 **countryString);
  716. /******************************************************************************
  717. Name: TI_Set_minMaxDfsChannels
  718. Desc:
  719. Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
  720. DFS_ChannelRange - Minimum and maximum cahnnel numbers for which
  721. DFS is used
  722. Return: TI_RESULT_OK on success. Any other value indicates an error.
  723. ******************************************************************************/
  724. tiINT32 TI_Set_minMaxDfsChannels (TI_HANDLE hAdapter,
  725. DFS_ChannelRange_t DFS_ChannelRange);
  726. /******************************************************************************
  727. Name: TI_Get_minMaxDfsChannels
  728. Desc:
  729. Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
  730. DFS_ChannelRange - Minimum and maximum cahnnel numbers for which
  731. DFS is used
  732. Return: TI_RESULT_OK on success. Any other value indicates an error.
  733. ******************************************************************************/
  734. tiINT32 TI_Get_minMaxDfsChannels (TI_HANDLE hAdapter,
  735. DFS_ChannelRange_t *DFS_ChannelRange);
  736. /******************************************************************************
  737. Name: TI_Start
  738. Desc: This command starts the driver operation. The driver will start
  739. scanning and will try to connect according to its configuration.
  740. Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
  741. Return: TI_RESULT_OK on success. Any other value indicates an error.
  742. Note: Used for Linux only.
  743. ******************************************************************************/
  744. tiINT32 TI_Start (TI_HANDLE hAdapter);
  745. /******************************************************************************
  746. Name: TI_Stop
  747. Desc: This command blocks the driver's API and turns off the WiLink™ 4.0
  748. HW. The driver will be kept loaded and will keep its configuration
  749. Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
  750. Return: TI_RESULT_OK on success. Any other value indicates an error.
  751. Note: Used for Linux only.
  752. ******************************************************************************/
  753. tiINT32 TI_Stop (TI_HANDLE hAdapter);
  754. /******************************************************************************
  755. Name: TI_StartSM
  756. Desc: This command starts the Supplicant Manager module operation.
  757. Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
  758. Return: TI_RESULT_OK on success. Any other value indicates an error.
  759. ******************************************************************************/
  760. tiINT32 TI_StartSM (TI_HANDLE hAdapter);
  761. /******************************************************************************
  762. Name: TI_StopSM
  763. Desc: This command stops the supplicant manager operation.
  764. Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
  765. Return: TI_RESULT_OK on success. Any other value indicates an error.
  766. ******************************************************************************/
  767. tiINT32 TI_StopSM (TI_HANDLE hAdapter);
  768. /******************************************************************************
  769. Name: TI_GetRSSI
  770. Desc: This function returns the current RSSI.
  771. Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
  772. pRSSI - The current RSSI level.
  773. Return: TI_RESULT_OK on success. Any other value indicates an error.
  774. ******************************************************************************/
  775. tiINT32 TI_GetRSSI (TI_HANDLE hAdapter,
  776. tiINT32* pRSSI);
  777. /******************************************************************************
  778. Name: TI_GetSNR
  779. Desc: This function returns the current SNR.
  780. Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
  781. pSNR - The current SNR level.
  782. Return: TI_RESULT_OK on success. Any other value indicates an error.
  783. ******************************************************************************/
  784. tiINT32 TI_GetSNR (TI_HANDLE hAdapter,
  785. tiUINT32* pSNR);
  786. /******************************************************************************
  787. Name: TI_Disassociate
  788. Desc: This command sets Junk SSID to the Driver. It makes the WiLink™ 4.0
  789. to disassociate any current AP and to return to idle state. The
  790. Driver does not attempt to connect to any other AP until a valid
  791. SSID is set.
  792. Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
  793. Return: TI_RESULT_OK on success. Any other value indicates an error.
  794. ******************************************************************************/
  795. tiINT32 TI_Disassociate (TI_HANDLE hAdapter);
  796. /******************************************************************************
  797. Name: TI_RegisterEvent
  798. Desc: This function registers a driver event, which will trigger the
  799. specified callback function.
  800. Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
  801. pEventParams - Information about the event to which you are registering.
  802. Return: TI_RESULT_OK on success. Any other value indicates an error.
  803. ******************************************************************************/
  804. tiINT32 TI_RegisterEvent (TI_HANDLE hAdapter,
  805. IPC_EVENT_PARAMS* pEventParams );
  806. /******************************************************************************
  807. Name: TI_UnRegisterEvent
  808. Desc: This function un-registers a driver event.
  809. Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
  810. pEventParams - Information about the event to which you are
  811. registering.
  812. Return: TI_RESULT_OK on success. Any other value indicates an error.
  813. ******************************************************************************/
  814. tiINT32 TI_UnRegisterEvent (TI_HANDLE hAdapter,
  815. IPC_EVENT_PARAMS* pEventParams );
  816. /******************************************************************************
  817. Name: TI_StartScan
  818. Desc: Starts a scan operation. The user can define the scan parameters.
  819. Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
  820. pScanParams - The parameters for the requested scan.
  821. Return: TI_RESULT_OK on success. Any other value indicates an error.
  822. Note: up to 16 scanned channels.
  823. ******************************************************************************/
  824. tiINT32 TI_StartScan (TI_HANDLE hAdapter,
  825. scan_Params_t *pScanParams);
  826. /******************************************************************************
  827. Name: TI_StopScan
  828. Desc: Send a command to the WiLink™ 4.0 driver to terminate the scan process.
  829. Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
  830. Return: TI_RESULT_OK on success. Any other value indicates an error.
  831. ******************************************************************************/
  832. tiINT32 TI_StopScan (TI_HANDLE hAdapter);
  833. /******************************************************************************
  834. Name: TI_SetScanPolicy
  835. Desc: Sends a command buffer to the driver scan manager logic.
  836. Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
  837. buffer - A pointer to the buffer holding the scan policy.
  838. bufferLength - The length of the above buffer.
  839. Return: TI_RESULT_OK on success. Any other value indicates an error.
  840. ******************************************************************************/
  841. tiINT32 TI_SetScanPolicy (TI_HANDLE hAdapter,
  842. UINT8* buffer,
  843. UINT16 bufferLength);
  844. /******************************************************************************
  845. Name: TI_GetScanBssList
  846. Desc: Retrieves the scan manager tracking BSS list. This function should
  847. be used for debug purposes only.
  848. Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
  849. bssList - A pointer to a buffer in which the BSS list will be stored.
  850. Return: TI_RESULT_OK on success. Any other value indicates an error.
  851. ******************************************************************************/
  852. tiINT32 TI_GetScanBssList (TI_HANDLE hAdapter,
  853. bssList_t* bssList);
  854. /* ****************************************** */
  855. /******************************************************************************
  856. Name: TI_WLAN_IsDriverRun
  857. Desc: This command returns the driver status, running or Idle.
  858. Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
  859. pbStatus - The Driver status, running or IDLE.
  860. Return: TI_RESULT_OK on success. Any other value indicates an error.
  861. ******************************************************************************/
  862. tiINT32 TI_WLAN_IsDriverRun (TI_HANDLE hAdapter,
  863. tiBOOL* pbStatus);
  864. /******************************************************************************
  865. Name: TI_Set4XState
  866. Desc: This command sets the 4X state.
  867. Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
  868. bStatus - TRUE-4X enabled, FALSE – disabled..
  869. Return: TI_RESULT_OK on success. Any other value indicates an error.
  870. Note: NOT SUPPORTED !!!
  871. ******************************************************************************/
  872. tiINT32 TI_Set4XState (TI_HANDLE hAdapter,
  873. tiBOOL bStatus);
  874. /******************************************************************************
  875. Name: TI_Get4XState
  876. Desc: This command returns 4X status.
  877. Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
  878. pbStatus - .
  879. Return: TI_RESULT_OK on success. Any other value indicates an error.
  880. ******************************************************************************/
  881. tiINT32 TI_Get4XState (TI_HANDLE hAdapter,
  882. tiBOOL* pbStatus);
  883. /******************************************************************************
  884. Name: TI_SetExtRatesIE
  885. Desc: This command sets the Draft number.
  886. Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
  887. uExtRatesIE - The Draft number: 5 or earlier, 6 or later..
  888. Return: TI_RESULT_OK on success. Any other value indicates an error.
  889. ******************************************************************************/
  890. tiINT32 TI_SetExtRatesIE (TI_HANDLE hAdapter,
  891. tiUINT32 uExtRatesIE);
  892. /******************************************************************************
  893. Name: TI_GetExtRatesIE
  894. Desc: This command returns the Draft number.
  895. Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
  896. puExtRatesIE - The Draft number: 5 or earlier, 6 or later..
  897. Return: TI_RESULT_OK on success. Any other value indicates an error.
  898. ******************************************************************************/
  899. tiINT32 TI_GetExtRatesIE (TI_HANDLE hAdapter,
  900. tiUINT32* puExtRatesIE);
  901. /******************************************************************************
  902. Name: TI_SetEarlyWakeupMode
  903. Desc: This command sets the Early Wakeup mode.
  904. Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
  905. uEarlyWakeup - The early Wakeup mode: 0 - disabled, 1 - enabled
  906. Return: TI_RESULT_OK on success. Any other value indicates an error.
  907. ******************************************************************************/
  908. tiINT32 TI_SetEarlyWakeupMode (TI_HANDLE hAdapter,
  909. tiUINT8 uEarlyWakeup);
  910. /******************************************************************************
  911. Name: TI_GetEarlyWakeupMode
  912. Desc: This command returns the Early Wakeup mode.
  913. Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
  914. uEarlyWakeup - The early Wakeup mode: 0 - disabled, 1 - enabled
  915. Return: TI_RESULT_OK on success. Any other value indicates an error.
  916. ******************************************************************************/
  917. tiINT32 TI_GetEarlyWakeupMode (TI_HANDLE hAdapter,
  918. tiUINT8* uEarlyWakeup);
  919. /******************************************************************************
  920. Name: TI_SetRoamingConfiguration
  921. Desc: The TI_SetRoamingConfiguration() function sends a command buffer to
  922. the driver roaming manager logic.
  923. Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
  924. buffer - The command buffer.
  925. bufferLength - The roam command buffer length (bytes).
  926. Return: TI_RESULT_OK on success. Any other value indicates an error.
  927. ******************************************************************************/
  928. tiINT32 TI_SetRoamingConfiguration (TI_HANDLE hAdapter,
  929. UINT8* buffer,
  930. UINT16 bufferLength);
  931. /******************************************************************************
  932. Name: TI_GetRoamingConfiguration
  933. Desc: The TI_SetRoamingConfiguration() function sends a command buffer to
  934. the driver roaming manager logic.
  935. Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
  936. buffer - The command buffer.
  937. bufferLength - The roam command buffer length (bytes).
  938. Return: TI_RESULT_OK on success. Any other value indicates an error.
  939. ******************************************************************************/
  940. tiINT32 TI_GetRoamingConfiguration (TI_HANDLE hAdapter,
  941. UINT8* buffer,
  942. UINT16 bufferLength);
  943. /* PLT */
  944. /******************************************************************************
  945. Name: TI_PLT_ReadRegister
  946. Desc: This command reads a firmware register value.
  947. Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
  948. uRegisterAddr - Register address.
  949. puRegisterData - Pointer to the register data.
  950. Return: TI_RESULT_OK on success. Any other value indicates an error.
  951. ******************************************************************************/
  952. tiINT32 TI_PLT_ReadRegister (TI_HANDLE hAdapter,
  953. UINT32 uRegisterAddr,
  954. PUINT32 puRegisterData );
  955. /******************************************************************************
  956. Name: TI_PLT_WriteRegister
  957. Desc: This command writes a firmware register value.
  958. Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
  959. uRegisterAddr - Register address.
  960. uRegisterData - register data.
  961. Return: TI_RESULT_OK on success. Any other value indicates an error.
  962. ******************************************************************************/
  963. tiINT32 TI_PLT_WriteRegister (TI_HANDLE hAdapter,
  964. UINT32 uRegisterAddr,
  965. UINT32 uRegisterData );
  966. /******************************************************************************
  967. Name: TI_PLT_RxPerStart
  968. Desc: Start or resume the PER measurement.
  969. This function will put the device in promiscuous mode, and resume counters update.
  970. Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
  971. Return: TI_RESULT_OK on success. Any other value indicates an error.
  972. ******************************************************************************/
  973. tiINT32 TI_PLT_RxPerStart (TI_HANDLE hAdapter);
  974. /******************************************************************************
  975. Name: TI_PLT_RxPerStop
  976. Desc: Stop Rx PER measurements.
  977. This function stop counters update and make it is safe to read the PER test result.
  978. Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
  979. Return: TI_RESULT_OK on success. Any other value indicates an error.
  980. ******************************************************************************/
  981. tiINT32 TI_PLT_RxPerStop (TI_HANDLE hAdapter);
  982. /******************************************************************************
  983. Name: TI_PLT_RxPerClear
  984. Desc: Clear the Rx PER test results.
  985. Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
  986. Return: TI_RESULT_OK on success. Any other value indicates an error.
  987. ******************************************************************************/
  988. tiINT32 TI_PLT_RxPerClear (TI_HANDLE hAdapter);
  989. /******************************************************************************
  990. Name: TI_PLT_RxPerGetResults
  991. Desc: Get the last Rx PER test results.
  992. 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.
  993. You can Start and Stop the frame accumulation several times, and read the total frame count after the last Stop command.
  994. Params: hAdapter - The Adapter handle returned by TI_AdapterInit().
  995. pPltRxPer - The PLT PER results.
  996. Return: TI_RESULT_OK on success. Any other value