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
42S32 CuOs_GetDriverThreadId(THandle hCuWext, U32* threadid);
43
44THandle CuOs_Create(THandle hIpcSta);
45VOID CuOs_Destroy(THandle hCuWext);
46
47S32 CuOs_Get_SSID(THandle hCuWext, OS_802_11_SSID* ssid);
48S32 CuOs_Get_BSSID(THandle hCuWext, TMacAddr bssid);
49S32 CuOs_GetCurrentChannel(THandle hCuWext, U32* channel);
50S32 CuOs_Start_Scan(THandle hCuWext, OS_802_11_SSID* ssid, TI_UINT8 scanType);
51S32 CuOs_GetBssidList(THandle hCuWext, OS_802_11_BSSID_LIST_EX *bssidList);
52S32 CuOs_Set_BSSID(THandle hCuWext, TMacAddr bssid);
53S32 CuOs_Set_ESSID(THandle hCuWext, OS_802_11_SSID* ssid);
54S32 CuOs_GetTxPowerLevel(THandle hCuWext, S32* pTxPowerLevel);
55S32 CuOs_SetTxPowerLevel(THandle hCuWext, S32 txPowerLevel);
56S32 CuOs_GetRtsTh(THandle hCuWext, PS32 pRtsTh);
57S32 CuOs_SetRtsTh(THandle hCuWext, S32 RtsTh);
58S32 CuOs_GetFragTh(THandle hCuWext, PS32 pFragTh);
59S32 CuOs_SetFragTh(THandle hCuWext, S32 FragTh);
60
61#endif  /* _CU_WEXT_H_ */
62
63