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#include <wlan_bssdef.h> 20 21/* 22Used to report a bss has been scanned 23*/ 24struct survey_event { 25 struct wlan_bssid_ex *bss; 26}; 27 28/* 29Used to report that the requested site survey has been done. 30bss_cnt indicates the number of bss that has been reported. 31*/ 32struct surveydone_event { 33 unsigned int bss_cnt; 34}; 35 36/* 37Used to report the link result of joinning the given bss 38join_res: 39-1: authentication fail 40-2: association fail 41> 0: TID 42*/ 43struct joinbss_event { 44 struct wlan_network network; 45}; 46 47/* 48Used to report a given STA has joinned the created BSS. 49It is used in AP/Ad-HoC(M) mode. 50*/ 51struct stassoc_event { 52 unsigned char macaddr[6]; 53 unsigned char rsvd[2]; 54 int cam_id; 55}; 56 57struct stadel_event { 58 unsigned char macaddr[6]; 59 unsigned char rsvd[2]; /* for reason */ 60 int mac_id; 61}; 62 63struct addba_event { 64 unsigned int tid; 65}; 66 67#define GEN_EVT_CODE(event) event ## _EVT_ 68 69struct fwevent { 70 u32 parmsize; 71 void (*event_callback)(struct rtw_adapter *dev, const u8 *pbuf); 72}; 73 74#endif /* _WLANEVENT_H_ */ 75