Do not use ShortGI and STBC with management frames; Atheros cards have problems with...
[ralink_drivers/rt2870_fbsd72.git] / rt2870_rxinfo.h
blob7b0d97b4dbb10805a3efed7889b81fda85c1ccd2
2 /*-
3 * Copyright (c) 2009-2010 Alexander Egorenkov <egorenar@gmail.com>
4 * Copyright (c) 2009 Damien Bergamini <damien.bergamini@free.fr>
6 * Permission to use, copy, modify, and distribute this software for any
7 * purpose with or without fee is hereby granted, provided that the above
8 * copyright notice and this permission notice appear in all copies.
10 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
11 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
13 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
15 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
16 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
19 #ifndef _RT2870_RXINFO_H_
20 #define _RT2870_RXINFO_H_
22 #define RT2870_RXINFO_FLAGS_LAST_AMSDU (1 << 19)
23 #define RT2870_RXINFO_FLAGS_CIPHER_ALG (1 << 18)
24 #define RT2870_RXINFO_FLAGS_PLCP_RSSIL (1 << 17)
25 #define RT2870_RXINFO_FLAGS_DECRYPTED (1 << 16)
26 #define RT2870_RXINFO_FLAGS_AMPDU (1 << 15)
27 #define RT2870_RXINFO_FLAGS_L2PAD (1 << 14)
28 #define RT2870_RXINFO_FLAGS_RSSI (1 << 13)
29 #define RT2870_RXINFO_FLAGS_HTC (1 << 12)
30 #define RT2870_RXINFO_FLAGS_AMSDU (1 << 11)
31 #define RT2870_RXINFO_FLAGS_CRC_ERR (1 << 8)
32 #define RT2870_RXINFO_FLAGS_MYBSS (1 << 7)
33 #define RT2870_RXINFO_FLAGS_BCAST (1 << 6)
34 #define RT2870_RXINFO_FLAGS_MCAST (1 << 5)
35 #define RT2870_RXINFO_FLAGS_U2M (1 << 4)
36 #define RT2870_RXINFO_FLAGS_FRAG (1 << 3)
37 #define RT2870_RXINFO_FLAGS_NULL_DATA (1 << 2)
38 #define RT2870_RXINFO_FLAGS_DATA (1 << 1)
39 #define RT2870_RXINFO_FLAGS_BA (1 << 0)
41 #define RT2870_RXINFO_FLAGS_CIPHER_ERR_SHIFT 9
42 #define RT2870_RXINFO_FLAGS_CIPHER_ERR_MASK 0x3
43 #define RT2870_RXINFO_FLAGS_CIPHER_ERR_NONE 0
44 #define RT2870_RXINFO_FLAGS_CIPHER_ERR_ICV 1
45 #define RT2870_RXINFO_FLAGS_CIPHER_ERR_MIC 2
46 #define RT2870_RXINFO_FLAGS_CIPHER_ERR_INVALID_KEY 3
48 #define RT2870_RXINFO_FLAGS_PLCP_SIGNAL_SHIFT 20
49 #define RT2870_RXINFO_FLAGS_PLCP_SIGNAL_MASK 0xfff
51 struct rt2870_rxinfo
53 uint32_t flags;
54 } __packed;
56 #endif /* #ifndef _RT2870_RXINFO_H_ */