mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-24 11:25:43 +00:00
mac802154: llsec: correctly lookup implicit-indexed keys
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 <phoebe.buckheister@itwm.fraunhofer.de> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
beb584275b
commit
53819a6ced
1 changed files with 2 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue