esp-link icon indicating copy to clipboard operation
esp-link copied to clipboard

Unable to connect to HostAPd access point

Open InQuize opened this issue 3 years ago • 1 comments

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

  • ESP-07 DM-101 Serial WiFi v1.0 (marked "ESP8266MOD" on EMI shield)
  • ESP8266 NodeMCU V3 32M WIFI CH340G (marked "ESP8266EX" on chip) Tried different versions:
  • v3.2.47-g9c6530d
  • v2.2.3

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 avatar Apr 27 '21 21:04 InQuize

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.

InQuize avatar Apr 27 '21 21:04 InQuize