MOXA linux-2.6.x / linux-2.6.9-uc0 from sdlinux-moxaart.tgz
[linux-2.6.9-moxart.git] / drivers / usb / net / Zydas / zdsm.h
blobacae2eaebf31b7c1a67eb3d8ed0bc31ff970da48
1 #ifndef __ZDSM_H__
2 #define __ZDSM_H__
4 #include "zdos.h"
5 #include "zdsorts.h"
8 typedef struct FrmInfo_s
10 MacAddr_t Sta; //for Disassoc/Deauth STA
11 ReasonCode rCode; //for Disassoc/Deauth Reason Code
12 U8 fTot; //total frag no.
13 U32 eol; //timestamp for age (PsQ)
14 FrmDesc_t *frmDesc; //
15 } FrmInfo_t;
18 typedef struct Signal_s
20 struct Signal_s *pNext;
21 #if ZDCONF_LP_SUPPORT == 1
22 U8 EthHdr[14];
23 #endif
24 U8 id;
25 U8 block;
26 U8 vapId; //virtual AP id
27 U8 bDataFrm; //data frame
28 void *buf; //buffer
29 FrmInfo_t frmInfo;
30 } Signal_t ;
33 typedef struct SignalQ_s
35 Signal_t *first;
36 Signal_t *last;
37 U8 cnt;
38 } SignalQ_t;
41 #define BLOCK_SYNCH 0x01
42 #define BLOCK_AUTH_REQ 0x02
43 #define BLOCK_AUTH_RSP 0x03
44 #define BLOCK_ASOC 0x04
47 //Auth_Req block, 3 state, 4 signals
48 #define STE_AUTH_REQ_IDLE 0x00
49 #define STE_WAIT_AUTH_SEQ2 0x01
50 #define STE_WAIT_AUTH_SEQ4 0x02
53 #define SIG_DEAUTH_REQ 0x01
54 #define SIG_AUTH_REQ 0x02
55 #define SIG_AUTH_EVEN 0x03
56 #define SIG_TO_AUTH 0x04
59 //Asoc_Svc block, 1 state, 9 signals
60 #define SIG_DISASSOC 0x01
61 #define SIG_ASSOC 0x02
62 #define SIG_REASSOC 0x03
63 #define SIG_DIASSOC_REQ 0x04
64 #define SIG_ASSOC_REQ 0x05
65 #define SIG_REASSOC_REQ 0x06
66 #define SIG_ASSOC_RSP 0x07
67 #define SIG_REASSOC_RSP 0x08
68 #define SIG_TO_ASOC 0x09
71 #define STE_ASOC_IDLE 0x00
73 #define STE_WAIT_ASOC_RSP 0x01
76 //Auth_Rsp block, 2 state, 3 signals
77 #define STE_AUTH_RSP_IDLE 0x00
78 #define STE_AUTH_RSP_WAIT_CRSP 0x01
81 #define SIG_AUTH_ODD 0x01
82 #define SIG_DEAUTH 0x02
83 #define SIG_TO_CHAL 0x03
86 //Synch block, 1 state, 3 signals
87 #define SIG_PROBE 0x01
88 #define SIG_PROBE_REQ 0x02
89 #define SIQ_PROBE_RSP_BEACON 0x03
91 #endif