empty ssid with bssid_set to true

enitalp
Posts: 60
Joined: Thu Jan 12, 2017 10:03 pm

empty ssid with bssid_set to true

Postby enitalp » Fri Jan 20, 2017 10:32 pm

Hi.

On one hardware i create an access point but for the instant i'm not able to set a ssid, so it's empty.

I first tried to connect to it with the esp32 by putting the ssid=""; and did get a big crash, so i did setup the bssid and bssid_set and i still crash when the ssid="" and if i put a random string in it to avoid crashing, i'm not able to connect to my access point.

am i missing something ?

thanks

-----------------------------------------------------------------------------------------------------
assertion "0 && "esp_wifi_connect()"" failed: file "xxx/ESP32/main/main.c", line 172, function: app_main

abort() was called at PC 0x400f0f1f

Guru Meditation Error: Core 0 panic'ed (Unhandled debug exception)



Backtrace: 0x40008155:0x3ffc9d70 0x40007d16:0x3ffc9d90 0x4010484c:0x3ffc9dc0 0x
400d0e69:0x3ffca740



Rebooting...

WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

Re: empty ssid with bssid_set to true

Postby WiFive » Sat Jan 21, 2017 2:35 am

What is the code on line 172?

Have you tried setting ssid on both ap and sta to 32 nul bytes?

enitalp
Posts: 60
Joined: Thu Jan 12, 2017 10:03 pm

Re: empty ssid with bssid_set to true

Postby enitalp » Mon Jan 23, 2017 2:33 pm

My AP is not an ESP32, only my station is. and the ssid is empty.

The crash is from there -> ESP_ERROR_CHECK( esp_wifi_connect() );
i did not set it to null but actually "" that's perhaps my error. will try like that

enitalp
Posts: 60
Joined: Thu Jan 12, 2017 10:03 pm

Re: empty ssid with bssid_set to true

Postby enitalp » Wed Jan 25, 2017 8:22 pm

Forgot that the ssid is not a char* but an int array so null is not an option, but i did make sur to do a memset to 0 of the whole array.
and yes i crash everytime i call esp_wifi_connect() with an empty ssid and set to use the bssid.
If i put any char in the ssid i don't crash but i fail connection.

WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

Re: empty ssid with bssid_set to true

Postby WiFive » Wed Jan 25, 2017 9:15 pm

It seems like a bug. What is the expected behavior:

If ssid is null (zero length, wildcard) and bssid is set esp32 should use ssid from received beacon frame matching bssid and also maybe send null probe request. If ap is set to hide ssid then it will use null length 32 in beacon frame, but if real ssid is also null it must also be length 32, which may depend on platform. Otherwise user would have to know and be able to set length of ssid. But not sure why one would hide real null ssid behind fake null ssid 8-)

http://stackoverflow.com/questions/4919 ... d-password

I guess it is technically valid, but curious why ssid needs to be null
Last edited by WiFive on Wed Jan 25, 2017 9:40 pm, edited 2 times in total.

WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

Re: empty ssid with bssid_set to true

Postby WiFive » Wed Jan 25, 2017 9:38 pm

Looks like you can set ssid length explicitly for ap, but not sta
https://github.com/espressif/esp-idf/bl ... pes.h#L134

Who is online

Users browsing this forum: Google [Bot] and 136 guests