(Only for RPi 1 and RPi 2, not RPi 3+. "does not work on dhcpcd based distros")
Well, there is a very simple solution:
- Go to
/etc/ifplugd/action.d/and rename theifupdownfile toifupdown.original - Then do:
cp /etc/wpa_supplicant/ifupdown.sh ./ifupdown - Finally:
sudo reboot
That's all. Test this by turning off/on your AP; you should see that your Raspberry Pi properly reconnects.