Removing old entries in the list of known networks often does the trick.
Check if your Wifi is up using:
ifconfig -u en0
For resolving stale DHCP and DNS issues, issue the following command in a Terminal to reset the WiFi adapter and flush the DNS cache:
sudo ifconfig en0 down && dscacheutil...