projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
beb5842
)
mac802154: llsec: correctly lookup implicit-indexed keys
author
Phoebe Buckheister
<
[email protected]
>
Tue, 20 May 2014 15:51:31 +0000
(17:51 +0200)
committer
David S. Miller
<
[email protected]
>
Thu, 22 May 2014 19:27:32 +0000
(15:27 -0400)
Key id comparison for type 1 keys (implicit source, with index) should
return true if mode and id are equal, not false.
Signed-off-by: Phoebe Buckheister <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
net/mac802154/llsec.c
patch
|
blob
|
history
diff --git
a/net/mac802154/llsec.c
b/net/mac802154/llsec.c
index 08d08cbf51f4bc355d7d2fa32f9f50fb8da36ed4..e4a25589ec19fbbf21688429be6ead557439e11b 100644
(file)
--- a/
net/mac802154/llsec.c
+++ b/
net/mac802154/llsec.c
@@
-207,6
+207,8
@@
static bool llsec_key_id_equal(const struct ieee802154_llsec_key_id *a,
return false;
switch (a->mode) {
+ case IEEE802154_SCF_KEY_INDEX:
+ return true;
case IEEE802154_SCF_KEY_SHORT_INDEX:
return a->short_source == b->short_source;
case IEEE802154_SCF_KEY_HW_INDEX: