How to Fix Wi-Fi Authentication Error and Obtaining IP Address Loop
Authentication error means the key exchange failed, so no address was ever requested. Obtaining IP address means the key worked and DHCP did not answer. They look like one problem and are two, which is why the same fixes do not work on both. The stage that stalls tells you whether to look at the password and the router's security mode, or at the router's DHCP service.