Hello. I have a raspberry pi 3, where i have kali Linux installed and i used the build in wifi card as a hotspot adapter, so i can connect with my phone and use VNC. I also have a wifi usb adapter, so i can connect to other hotspots etc. But when i disconnect from a hotspot or plug the usb adapter off, my wlan0 hotspot goes offline (which means my VNC server also gets offline) and i have to reset my rpi.

So what can i do to fix this?

Thanks.