Merge remote-tracking branch 'staging/staging-next'
[deliverable/linux.git] / drivers / staging / rtl8188eu / include / rtw_event.h
CommitLineData
475b922e
LF
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 *
475b922e
LF
14 ******************************************************************************/
15#ifndef _RTW_EVENT_H_
16#define _RTW_EVENT_H_
17
18#include <osdep_service.h>
19
20#include <wlan_bssdef.h>
f18c566e 21#include <linux/mutex.h>
475b922e
LF
22#include <linux/sem.h>
23
24/*
25Used to report a bss has been scanned
26*/
27struct survey_event {
28 struct wlan_bssid_ex bss;
29};
30
31/*
32Used to report that the requested site survey has been done.
33
34bss_cnt indicates the number of bss that has been reported.
35
36
37*/
38struct surveydone_event {
39 unsigned int bss_cnt;
40
41};
42
43/*
44Used to report the link result of joinning the given bss
45
46
47join_res:
48-1: authentication fail
49-2: association fail
50> 0: TID
51
52*/
53struct joinbss_event {
54 struct wlan_network network;
55};
56
57/*
58Used to report a given STA has joinned the created BSS.
59It is used in AP/Ad-HoC(M) mode.
60*/
61
62struct stassoc_event {
63 unsigned char macaddr[6];
64 unsigned char rsvd[2];
65 int cam_id;
66};
67
68struct stadel_event {
69 unsigned char macaddr[6];
70 unsigned char rsvd[2]; /* for reason */
71 int mac_id;
72};
73
475b922e
LF
74#define GEN_EVT_CODE(event) event ## _EVT_
75
76struct fwevent {
77 u32 parmsize;
78 void (*event_callback)(struct adapter *dev, u8 *pbuf);
79};
80
81#define C2HEVENT_SZ 32
82
475b922e
LF
83#define NETWORK_QUEUE_SZ 4
84
85struct network_queue {
86 int head;
87 int tail;
88 struct wlan_bssid_ex networks[NETWORK_QUEUE_SZ];
89};
90
91#endif /* _WLANEVENT_H_ */
This page took 0.214384 seconds and 5 git commands to generate.