diff options
author | James Ketrenos <jketreno@linux.intel.com> | 2005-09-21 12:54:36 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@pobox.com> | 2005-09-21 23:02:30 -0400 |
commit | ee34af37c095482b9dba254b9cd7cb5e65e9a25e (patch) | |
tree | eed75aee11663053e658d839fb91bc8dfae56ecb /net/ieee80211/ieee80211_crypt_ccmp.c | |
parent | e0d369d1d969fc9e4fd08a20f6dad04d369aceea (diff) |
[PATCH] ieee80211: Renamed ieee80211_hdr to ieee80211_hdr_3addr
tree e9c18b2c8e5ad446a4d213243c2dcf9fd1652a7b
parent 4e97ad6ae7084a4f741e94e76c41c68bc7c5a76a
author James Ketrenos <jketreno@linux.intel.com> 1124444315 -0500
committer James Ketrenos <jketreno@linux.intel.com> 1127312922 -0500
Renamed ieee80211_hdr to ieee80211_hdr_3addr and modified ieee80211_hdr
to just contain the frame_ctrl and duration_id.
Changed uses of ieee80211_hdr to ieee80211_hdr_4addr or
ieee80211_hdr_3addr based on what was expected for that portion of code.
NOTE: This requires changes to ipw2100, ipw2200, hostap, and atmel
drivers.
Signed-off-by: James Ketrenos <jketreno@linux.intel.com>
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
Diffstat (limited to 'net/ieee80211/ieee80211_crypt_ccmp.c')
-rw-r--r-- | net/ieee80211/ieee80211_crypt_ccmp.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/net/ieee80211/ieee80211_crypt_ccmp.c b/net/ieee80211/ieee80211_crypt_ccmp.c index 1e6644b133dc..d3b5cdee69ef 100644 --- a/net/ieee80211/ieee80211_crypt_ccmp.c +++ b/net/ieee80211/ieee80211_crypt_ccmp.c | |||
@@ -119,7 +119,7 @@ static inline void xor_block(u8 * b, u8 * a, size_t len) | |||
119 | } | 119 | } |
120 | 120 | ||
121 | static void ccmp_init_blocks(struct crypto_tfm *tfm, | 121 | static void ccmp_init_blocks(struct crypto_tfm *tfm, |
122 | struct ieee80211_hdr *hdr, | 122 | struct ieee80211_hdr_4addr *hdr, |
123 | u8 * pn, size_t dlen, u8 * b0, u8 * auth, u8 * s0) | 123 | u8 * pn, size_t dlen, u8 * b0, u8 * auth, u8 * s0) |
124 | { | 124 | { |
125 | u8 *pos, qc = 0; | 125 | u8 *pos, qc = 0; |
@@ -196,7 +196,7 @@ static int ieee80211_ccmp_encrypt(struct sk_buff *skb, int hdr_len, void *priv) | |||
196 | struct ieee80211_ccmp_data *key = priv; | 196 | struct ieee80211_ccmp_data *key = priv; |
197 | int data_len, i, blocks, last, len; | 197 | int data_len, i, blocks, last, len; |
198 | u8 *pos, *mic; | 198 | u8 *pos, *mic; |
199 | struct ieee80211_hdr *hdr; | 199 | struct ieee80211_hdr_4addr *hdr; |
200 | u8 *b0 = key->tx_b0; | 200 | u8 *b0 = key->tx_b0; |
201 | u8 *b = key->tx_b; | 201 | u8 *b = key->tx_b; |
202 | u8 *e = key->tx_e; | 202 | u8 *e = key->tx_e; |
@@ -229,7 +229,7 @@ static int ieee80211_ccmp_encrypt(struct sk_buff *skb, int hdr_len, void *priv) | |||
229 | *pos++ = key->tx_pn[1]; | 229 | *pos++ = key->tx_pn[1]; |
230 | *pos++ = key->tx_pn[0]; | 230 | *pos++ = key->tx_pn[0]; |
231 | 231 | ||
232 | hdr = (struct ieee80211_hdr *)skb->data; | 232 | hdr = (struct ieee80211_hdr_4addr *)skb->data; |
233 | ccmp_init_blocks(key->tfm, hdr, key->tx_pn, data_len, b0, b, s0); | 233 | ccmp_init_blocks(key->tfm, hdr, key->tx_pn, data_len, b0, b, s0); |
234 | 234 | ||
235 | blocks = (data_len + AES_BLOCK_LEN - 1) / AES_BLOCK_LEN; | 235 | blocks = (data_len + AES_BLOCK_LEN - 1) / AES_BLOCK_LEN; |
@@ -258,7 +258,7 @@ static int ieee80211_ccmp_decrypt(struct sk_buff *skb, int hdr_len, void *priv) | |||
258 | { | 258 | { |
259 | struct ieee80211_ccmp_data *key = priv; | 259 | struct ieee80211_ccmp_data *key = priv; |
260 | u8 keyidx, *pos; | 260 | u8 keyidx, *pos; |
261 | struct ieee80211_hdr *hdr; | 261 | struct ieee80211_hdr_4addr *hdr; |
262 | u8 *b0 = key->rx_b0; | 262 | u8 *b0 = key->rx_b0; |
263 | u8 *b = key->rx_b; | 263 | u8 *b = key->rx_b; |
264 | u8 *a = key->rx_a; | 264 | u8 *a = key->rx_a; |
@@ -272,7 +272,7 @@ static int ieee80211_ccmp_decrypt(struct sk_buff *skb, int hdr_len, void *priv) | |||
272 | return -1; | 272 | return -1; |
273 | } | 273 | } |
274 | 274 | ||
275 | hdr = (struct ieee80211_hdr *)skb->data; | 275 | hdr = (struct ieee80211_hdr_4addr *)skb->data; |
276 | pos = skb->data + hdr_len; | 276 | pos = skb->data + hdr_len; |
277 | keyidx = pos[3]; | 277 | keyidx = pos[3]; |
278 | if (!(keyidx & (1 << 5))) { | 278 | if (!(keyidx & (1 << 5))) { |