Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 341585
b: refs/heads/master
c: 0f92732
h: refs/heads/master
i:
  341583: ce9a6a9
v: v3
  • Loading branch information
Johannes Berg committed Nov 19, 2012
1 parent e14d949 commit 58b33dd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f0dea9c73a16caac6b46886eb08f51dd82894ca4
refs/heads/master: 0f92732344e88023807342fef4c566e0660c2fd9
5 changes: 3 additions & 2 deletions trunk/net/mac80211/key.c
Original file line number Diff line number Diff line change
Expand Up @@ -372,8 +372,9 @@ struct ieee80211_key *ieee80211_key_alloc(u32 cipher, int idx, size_t key_len,
key->conf.iv_len = 0;
key->conf.icv_len = sizeof(struct ieee80211_mmie);
if (seq)
for (j = 0; j < 6; j++)
key->u.aes_cmac.rx_pn[j] = seq[6 - j - 1];
for (j = 0; j < CMAC_PN_LEN; j++)
key->u.aes_cmac.rx_pn[j] =
seq[CMAC_PN_LEN - j - 1];
/*
* Initialize AES key state here as an optimization so that
* it does not need to be initialized for every packet.
Expand Down

0 comments on commit 58b33dd

Please sign in to comment.