OSDN Git Service

original
[gb-231r1-is01/Gingerbread_2.3.3_r1_IS01.git] / hardware / ti / wlan / wl1271 / CUDK / os / linux / inc / cu_os.h
1 /*
2  * cu_os.h
3  *
4  * Copyright 2001-2009 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:   CuWext.h                                                    */
22 /*    PURPOSE:                                                              */
23 /*                                                                          */
24 /****************************************************************************/
25 #ifndef _CU_WEXT_H_
26 #define _CU_WEXT_H_
27
28 #include "cu_osapi.h"
29 #include "osDot11.h"
30
31 /* defines */
32 /***********/
33 #define MAX_SSID_LEN    32
34 #define MAX_PATH        260
35
36 /* types */
37 /*********/
38
39 /* functions */
40 /*************/
41
42 S32 CuOs_GetDriverThreadId(THandle hCuWext, U32* threadid);
43
44 THandle CuOs_Create(THandle hIpcSta);
45 VOID CuOs_Destroy(THandle hCuWext);
46
47 S32 CuOs_Get_SSID(THandle hCuWext, OS_802_11_SSID* ssid);
48 S32 CuOs_Get_BSSID(THandle hCuWext, TMacAddr bssid);
49 S32 CuOs_GetCurrentChannel(THandle hCuWext, U32* channel);
50 S32 CuOs_Start_Scan(THandle hCuWext, OS_802_11_SSID* ssid, TI_UINT8 scanType);
51 S32 CuOs_GetBssidList(THandle hCuWext, OS_802_11_BSSID_LIST_EX *bssidList);
52 S32 CuOs_Set_BSSID(THandle hCuWext, TMacAddr bssid);
53 S32 CuOs_Set_ESSID(THandle hCuWext, OS_802_11_SSID* ssid);
54 S32 CuOs_GetTxPowerLevel(THandle hCuWext, S32* pTxPowerLevel);
55 S32 CuOs_SetTxPowerLevel(THandle hCuWext, S32 txPowerLevel);
56 S32 CuOs_GetRtsTh(THandle hCuWext, PS32 pRtsTh);
57 S32 CuOs_SetRtsTh(THandle hCuWext, S32 RtsTh);
58 S32 CuOs_GetFragTh(THandle hCuWext, PS32 pFragTh);
59 S32 CuOs_SetFragTh(THandle hCuWext, S32 FragTh);
60
61 #endif  /* _CU_WEXT_H_ */
62