Wifi fails to connect after password entry

Same problem on Raspberry Pi 2: [RC] Trouble connecting to wifi and not reconnecting on reboot