|
@@ -31,11 +31,19 @@ FILE_LICENCE(GPL2_OR_LATER);
|
31
|
31
|
/** Maximum cryptographic overhead before encrypted data */
|
32
|
32
|
#define IEEE80211_MAX_CRYPTO_HEADER 8
|
33
|
33
|
|
34
|
|
-/** Maximum cryptographic overhead after encrypted data */
|
35
|
|
-#define IEEE80211_MAX_CRYPTO_TRAILER 12
|
|
34
|
+/** Maximum cryptographic overhead after encrypted data
|
|
35
|
+ *
|
|
36
|
+ * This does not count the MIC in TKIP frames, since that is
|
|
37
|
+ * considered to be part of the MSDU and thus contributes to the size
|
|
38
|
+ * of the data field.
|
|
39
|
+ *
|
|
40
|
+ * It @e does count the MIC in CCMP frames, which is considered part
|
|
41
|
+ * of the MPDU (outside the data field).
|
|
42
|
+ */
|
|
43
|
+#define IEEE80211_MAX_CRYPTO_TRAILER 8
|
36
|
44
|
|
37
|
45
|
/** Total maximum cryptographic overhead */
|
38
|
|
-#define IEEE80211_MAX_CRYPTO_OVERHEAD 20
|
|
46
|
+#define IEEE80211_MAX_CRYPTO_OVERHEAD 16
|
39
|
47
|
|
40
|
48
|
/** Bytes of network-layer data that can go into a regular data frame */
|
41
|
49
|
#define IEEE80211_MAX_FRAME_DATA 2296
|
|
@@ -58,10 +66,10 @@ FILE_LICENCE(GPL2_OR_LATER);
|
58
|
66
|
|
59
|
67
|
/** Maximum combined frame length
|
60
|
68
|
*
|
61
|
|
- * The biggest frame will include 32 frame header bytes, 20 bytes of
|
|
69
|
+ * The biggest frame will include 32 frame header bytes, 16 bytes of
|
62
|
70
|
* crypto overhead, and 2304 data bytes.
|
63
|
71
|
*/
|
64
|
|
-#define IEEE80211_MAX_FRAME_LEN 2356
|
|
72
|
+#define IEEE80211_MAX_FRAME_LEN 2352
|
65
|
73
|
|
66
|
74
|
/** Maximum length of an ESSID */
|
67
|
75
|
#define IEEE80211_MAX_SSID_LEN 32
|