diff options
author | Jouni Malinen <jouni.malinen@atheros.com> | 2010-06-11 13:27:33 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-06-15 16:00:49 -0400 |
commit | 9190252c952a33efa1ceff4ef35188f8a27b81cb (patch) | |
tree | f6c7473c919e7a3f0ff7c1b6543da44f8c338d02 /net/mac80211/key.h | |
parent | 05e48e8e437148298f4673e1efe81f9ead5f41d7 (diff) |
mac80211: Use a separate CCMP PN receive counter for management frames
When management frame protection (IEEE 802.11w) is used, we must use a
separate counter for tracking received CCMP packet number for the
management frames. The previously used NUM_RX_DATA_QUEUESth queue was
shared with data frames when QoS was not used and that can cause
problems in detecting replays incorrectly for robust management frames.
Add a new counter just for robust management frames to avoid this issue.
Signed-off-by: Jouni Malinen <jouni.malinen@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/key.h')
-rw-r--r-- | net/mac80211/key.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/net/mac80211/key.h b/net/mac80211/key.h index 9996e3be6e63..a3849fa3fce8 100644 --- a/net/mac80211/key.h +++ b/net/mac80211/key.h | |||
@@ -77,7 +77,13 @@ struct ieee80211_key { | |||
77 | } tkip; | 77 | } tkip; |
78 | struct { | 78 | struct { |
79 | u8 tx_pn[6]; | 79 | u8 tx_pn[6]; |
80 | u8 rx_pn[NUM_RX_DATA_QUEUES][6]; | 80 | /* |
81 | * Last received packet number. The first | ||
82 | * NUM_RX_DATA_QUEUES counters are used with Data | ||
83 | * frames and the last counter is used with Robust | ||
84 | * Management frames. | ||
85 | */ | ||
86 | u8 rx_pn[NUM_RX_DATA_QUEUES + 1][6]; | ||
81 | struct crypto_cipher *tfm; | 87 | struct crypto_cipher *tfm; |
82 | u32 replays; /* dot11RSNAStatsCCMPReplays */ | 88 | u32 replays; /* dot11RSNAStatsCCMPReplays */ |
83 | /* scratch buffers for virt_to_page() (crypto API) */ | 89 | /* scratch buffers for virt_to_page() (crypto API) */ |