• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /******************************************************************************
2  *
3  * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
4  *
5  * This program is free software; you can redistribute it and/or modify it
6  * under the terms of version 2 of the GNU General Public License as
7  * published by the Free Software Foundation.
8  *
9  * This program is distributed in the hope that it will be useful, but WITHOUT
10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
12  * more details.
13  *
14  ******************************************************************************/
15 #ifndef _RTW_EVENT_H_
16 #define _RTW_EVENT_H_
17 
18 #include <osdep_service.h>
19 
20 #include <wlan_bssdef.h>
21 #include <linux/mutex.h>
22 #include <linux/sem.h>
23 
24 /*
25 Used to report a bss has been scanned
26 */
27 struct survey_event	{
28 	struct wlan_bssid_ex bss;
29 };
30 
31 /*
32 Used to report that the requested site survey has been done.
33 
34 bss_cnt indicates the number of bss that has been reported.
35 
36 
37 */
38 struct surveydone_event {
39 	unsigned int	bss_cnt;
40 
41 };
42 
43 /*
44 Used to report the link result of joinning the given bss
45 
46 
47 join_res:
48 -1: authentication fail
49 -2: association fail
50 > 0: TID
51 
52 */
53 struct joinbss_event {
54 	struct	wlan_network	network;
55 };
56 
57 /*
58 Used to report a given STA has joinned the created BSS.
59 It is used in AP/Ad-HoC(M) mode.
60 */
61 
62 struct stassoc_event {
63 	unsigned char macaddr[6];
64 	unsigned char rsvd[2];
65 	int    cam_id;
66 };
67 
68 struct stadel_event {
69 	unsigned char macaddr[6];
70 	unsigned char rsvd[2]; /* for reason */
71 	int mac_id;
72 };
73 
74 struct fwevent {
75 	u32	parmsize;
76 	void (*event_callback)(struct adapter *dev, u8 *pbuf);
77 };
78 
79 #define C2HEVENT_SZ			32
80 
81 #define NETWORK_QUEUE_SZ	4
82 
83 struct network_queue {
84 	int	head;
85 	int	tail;
86 	struct wlan_bssid_ex networks[NETWORK_QUEUE_SZ];
87 };
88 
89 #endif /*  _WLANEVENT_H_ */
90