staging: android: ion: Pull out ion ioctls to a separate file
[linux-2.6/btrfs-unstable.git] / drivers / staging / rtl8723au / include / rtw_event.h
blob4557aeccc6049ee56835683bab8116a19aa8d230
1 /******************************************************************************
3 * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
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.
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.
14 ******************************************************************************/
15 #ifndef _RTW_EVENT_H_
16 #define _RTW_EVENT_H_
18 #include <osdep_service.h>
19 #include <wlan_bssdef.h>
22 Used to report a bss has been scanned
24 struct survey_event {
25 struct wlan_bssid_ex *bss;
29 Used to report that the requested site survey has been done.
30 bss_cnt indicates the number of bss that has been reported.
32 struct surveydone_event {
33 unsigned int bss_cnt;
37 Used to report the link result of joinning the given bss
38 join_res:
39 -1: authentication fail
40 -2: association fail
41 > 0: TID
43 struct joinbss_event {
44 struct wlan_network network;
48 Used to report a given STA has joinned the created BSS.
49 It is used in AP/Ad-HoC(M) mode.
51 struct stassoc_event {
52 unsigned char macaddr[6];
53 unsigned char rsvd[2];
54 int cam_id;
57 struct stadel_event {
58 unsigned char macaddr[6];
59 unsigned char rsvd[2]; /* for reason */
60 int mac_id;
63 struct addba_event {
64 unsigned int tid;
67 #define GEN_EVT_CODE(event) event ## _EVT_
69 struct fwevent {
70 u32 parmsize;
71 void (*event_callback)(struct rtw_adapter *dev, const u8 *pbuf);
74 #endif /* _WLANEVENT_H_ */