Wireless wifi is not working after a chroot rescue on Arch Linux.

https://sh.itjust.works/post/16550951

Wireless wifi is not working after a chroot rescue on Arch Linux. - sh.itjust.works

So basically I stupidly tried to update while my thinkpad had low battery and it powered off halfway through the update. The system wouldn’t boot because it was complaining that vm-linuz/linux was not found so I performed a chroot-rescue and got it to boot again. I must have messed something up during the process because now the device wlan0 is not showing up in iwctl device list. How can I fix or diagnose this issue? (I am using btrfs if that helps). Has anyone had a similar situation and can lend a hand?

Alright I solved it by just chrooting in again and deleted and reinstalled linux-firmware.

compare old kernel logs if present.

also maybe start making backups like normal people idk

Rebuild all dksm and kmod drivers, specifically your wireless driver. iferror, reinstall your kernel and firmware (if using firmware) again and allow mkinitcpio to finish and update grub/systemd-boot entries.
Should all the above fail the new kernel might have a bug In the driver for your wifi chip, revert to previous kernel.
I’d recommend reinstalling all your packagos like this
pacman - ArchWiki