Go to the documentation of this file.
28 #include <linux/bitops.h>
30 #define WL1271_RX_MAX_RSSI -30
31 #define WL1271_RX_MIN_RSSI -95
33 #define SHORT_PREAMBLE_BIT BIT(0)
34 #define OFDM_RATE_BIT BIT(6)
35 #define PBCC_RATE_BIT BIT(7)
37 #define PLCP_HEADER_LENGTH 8
38 #define RX_DESC_PACKETID_SHIFT 11
39 #define RX_MAX_PACKET_ID 3
41 #define RX_DESC_VALID_FCS 0x0001
42 #define RX_DESC_MATCH_RXADDR1 0x0002
43 #define RX_DESC_MCAST 0x0004
44 #define RX_DESC_STAINTIM 0x0008
45 #define RX_DESC_VIRTUAL_BM 0x0010
46 #define RX_DESC_BCAST 0x0020
47 #define RX_DESC_MATCH_SSID 0x0040
48 #define RX_DESC_MATCH_BSSID 0x0080
49 #define RX_DESC_ENCRYPTION_MASK 0x0300
50 #define RX_DESC_MEASURMENT 0x0400
51 #define RX_DESC_SEQNUM_MASK 0x1800
52 #define RX_DESC_MIC_FAIL 0x2000
53 #define RX_DESC_DECRYPT_FAIL 0x4000
64 #define WL1271_RX_DESC_BAND_MASK 0x03
65 #define WL1271_RX_DESC_ENCRYPT_MASK 0xE0
67 #define WL1271_RX_DESC_BAND_BG 0x00
68 #define WL1271_RX_DESC_BAND_J 0x01
69 #define WL1271_RX_DESC_BAND_A 0x02
71 #define WL1271_RX_DESC_STBC BIT(2)
72 #define WL1271_RX_DESC_A_MPDU BIT(3)
73 #define WL1271_RX_DESC_HT BIT(4)
75 #define WL1271_RX_DESC_ENCRYPT_WEP 0x20
76 #define WL1271_RX_DESC_ENCRYPT_TKIP 0x40
77 #define WL1271_RX_DESC_ENCRYPT_AES 0x60
78 #define WL1271_RX_DESC_ENCRYPT_GEM 0x80
87 #define WL1271_RX_DESC_STATUS_MASK 0x03
89 #define WL1271_RX_DESC_SUCCESS 0x00
90 #define WL1271_RX_DESC_DECRYPT_FAIL 0x01
91 #define WL1271_RX_DESC_MIC_FAIL 0x02
92 #define WL1271_RX_DESC_DRIVER_RX_Q_FAIL 0x03
94 #define RX_MEM_BLOCK_MASK 0xFF
95 #define RX_BUF_SIZE_MASK 0xFFF00
96 #define RX_BUF_SIZE_SHIFT_DIV 6
97 #define ALIGNED_RX_BUF_SIZE_MASK 0xFFFF00
98 #define ALIGNED_RX_BUF_SIZE_SHIFT 8
101 #define RX_BUF_UNALIGNED_PAYLOAD BIT(20)
104 #define RX_BUF_PADDED_PAYLOAD BIT(30)
110 #define RX_BUF_ALIGN 2