Hi all,
I recently restarted my port of athn from OpenBSD. I began this effort in February 2022, forgot about it due to personal commitments, then restarted. I am working off USB device 0cf3:9271. I did not include OpenBSD's if_athn_pci.c, which I would not be able to test on. I kept the basic structure from OpenBSD, such as if_usb_attachhook, will flatten later.
Current state:
- Attaches USB bus
- Loads and processes firmware (ugh, that was tough)
- Read/Write to registers work
- athn_usb_attach -> athn_attach seem to work, though I may have made mistakes in porting.
- Slowly uncommenting athn_parent -> athn_usb_init -> athn_init code, seems to work without a problem.
Current problems:
- When I unload/unattach the driver, it causes the system to fully lock up only after athn_attach runs -- very frustrating, as it slows down development.
- When I run ifconfig wlan0 up, it causes ifconfig to never end and Control-C does not terminate the process -- lower priority because I'm still working through the init code.
- It's possible I messed up somewhere in the porting in athn_usb_attach and athn_attach.
My git repo is here: https://github.com/khanzf/freebsd-src/tree/ar9271-revived