Update It actually worked. I installed magisk 26.1 zip in twrp and rebooted to system. Wifite is now working well.