I was fighting for a couple of days trying to connect to my home router from a fresh FreeBSD box. Was getting an infinite loop of this: Jun 3 12:40:22 famagusta wpa_supplicant[14564]: wlan0: CTRL-EVENT-SSID-REENABLED id=0 ssid="Serendipity" Jun 3 12:40:22 famagusta wpa_supplicant[14564]: wlan0: Trying to associate with 20:cf:30:ce:1c:85 (SSID='Serendipity' freq=2422 MHz) Jun 3 12:40:22 famagusta wpa_supplicant[14564]: wlan0: Associated with 20:cf:30:ce:1c:85 Jun 3 12:40:22 famagusta kernel: wlan0: link state changed to UP Jun 3 12:40:22 famagusta dhclient[14671]: send_packet: No buffer space available Jun 3 12:40:30 famagusta kernel: wlan0: link state changed to DOWN Jun 3 12:40:30 famagusta wpa_supplicant[14564]: wlan0: CTRL-EVENT-DISCONNECTED bssid=20:cf:30:ce:1c:85 reason=0 Jun 3 12:40:30 famagusta wpa_supplicant[14564]: wlan0: WPA: 4-Way Handshake failed - pre-shared key may be incorrect Jun 3 12:40:30 famagusta wpa_supplicant[14564]: wlan0: CTRL-EVENT-SSID-TEMP-DISABLED id=0 ssid="SerendipIity" auth_failures=21 duration=120 reason=WRONG_KEY Jun 3 12:40:30 famagusta dhclient[14671]: send_packet: Invalid argument Jun 3 12:40:39 famagusta dhclient[14671]: send_packet: Network is down Jun 3 12:41:19 famagusta last message repeated 3 times Jun 3 12:42:30 famagusta wpa_supplicant[14564]: wlan0: CTRL-EVENT-SSID-REENABLED id=0 ssid="Serendipity" Jun 3 12:42:30 famagusta wpa_supplicant[14564]: wlan0: Trying to associate with 20:cf:30:ce:1c:85 (SSID='Serendipity' freq=2422 MHz) Jun 3 12:42:30 famagusta kernel: wlan0: link state changed to UP Jun 3 12:42:30 famagusta wpa_supplicant[14564]: wlan0: Associated with 20:cf:30:ce:1c:85 Jun 3 12:42:30 famagusta dhclient[14671]: send_packet: No buffer space available Jun 3 12:42:37 famagusta last message repeated 2 times Jun 3 12:42:37 famagusta wpa_supplicant[14564]: wlan0: CTRL-EVENT-DISCONNECTED bssid=20:cf:30:ce:1c:85 reason=0 Jun 3 12:42:37 famagusta kernel: wlan0: link state changed to DOWN The machine is a PC-BSD based on 11-CURRENT on a ThinkPad T520 with iwn0: <Intel Centrino Advanced-N 6205>. "Serendipity" is an ASUS RT-16N home device configured for "WPA-Auto-Personal" and "TKIP+AES". It supports 802.11n mode. There is also a router setting called "Bandwidth" with two options: "40 MHz" and "20 MHz". It was set to 40 and changing it to 20 resolved all problems.
Same problem here with a Lifebook U772 and Intel Centrino Advanced-N 6205, using 10.2-RELEASE-amd64. Seems to be fixed in FreeBSD-10.2-STABLE-amd64-20150917-r287929. At least in my case, it works flawlessly with the configuration generated by bsdinstall.
Seems to be already resolved (as noted in comment #1)