diff options
| author | Denis Vlasenko <vda@ilport.com.ua> | 2006-01-18 05:02:33 -0500 |
|---|---|---|
| committer | John W. Linville <linville@tuxdriver.com> | 2006-01-27 17:08:06 -0500 |
| commit | 44d7a8cfbdc1112fd80546591fd6f5c831ea0363 (patch) | |
| tree | 87e0b6360f041847e519cd25aaa2dbc4b48cbde0 /net/ieee80211/ieee80211_tx.c | |
| parent | 4a99ac3a9ee7e1b90ebc3ddbb44db75eef5c41e6 (diff) | |
[PATCH] WEP fields are incorrectly shown to be INSIDE snap in the doc
>If encryption is enabled, each fragment payload size is reduced by enough space
>to add the prefix and postfix (IV and ICV totalling 8 bytes in the case of WEP)
>So if you have 1500 bytes of payload with ieee->fts set to 500 without
>encryption it will take 3 frames. With WEP it will take 4 frames as the
>payload of each frame is reduced to 492 bytes.
Text is correct, but in picture (IV,payload,ICV) sits inside SNAP.
Patch corrects this.
Signed-Off-By: Denis Vlasenko <vda@ilport.com.ua>
Acked-By: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/ieee80211/ieee80211_tx.c')
| -rw-r--r-- | net/ieee80211/ieee80211_tx.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/net/ieee80211/ieee80211_tx.c b/net/ieee80211/ieee80211_tx.c index 8fdd943ebe8e..0949803b9c7d 100644 --- a/net/ieee80211/ieee80211_tx.c +++ b/net/ieee80211/ieee80211_tx.c | |||
| @@ -56,7 +56,18 @@ Desc. | ctrl | dura | DA/RA | TA | SA | Sequ | Frame | fcs | | |||
| 56 | `--------------------------------------------------| |------' | 56 | `--------------------------------------------------| |------' |
| 57 | Total: 28 non-data bytes `----.----' | 57 | Total: 28 non-data bytes `----.----' |
| 58 | | | 58 | | |
| 59 | .- 'Frame data' expands to <---------------------------' | 59 | .- 'Frame data' expands, if WEP enabled, to <----------' |
| 60 | | | ||
| 61 | V | ||
| 62 | ,-----------------------. | ||
| 63 | Bytes | 4 | 0-2296 | 4 | | ||
| 64 | |-----|-----------|-----| | ||
| 65 | Desc. | IV | Encrypted | ICV | | ||
| 66 | | | Packet | | | ||
| 67 | `-----| |-----' | ||
| 68 | `-----.-----' | ||
| 69 | | | ||
| 70 | .- 'Encrypted Packet' expands to | ||
| 60 | | | 71 | | |
| 61 | V | 72 | V |
| 62 | ,---------------------------------------------------. | 73 | ,---------------------------------------------------. |
| @@ -65,18 +76,7 @@ Bytes | 1 | 1 | 1 | 3 | 2 | 0-2304 | | |||
| 65 | Desc. | SNAP | SNAP | Control |Eth Tunnel| Type | IP | | 76 | Desc. | SNAP | SNAP | Control |Eth Tunnel| Type | IP | |
| 66 | | DSAP | SSAP | | | | Packet | | 77 | | DSAP | SSAP | | | | Packet | |
| 67 | | 0xAA | 0xAA |0x03 (UI)|0x00-00-F8| | | | 78 | | 0xAA | 0xAA |0x03 (UI)|0x00-00-F8| | | |
| 68 | `-----------------------------------------| | | 79 | `---------------------------------------------------- |
| 69 | Total: 8 non-data bytes `----.----' | ||
| 70 | | | ||
| 71 | .- 'IP Packet' expands, if WEP enabled, to <--' | ||
| 72 | | | ||
| 73 | V | ||
| 74 | ,-----------------------. | ||
| 75 | Bytes | 4 | 0-2296 | 4 | | ||
| 76 | |-----|-----------|-----| | ||
| 77 | Desc. | IV | Encrypted | ICV | | ||
| 78 | | | IP Packet | | | ||
| 79 | `-----------------------' | ||
| 80 | Total: 8 non-data bytes | 80 | Total: 8 non-data bytes |
| 81 | 81 | ||
| 82 | 802.3 Ethernet Data Frame | 82 | 802.3 Ethernet Data Frame |
