1/* SPDX-License-Identifier: GPL-2.0 */
2/******************************************************************************
3 *
4 * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
5 *
6 ******************************************************************************/
7#ifndef _RTW_EVENT_H_
8#define _RTW_EVENT_H_
9
10/*
11Used to report a bss has been scanned
12
13*/
14struct survey_event {
15 struct wlan_bssid_ex bss;
16};
17
18/*
19Used to report that the requested site survey has been done.
20
21bss_cnt indicates the number of bss that has been reported.
22
23
24*/
25struct surveydone_event {
26 unsigned int bss_cnt;
27
28};
29
30/*
31Used to report the link result of joinning the given bss
32
33
34join_res:
35-1: authentication fail
36-2: association fail
37> 0: TID
38
39*/
40struct joinbss_event {
41 struct wlan_network network;
42};
43
44/*
45Used to report a given STA has joinned the created BSS.
46It is used in AP/Ad-HoC(M) mode.
47
48
49*/
50struct stassoc_event {
51 unsigned char macaddr[6];
52 unsigned char rsvd[2];
53 int cam_id;
54
55};
56
57struct stadel_event {
58 unsigned char macaddr[6];
59 unsigned char rsvd[2]; /* for reason */
60 int mac_id;
61};
62
63struct wmm_event {
64 unsigned char wmm;
65};
66
67#define GEN_EVT_CODE(event) event ## _EVT_
68
69
70
71struct fwevent {
72 u32 parmsize;
73 void (*event_callback)(struct adapter *dev, u8 *pbuf);
74};
75
76
77#define C2HEVENT_SZ 32
78
79struct event_node {
80 unsigned char *node;
81 unsigned char evt_code;
82 unsigned short evt_sz;
83 volatile int *caller_ff_tail;
84 int caller_ff_sz;
85};
86
87#define NETWORK_QUEUE_SZ 4
88
89struct network_queue {
90 volatile int head;
91 volatile int tail;
92 struct wlan_bssid_ex networks[NETWORK_QUEUE_SZ];
93};
94
95
96#endif /* _WLANEVENT_H_ */
97

source code of linux/drivers/staging/rtl8723bs/include/rtw_event.h