https://github.com/torvalds/linux
Raw File
Tip revision: 9ebcfadb0610322ac537dd7aa5d9cbc2b2894c68 authored by Linus Torvalds on 28 June 2020, 22:00:24 UTC
Linux 5.8-rc3
Tip revision: 9ebcfad
mon.h
/* SPDX-License-Identifier: GPL-2.0 */
/*
 * RTL8188EU monitor interface
 *
 * Copyright (C) 2015 Jakub Sitnicki
 */

/*
 * Monitor interface receives all transmitted and received IEEE 802.11
 * frames, both Data and Management, and passes them up to userspace
 * preserving the WLAN headers.
 */

#ifndef _MON_H_
#define _MON_H_

struct net_device;
struct recv_frame;
struct xmit_frame;

struct net_device *rtl88eu_mon_init(void);
void rtl88eu_mon_deinit(struct net_device *dev);

void rtl88eu_mon_recv_hook(struct net_device *dev, struct recv_frame *frame);
void rtl88eu_mon_xmit_hook(struct net_device *dev, struct xmit_frame *frame,
			   uint frag_len);

#endif /* _MON_H_ */
back to top