1 #ifndef _RTL8712_EVENT_H_
2 #define _RTL8712_EVENT_H_
4 void r8712_event_handle(struct _adapter
*padapter
, uint
*peventbuf
);
5 void r8712_got_addbareq_event_callback(struct _adapter
*adapter
, u8
*pbuf
);
7 enum rtl8712_c2h_event
{
8 GEN_EVT_CODE(_Read_MACREG
) = 0, /*0*/
9 GEN_EVT_CODE(_Read_BBREG
),
10 GEN_EVT_CODE(_Read_RFREG
),
11 GEN_EVT_CODE(_Read_EEPROM
),
12 GEN_EVT_CODE(_Read_EFUSE
),
13 GEN_EVT_CODE(_Read_CAM
), /*5*/
14 GEN_EVT_CODE(_Get_BasicRate
),
15 GEN_EVT_CODE(_Get_DataRate
),
16 GEN_EVT_CODE(_Survey
), /*8*/
17 GEN_EVT_CODE(_SurveyDone
), /*9*/
19 GEN_EVT_CODE(_JoinBss
), /*10*/
20 GEN_EVT_CODE(_AddSTA
),
21 GEN_EVT_CODE(_DelSTA
),
22 GEN_EVT_CODE(_AtimDone
),
23 GEN_EVT_CODE(_TX_Report
),
24 GEN_EVT_CODE(_CCX_Report
), /*15*/
25 GEN_EVT_CODE(_DTM_Report
),
26 GEN_EVT_CODE(_TX_Rate_Statistics
),
27 GEN_EVT_CODE(_C2HLBK
),
29 GEN_EVT_CODE(_C2HFEEDBACK
), /*20*/
31 GEN_EVT_CODE(_C2HBCN
),
32 GEN_EVT_CODE(_ReportPwrState
), /*filen: only for PCIE, USB*/
33 GEN_EVT_CODE(_WPS_PBC
), /*24*/
34 GEN_EVT_CODE(_ADDBAReq_Report
), /*25*/
39 #ifdef _RTL8712_CMD_C_
41 static struct fwevent wlanevents
[] = {
50 {0, &r8712_survey_event_callback
}, /*8*/
51 {sizeof(struct surveydone_event
),
52 &r8712_surveydone_event_callback
}, /*9*/
54 {0, &r8712_joinbss_event_callback
}, /*10*/
55 {sizeof(struct stassoc_event
), &r8712_stassoc_event_callback
},
56 {sizeof(struct stadel_event
), &r8712_stadel_event_callback
},
57 {0, &r8712_atimdone_event_callback
},
63 {0, NULL
}, /*fwdbg_event_callback},*/
67 {0, &r8712_cpwm_event_callback
},
68 {0, &r8712_wpspbc_event_callback
},
69 {0, &r8712_got_addbareq_event_callback
},
72 #endif/*_RTL8712_CMD_C_*/