1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26#ifndef _RTL8712_EVENT_H_
27#define _RTL8712_EVENT_H_
28
29void r8712_event_handle(struct _adapter *padapter, __le32 *peventbuf);
30void r8712_got_addbareq_event_callback(struct _adapter *adapter, u8 *pbuf);
31
32enum rtl8712_c2h_event {
33 GEN_EVT_CODE(_Read_MACREG) = 0,
34 GEN_EVT_CODE(_Read_BBREG),
35 GEN_EVT_CODE(_Read_RFREG),
36 GEN_EVT_CODE(_Read_EEPROM),
37 GEN_EVT_CODE(_Read_EFUSE),
38 GEN_EVT_CODE(_Read_CAM),
39 GEN_EVT_CODE(_Get_BasicRate),
40 GEN_EVT_CODE(_Get_DataRate),
41 GEN_EVT_CODE(_Survey),
42 GEN_EVT_CODE(_SurveyDone),
43
44 GEN_EVT_CODE(_JoinBss),
45 GEN_EVT_CODE(_AddSTA),
46 GEN_EVT_CODE(_DelSTA),
47 GEN_EVT_CODE(_AtimDone),
48 GEN_EVT_CODE(_TX_Report),
49 GEN_EVT_CODE(_CCX_Report),
50 GEN_EVT_CODE(_DTM_Report),
51 GEN_EVT_CODE(_TX_Rate_Statistics),
52 GEN_EVT_CODE(_C2HLBK),
53 GEN_EVT_CODE(_FWDBG),
54 GEN_EVT_CODE(_C2HFEEDBACK),
55 GEN_EVT_CODE(_ADDBA),
56 GEN_EVT_CODE(_C2HBCN),
57 GEN_EVT_CODE(_ReportPwrState),
58 GEN_EVT_CODE(_WPS_PBC),
59 GEN_EVT_CODE(_ADDBAReq_Report),
60 MAX_C2HEVT
61};
62
63#ifdef _RTL8712_CMD_C_
64
65static struct fwevent wlanevents[] = {
66 {0, NULL},
67 {0, NULL},
68 {0, NULL},
69 {0, NULL},
70 {0, NULL},
71 {0, NULL},
72 {0, NULL},
73 {0, NULL},
74 {0, &r8712_survey_event_callback},
75 {sizeof(struct surveydone_event),
76 &r8712_surveydone_event_callback},
77
78 {0, &r8712_joinbss_event_callback},
79 {sizeof(struct stassoc_event), &r8712_stassoc_event_callback},
80 {sizeof(struct stadel_event), &r8712_stadel_event_callback},
81 {0, &r8712_atimdone_event_callback},
82 {0, NULL},
83 {0, NULL},
84 {0, NULL},
85 {0, NULL},
86 {0, NULL},
87 {0, NULL},
88 {0, NULL},
89 {0, NULL},
90 {0, NULL},
91 {0, &r8712_cpwm_event_callback},
92 {0, &r8712_wpspbc_event_callback},
93 {0, &r8712_got_addbareq_event_callback},
94};
95
96#endif
97
98#endif
99