Weekly Development report(Apr 01 ~ Apr 05) on the iwlwifi WiFi project

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


   1. Firstly, the Linux kernel debugging is more complicated than I
   thought. For example, the crash(8)/kdump based kernel core file read does
   not have the gdb frame check on the interested individual frame trace. It
   looks like kgdb is used for live kernel debugging through the console, or I
   have not found a reliable source to debug core dump files by using kgdb.
   This makes me feel I am in favor with the FreeBSD kgdb workflow (it can
   work on a kernel core file).
   2. Secondly, even with the help of printk in Linux and made sure all the
   necessary parameters are setup correctly for the `struct
   ieee80211_key_conf` before calling `lkpi_80211_mo_set_key`, as I compared
   these parameters in the same tx path in Linux, the FreeBSD hw encryption
   still is not working, and packet capture shows no tx ccmp encryption in the
   header. In discussion with Bjoern, I may need to focus on the
   ieee80211_tx_info struct.
   3. Updated the tracking PR 277996
   <https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=277996> with my
   current investigation. I need to dig up further on the key setup process
   and the corresponding LinuxKPI code on different flags setup.
   4. I still need more feedback on how to proceed with patch D44463
   <https://reviews.freebsd.org/D44463>. I have sent a private email to
   adrian <https://reviews.freebsd.org/p/adrian/>@ asking for help, and I
   am waiting for his response.

Meanwhile, I have sent out an email to olivier@, and asked him about
test_ccmp.c
in regression tests. I am still waiting for his responses.

-- 
Best Regards,
Cheng Cui