Linux IEEE 802.15.4 and 6LoWPAN development
 help / color / mirror / Atom feed
From: Anton Sviridenko <anton@picapica.im>
To: linux-wpan@vger.kernel.org
Subject: "encryption failed" warnings in dmesg
Date: Wed, 7 Mar 2018 14:35:25 +0100	[thread overview]
Message-ID: <20180307133525.GA30047@picapica.im> (raw)

I send packets through raw socket on ieee802154 network interface using at86rf212b transceiver
and sometimes get lot of these messages in dmesg:

ieee802154 phy0 wpan0: encryption failed: -22

I've traced place in source that generates them:
https://git.kernel.org/pub/scm/linux/kernel/git/bluetooth/bluetooth-next.git/tree/net/mac802154/tx.c

Can someone explain what happens?
Isn't it supposed for raw packets to be passed as is? I think if packet is encrypted, 
it should be already encrypted by userspace software that prepared this raw packet.
Btw, software that sends raw packets is OpenThread, I'm trying to run it on Linux,
if that matters

How encryption keys are expected to be set up when encryption is used?
It seems wpan-tools do not contain such commands.

Anton


             reply	other threads:[~2018-03-07 13:35 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-07 13:35 Anton Sviridenko [this message]
2018-03-07 15:43 ` "encryption failed" warnings in dmesg Alexander Aring
2018-03-10 17:29   ` anton
2018-03-10 23:43     ` Alexander Aring
2018-03-11  4:49       ` Alexander Aring
2018-03-11 12:37         ` anton
2018-03-11 13:34           ` Alexander Aring
2018-03-11 17:30             ` anton
2018-03-12 15:27               ` Alexander Aring

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180307133525.GA30047@picapica.im \
    --to=anton@picapica.im \
    --cc=linux-wpan@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox