llsec:key retrieval fails

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all!
I have managed to have a working setup with rpi running kernel 4.7.y with an AT86RF233(openlabs) tranceiver and i want to enable llsec.However ping6 always fails and on dmesg I get the message "encryption fails:-126".After some research i found out that on file: net/802154/llsec.c on line 1014 function llsec_lookup_seclevel always fails with error 22(invalid argument) and as a result encryption fails because it can not find the right key(or that is what i have understood).

This is my script which enables llsec according to the guide:

iwpan dev wpan0 set security 1
iwpan dev wpan0 key add 2 00:01:02:03:04:05:06:07:08:09:0A:0B:0C:0D:0E:0F 0 0xabcd 3 0x00124b0007a84380
iwpan dev wpan0 seclevel add 0xff 2 0
iwpan dev wpan0 device add 0 0xabcd 0xffff 0x00124b0007a84380 0 0
iwpan dev wpan0 set out_level 0x05
iwpan dev wpan0 set out_key_id 0 0xabcd 2 0xffff 3 0x00124b0007a84380

However on wireshark,security level is recognised as 0x5 but MIC check fails.What might be the issue?
Thank you!

--
--
Andreas Bardoutsos
Undergraduate student
@
Computer Engineering Informatics Department(CEID)
University of Patras,Greece
--
To unsubscribe from this list: send the line "unsubscribe linux-wpan" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux