Skip to content

Commit 53819a6

Browse files
Phoebe Buckheisterdavem330
authored andcommitted
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>
1 parent beb5842 commit 53819a6

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎net/mac802154/llsec.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,8 @@ static bool llsec_key_id_equal(const struct ieee802154_llsec_key_id *a,
207207
return false;
208208

209209
switch (a->mode) {
210+
case IEEE802154_SCF_KEY_INDEX:
211+
return true;
210212
case IEEE802154_SCF_KEY_SHORT_INDEX:
211213
return a->short_source == b->short_source;
212214
case IEEE802154_SCF_KEY_HW_INDEX:

0 commit comments

Comments
 (0)