]> bbs.cooldavid.org Git - net-next-2.6.git/blob - drivers/staging/winbond/scan_s.h
staging: w35und: Remove remaining typedef declarations
[net-next-2.6.git] / drivers / staging / winbond / scan_s.h
1 #ifndef __WINBOND_SCAN_S_H
2 #define __WINBOND_SCAN_S_H
3
4 #include <linux/types.h>
5 #include "localpara.h"
6
7 /*
8  * SCAN task global CONSTANTS, STRUCTURES, variables
9  */
10
11 /* define the msg type of SCAN module */
12 #define SCANMSG_SCAN_REQ                0x01
13 #define SCANMSG_BEACON                  0x02
14 #define SCANMSG_PROBE_RESPONSE          0x03
15 #define SCANMSG_TIMEOUT                 0x04
16 #define SCANMSG_TXPROBE_FAIL            0x05
17 #define SCANMSG_ENABLE_BGSCAN           0x06
18 #define SCANMSG_STOP_SCAN               0x07
19
20 /*
21  * BSS Type =>conform to
22  * IBSS             : ToDS/FromDS = 00
23  * Infrastructure   : ToDS/FromDS = 01
24  */
25 #define IBSS_NET                        0
26 #define ESS_NET                         1
27 #define ANYBSS_NET                      2
28
29 /* Scan Type */
30 #define ACTIVE_SCAN                     0
31 #define PASSIVE_SCAN                    1
32
33 /*
34  * ===========================================================
35  *      scan.h
36  *              Define the related definitions of scan module
37  *
38  * ===========================================================
39  */
40
41 /* Define the state of scan module */
42 #define SCAN_INACTIVE                   0
43 #define WAIT_PROBE_DELAY                1
44 #define WAIT_RESPONSE_MIN               2
45 #define WAIT_RESPONSE_MAX_ACTIVE        3
46 #define WAIT_BEACON_MAX_PASSIVE         4
47 #define SCAN_COMPLETE                   5
48 #define BG_SCAN                         6
49 #define BG_SCANNING                     7
50
51
52 /*
53  * The value will load from EEPROM
54  * If 0xff is set in EEPOM, the driver will use SCAN_MAX_CHNL_TIME instead.
55  * The definition is in WbHal.h
56  */
57 #endif