MacBook Wifi dies, computer needs to be restarted
Solution that avoids having to restart the computer:

Go to terminal and type

sudo ifconfig en0 down


And enter your password. This will cause the WIFI card to restart and (for me) the connection to be restored.