I'm posting this in case someone has the same problem.
I'm using a LoLin NodeMCU board V3 (ESP-12E module) and Arduino IDE 1.6.9 with ESP8266 core, with the latest version (2.2.0) it was not able to connect to my wlan from Netgear DG834G (firmware version V2.10.22) with WPA encryption enabled. It would connect only with WPA disabled. The same for 2.1.0 core.
The latest version which works for me is 2.0.0.
Best regards
Christian