As soon as I close the screen,
Wifi gets disconnected
and if I try to reconnect it, it shows Hardware disabled error as shown below:
I have tried the solution given in disabled by hardware switch but failed to resolve it.
The only option left with me is to reboot the system