Identify wifi device number:
lspci -vvvv -xxxx | grep Wire
(something like 02:00.0)
How to restart the device:
echo, or sudo vi, insert 1, x!
echo 1 > /sys/bus/pci/devices/0000:02:00.0/remove
echo 1 > /sys/bus/pci/rescan
I personally solved my problem by installing the rfkill package.