ath9k-devel.lists.ath9k.org archive mirror
 help / color / mirror / Atom feed
From: Jeon <sjeon87+ath9k@gmail.com>
To: ath9k-devel@lists.ath9k.org
Subject: [ath9k-devel] Cryptography of ath9k driver
Date: Wed, 26 Oct 2016 15:53:36 +0900	[thread overview]
Message-ID: <CACfn7v6cxFZ1Hua1a9FSa0BCk99FQsU0aqGOK5zZ0606MCTKNw@mail.gmail.com> (raw)

I am investigating how ath9k performs cryptography.

In slide 15 of DEFCON conference 2014 (link
<https://docs.google.com/presentation/d/1CofNlbHs2bLdJuW3VACzAImqesGQoktUTXS6zKgDDKI/edit#slide=id.g371192f19_070>),
it says, ath9k performs cryptography a on software side.

On the other hand, when I look into ath9k source codes, I found somethings
like below:

ath9k/common.c:162-166:

    if (ah->sw_mgmt_crypto_rx &&
  (rxs->flag & RX_FLAG_DECRYPTED) &&
  ieee80211_is_mgmt(fc))
  /* Use software decrypt for management frames. */
  rxs->flag &= ~RX_FLAG_DECRYPTED;

As I understand, ath9k can choose hw/sw cryptography for management frames.
However, what about data frames? I couldn't find any clue about
cryptography for data frames.

Can I take it as ath9k already performs software cryptography for data
frames and shifts the responsibility of cryptography to mac80211 driver?
And exceptionally for management frames, can ath9k choose hw/sw
cryptography?

Regards,
Jeon.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ath9k.org/pipermail/ath9k-devel/attachments/20161026/e8cc3864/attachment.htm 

             reply	other threads:[~2016-10-26  6:53 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-26  6:53 Jeon [this message]
2016-10-26 10:38 ` [ath9k-devel] Cryptography of ath9k driver Janusz Dziedzic
2016-10-26 11:10   ` Jeon
2016-11-05  5:08     ` Adrian Chadd

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=CACfn7v6cxFZ1Hua1a9FSa0BCk99FQsU0aqGOK5zZ0606MCTKNw@mail.gmail.com \
    --to=sjeon87+ath9k@gmail.com \
    --cc=ath9k-devel@lists.ath9k.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;
as well as URLs for NNTP newsgroup(s).