]>
git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blob - drivers/staging/wilc1000/coreconfigurator.h
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
82 u8 ssid
[MAX_SSID_LEN
];
88 unsigned long time_scan_cached
;
89 unsigned long time_scan
;
96 struct tstrRSSI str_rssi
;
100 struct connect_resp_info
{
108 struct connect_info
{
117 struct disconnect_info
{
123 s32
wilc_parse_network_info(u8
*msg_buffer
,
124 struct network_info
**ret_network_info
);
125 s32
wilc_parse_assoc_resp_info(u8
*buffer
, u32 buffer_len
,
126 struct connect_resp_info
**ret_connect_resp_info
);
127 void wilc_scan_complete_received(struct wilc
*wilc
, u8
*pu8Buffer
,
129 void wilc_network_info_received(struct wilc
*wilc
, u8
*pu8Buffer
,
131 void wilc_gnrl_async_info_received(struct wilc
*wilc
, u8
*pu8Buffer
,