1 #ifndef __WINBOND_SCAN_S_H
2 #define __WINBOND_SCAN_S_H
4 #include <linux/types.h>
8 * SCAN task global CONSTANTS, STRUCTURES, variables
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
21 * BSS Type =>conform to
22 * IBSS : ToDS/FromDS = 00
23 * Infrastructure : ToDS/FromDS = 01
31 #define PASSIVE_SCAN 1
34 * ===========================================================
36 * Define the related definitions of scan module
38 * ===========================================================
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
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