GIGABYTE X870E Wifi not working - ath12k_pci driver module missing?

After some update the wifi of this machine stopped working and after some digging in dmesg I saw that it simply stopped trying to load the wifi driver.
Initially the wifi worked then after some update is was a bit flaky and now I dont even see the ath12k driver in the logs anymore…

I just checked the module directories since modprobe ath12k_pci told me the driver does not exist…

$ ls /lib/modules/7.0.10-201.fc44.x86_64/kernel/drivers/net/wireless/ath/ath12k/
ath12k.ko.xz  wifi7
$ ls /lib/modules/7.0.10-201.fc44.x86_64/kernel/drivers/net/wireless/ath/ath12k/wifi7/ 
/lib/modules/7.0.10-201.fc44.x86_64/kernel/drivers/net/wireless/ath/ath12k/wifi7/ath12k_wifi7.ko.xz

For example on the previous ath11 the pci driver exists:

$ ls /lib/modules/7.0.10-201.fc44.x86_64/kernel/drivers/net/wireless/ath/ath11k/
ath11k.ko.xz  ath11k_pci.ko.xz

Thanks!

I see two modules ath12k and ath12k_wifi7 are these what you need?

I chatted with somebody else and they gave me a refactor commit on the kernel side: wifi: ath12k: Restructure PCI code to common and Wi-Fi 7 specific logic · torvalds/linux@f844982 · GitHub

It seems that the wifi7 driver is what I need to try to load now.
The weird thing is that this machine doesnt attempt to load it automatically…
I dont have access to the system until Monday, but I will attempt to modprobe that driver.

When you get access to the system capture the PCI ID of the device so a check can be made to see if the PCI ID mapped using lspci -nnv.

Sometimes a module is not loaded because the module is missing a PCI ID for your specific hardware.

Okey it seems that the problem was not on the Linux side, but rather a power cycle that fixed it or something…
I ran the lspci command before that and the wifi module didnt get listed, so it was somehow hard stuck until AC power got removed.

Well at least it works again.