jeelabs / esp-link

esp8266 wifi-serial bridge, outbound TCP, and arduino/AVR/LPC/NXP programmer
Other
2.82k stars 720 forks source link

Unable to connect to HostAPd access point #523

Open InQuize opened 3 years ago

InQuize commented 3 years ago

I am running x86 AP using Mikrotik R11e-2HPnD interface and hostapd VM. Tried different devices:

Both stuck in loop reconnecting to my AP, but working with ancient D-Link DIR-300. Debug Log of ESP-Link said 'Disconnected, reason unspecified (203)' if I recall correctly. Hostapd log said that ESP is failing to associate with Invalid RSN pairwise cipher (0x1) error.

InQuize commented 3 years ago

I'm not sure what side is causing it, but I fixed it in my case. I am unable to conduct further testing right now, but it is possible that issue is not limited to ESP-Link firmware, and it may behave the same way in other ESP projects. But anyway, I'm posting it here more to document my findings, as there was no search results when I was troubleshooting. In my hostapd conf file I had: wpa=2 wpa_key_mgmt=WPA-PSK rsn_pairwise=CCMP CCMP-256 and even though docs say that rsn_paiwise is a "set of accepted cipher suites ... space separated list of algorithms", ESP won't connect until I left out CCMP-256 So it works with: rsn_pairwise=CCMP but not the above.

P.S. I am leaving this for someone who understands described behaviour to decide if the issue is related to esp-link or upstream and whether it should be closed.