1 /* 2 * RTL8188EU monitor interface 3 * 4 * Copyright (C) 2015 Jakub Sitnicki 5 * 6 * This program is free software; you can redistribute it and/or modify it under 7 * the terms of the GNU General Public License version 2 as published by the 8 * Free Software Foundation. 9 * 10 * This program is distributed in the hope that it will be useful, but WITHOUT 11 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 12 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more 13 * details. 14 */ 15 16 /* 17 * Monitor interface receives all transmitted and received IEEE 802.11 18 * frames, both Data and Management, and passes them up to userspace 19 * preserving the WLAN headers. 20 */ 21 22 #ifndef _MON_H_ 23 #define _MON_H_ 24 25 struct net_device; 26 struct recv_frame; 27 struct xmit_frame; 28 29 struct net_device *rtl88eu_mon_init(void); 30 void rtl88eu_mon_deinit(struct net_device *dev); 31 32 void rtl88eu_mon_recv_hook(struct net_device *dev, struct recv_frame *frame); 33 void rtl88eu_mon_xmit_hook(struct net_device *dev, struct xmit_frame *frame, 34 uint frag_len); 35 36 #endif /* _MON_H_ */ 37