• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /******************************************************************************
2  *
3  * Copyright(c) 2007 - 2017 Realtek Corporation.
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_RADIOTAP_H_
16 #define __RTW_RADIOTAP_H_
17 
18 struct mon_reg_backup {
19 	/* flags */
20 	u8	known_rcr:1;
21 	u8	known_drvinfo:1;
22 	u8	known_rxfilter:1;
23 	u8	known_misc0:1;
24 	/* data */
25 	u8	drvinfo;
26 	u16	rxfilter0;
27 	u16	rxfilter1;
28 	u16	rxfilter2;
29 	u32	rcr;
30 	u32	misc0;
31 };
32 
33 struct moinfo {
34 	union {
35 		struct  {
36 			u32	sgi:1;
37 			u32	ldpc:1;
38 			u32	stbc:2;
39 			u32	not_sounding:1;
40 			u32	ofdm_bw:2;
41 			u32	vht_group_id:2;
42 			u32	vht_nsts_aid:12;
43 			u32	vht_txop_not_allow:1;
44 			u32	vht_nsym_dis:1;
45 			u32	vht_ldpc_extra:1;
46 			u32	vht_su_mcs:12;
47 			u32	vht_beamformed:1;
48 		}snif_info;
49 
50 		struct  {
51 			u32	A;
52 			u32	B;
53 			u32	C;
54 		}plcp_info;
55 	}u;
56 };
57 
58 sint rtw_fill_radiotap_hdr(_adapter *padapter, struct rx_pkt_attrib *a, u8 *buf);
59 
60 void rx_query_moinfo(struct rx_pkt_attrib *a, u8 *desc);
61 
62 #endif /* __RTW_RADIOTAP_H_ */
63 
64