I'm using the default wifi "station" example from esp-idf. Whenever I try to connect to my hostapd access point on my Raspberry Pi, it casts the following error message:
Code: Select all
..
I (4914) wifi station: retry to connect to the AP
I (4914) wifi station: connect to the AP fail
I (6954) wifi station: retry to connect to the AP
I (6954) wifi station: connect to the AP fail
I (9004) wifi station: retry to connect to the AP
I (9004) wifi station: connect to the AP fail
I (11054) wifi station: retry to connect to the AP
I (11054) wifi station: connect to the AP fail
HOWEVER: The ESP32 connects flawlessly with my wifi-router!
And strangely enough, the access point seems to work as well, just not for the ESP32. I can connect to it with my phone and laptop just fine (I can even access internet through NAT).
This is my hostapd.conf
Code: Select all
river=nl80211
ssid=someSSID
country_code=CH
hw_mode=g
channel=6
auth_algs=1
wpa=2
wpa_passphrase=somePWD
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
rsn_pairwise=CCMP
logger_syslog=-1
logger_syslog_level=0
logger_stdout=-1
logger_stdout_level=0
What am I doing wrong?