I tried your solutions, but it didnt work I asked some body and they Said it could be faulty windows installation so i reinstalled windows and it worked Thanks for help
After installing a driver update from Intel's official site my Computer's wifi stopped working.I checked device manager and it Said "Windows is still settings up the class configration(Code:56)". I tried to remove the driver, reinstall the driver and nothing worked. But when I booted into Ubuntu Live CD Wifi was working. My ethernet still works, but i cant see my wifi on anywhere(Including connections tab) Driver name is: Intel(R) Wi-Fi 6 AX201 160Mhz Windows Version:Windows 11  
Inspiron 5400 Wifi driver error(code 56)