3 * @file coreconfigurator.h
6 * @sa coreconfigurator.c
11 #ifndef CORECONFIGURATOR_H
12 #define CORECONFIGURATOR_H
14 #include "wilc_wlan_if.h"
16 #define NUM_BASIC_SWITCHES 45
17 #define NUM_FHSS_SWITCHES 0
22 #define NUM_11N_BASIC_SWITCHES 25
23 #define NUM_11N_HUT_SWITCHES 47
25 #define NUM_11N_BASIC_SWITCHES 0
26 #define NUM_11N_HUT_SWITCHES 0
29 #define MAC_HDR_LEN 24
30 #define MAX_SSID_LEN 33
32 #define TIME_STAMP_LEN 8
33 #define BEACON_INTERVAL_LEN 2
34 #define CAP_INFO_LEN 2
35 #define STATUS_CODE_LEN 2
42 #define MAX_STRING_LEN 256
43 #define MAX_SURVEY_RESULT_FRAG_SIZE MAX_STRING_LEN
44 #define SURVEY_RESULT_LENGTH 44
45 #define MAX_ASSOC_RESP_FRAME_SIZE MAX_STRING_LEN
47 #define MAC_CONNECTED 1
48 #define MAC_DISCONNECTED 0
50 #define MAKE_WORD16(lsb, msb) ((((u16)(msb) << 8) & 0xFF00) | (lsb))
51 #define MAKE_WORD32(lsw, msw) ((((u32)(msw) << 16) & 0xFFFF0000) | (lsw))
54 SUCCESSFUL_STATUSCODE = 0,
65 SHORT_PREAMBLE_UNSUP = 19,
67 CHANNEL_AGIL_UNSUP = 21,
68 SHORT_SLOT_UNSUP = 25,
70 CONNECT_STS_FORCE_16_BIT = 0xFFFF
75 enum WID_TYPE enuWIDtype;
89 u8 au8ssid[MAX_SSID_LEN];
95 unsigned long u32TimeRcvdInScanCached;
96 unsigned long u32TimeRcvdInScan;
109 u16 u16ConnectStatus;
113 } tstrConnectRespInfo;
121 u16 u16ConnectStatus;
128 } tstrDisconnectNotifInfo;
130 s32 send_config_pkt(u8 mode, struct wid *wids, u32 count, u32 drv);
131 s32 parse_network_info(u8 *pu8MsgBuffer, tstrNetworkInfo **ppstrNetworkInfo);
132 s32 DeallocateNetworkInfo(tstrNetworkInfo *pstrNetworkInfo);
134 s32 ParseAssocRespInfo(u8 *pu8Buffer, u32 u32BufferLen,
135 tstrConnectRespInfo **ppstrConnectRespInfo);
136 s32 DeallocateAssocRespInfo(tstrConnectRespInfo *pstrConnectRespInfo);
138 void NetworkInfoReceived(u8 *pu8Buffer, u32 u32Length);
139 void GnrlAsyncInfoReceived(u8 *pu8Buffer, u32 u32Length);
140 void host_int_ScanCompleteReceived(u8 *pu8Buffer, u32 u32Length);