[ath9k-devel] Cryptography of ath9k driver
Janusz Dziedzic <[email protected]> Wed, 26 Oct 2016 12:38:07 +0200
| Newsgroups | org.ath9k.lists.ath9k-devel |
|---|---|
| Message-ID | <CALhHN=p=0RzqMHCxFKPqTd0ySmqWFZyp_CRVa02pu7TsUqCEOw@mail.gmail.com> |
On 26 October 2016 at 08:53, Jeon <[email protected]> wrote: > 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? > > modinfo ath9k (check nohwcrypt param) BR Janusz -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ath9k.org/pipermail/ath9k-devel/attachments/20161026/d163fbd4/attachment.htm