Commit c237899d authored by Michael Wu's avatar Michael Wu Committed by David S. Miller

ieee80211: Add IEEE80211_MAX_FRAME_LEN to linux/ieee80211.h

This patch adds IEEE80211_MAX_FRAME_LEN which is useful for drivers trying
to determine how much to allocate for their RX buffers.

It also updates the comment on IEEE80211_MAX_DATA_LEN based on revisions
in 802.11e.

IEEE80211_MAX_FRAG_THRESHOLD and IEEE80211_MAX_RTS_THRESHOLD are also
revised due to the new maximum frame size.
Signed-off-by: default avatarMichael Wu <flamingice@sourmilk.net>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 6a432955
No related merge requests found
...@@ -81,18 +81,18 @@ ...@@ -81,18 +81,18 @@
/* miscellaneous IEEE 802.11 constants */ /* miscellaneous IEEE 802.11 constants */
#define IEEE80211_MAX_FRAG_THRESHOLD 2346 #define IEEE80211_MAX_FRAG_THRESHOLD 2352
#define IEEE80211_MAX_RTS_THRESHOLD 2347 #define IEEE80211_MAX_RTS_THRESHOLD 2353
#define IEEE80211_MAX_AID 2007 #define IEEE80211_MAX_AID 2007
#define IEEE80211_MAX_TIM_LEN 251 #define IEEE80211_MAX_TIM_LEN 251
#define IEEE80211_MAX_DATA_LEN 2304
/* Maximum size for the MA-UNITDATA primitive, 802.11 standard section /* Maximum size for the MA-UNITDATA primitive, 802.11 standard section
6.2.1.1.2. 6.2.1.1.2.
The figure in section 7.1.2 suggests a body size of up to 2312 802.11e clarifies the figure in section 7.1.2. The frame body is
bytes is allowed, which is a bit confusing, I suspect this up to 2304 octets long (maximum MSDU size) plus any crypt overhead. */
represents the 2304 bytes of real data, plus a possible 8 bytes of #define IEEE80211_MAX_DATA_LEN 2304
WEP IV and ICV. (this interpretation suggested by Ramiro Barreiro) */ /* 30 byte 4 addr hdr, 2 byte QoS, 2304 byte MSDU, 12 byte crypt, 4 byte FCS */
#define IEEE80211_MAX_FRAME_LEN 2352
#define IEEE80211_MAX_SSID_LEN 32 #define IEEE80211_MAX_SSID_LEN 32
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment