Weekly Development report(Apr 08 ~ Apr 12) on the iwlwifi WiFi project

From: Cheng Cui <cc_at_freebsd.org>
Date: Mon, 15 Apr 2024 18:32:11 UTC
Still working on the HW key/encryption/decryption support under the
`LKPI_80211_HW_CRYPTO` block.


   - This week I was mainly testing different ideas and digging up
   different code paths to see any clue that leads to HW crypto offload
   malfunction.


   1. Firstly, I figured out how to reproduce the malfunction in Linux
      kernel, with the way to nullify info->control.hw_key right before
      iwl_mvm_set_tx_params() inside iwl_mvm_tx_mpdu(). I added this
info in the
      tracking PR 277996
      <https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=277996>.
      2. We(adrian@ bz@ and me) are in sync with the issue. Adrian is very
      kind and introduced some related work background.
      3. So far, some missing flags, e.g. IEEE80211_KEY_FLAG_PAIRWISE
      or ieee80211_tx_info_flags do not help. And my blind guess of
      shrinking ieee80211_tx_info size to match Linux skb->cb 48 Byte size does
      not seem to work either.

Will again dig up the driver hw key setup path in Linux and investigate.

-- 
Best Regards,
Cheng Cui