iMac won't connect to wireless router
I had my wireless router turned off for a few days. I turned it back on and changed the WiFi password, but then my iMac refused to connect. So I changed the wireless password back to the previous one, but my iMac still won't connect. When I turn on Airport from the menu bar, it detects the network but I can't login. All other devices and computers in my home connect to WiFi with no problem, so I know it's not the router.
I went into the iMac Network preferences and deleted all remembered wireless networks and rebooted. Still wouldn't accept the password. Then I went into the Keychain utility and deleted the saved password file. Rebooted again but it still won't accept the WiFi password.
I get a "Connection failed" error when I try to connect from the menu bar dropdown. From Network preferences, the login window just clears the password each time I click Ok. Anybody know how to fix this?