llsec:key retrieval fails
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!
Signature · 6 lines
-- Andreas Bardoutsos Undergraduate student @ Computer Engineering Informatics Department(CEID) University of Patras,Greece