circle icon indicating copy to clipboard operation
circle copied to clipboard

[Bug] Connect to 'hidden' Wifi fails

Open pottendo opened this issue 11 months ago • 19 comments

Description of the bug Sample application (hello_wlan) can't connect to a hidden Wifi. Connecting to the very same network made 'visible' on the router works.

Affected version(s) and hardware

Tested on a Pi3 B+, 32bit kernel, tested with current 'master' 50.0.1 + the workaround to avoid crash with mesh-networks (#616) and with current develop branch.

Log output or screenshots wpa_supplicant.conf:

#
# wpa_supplicant.conf
#

country=AT

network={
	ssid="pottendo-lte"
	scan_ssid=1
	psk="xxxMYPWxxx"
	proto=WPA2
	key_mgmt=WPA-PSK
}

Maybe hidden networks are anyway unsupported or for good reason not available - So let me know if I should provide more logs by switching to MSG_DEBUG level.

int wpa_supplicant_main (const char *confname)
{
[...]
	params.wpa_debug_level = MSG_DEBUG;

pottendo avatar Dec 23 '25 10:12 pottendo

I'm afraid hidden networks currently do not work and are not supported. I tried several options in wpa_supplicant.conf and nothing worked.

rsta2 avatar Dec 23 '25 13:12 rsta2

Hi Rene, thanks for the quick analysis - as always, big thumbs up! I got the report on my project (see cross reference above). It seems to not work also in previous versions, so the recent change of wpa_supplicant is not the issue. You may close this for now - unless you want to keep an eye on it. ;-) bye, pottendo

pottendo avatar Dec 23 '25 13:12 pottendo

Thanks pottendo. We should keep this open for the case, that other users have the same problem. And maybe it can be solved later.

rsta2 avatar Dec 23 '25 15:12 rsta2

I'm afraid hidden networks currently do not work and are not supported. I tried several options in wpa_supplicant.conf and nothing worked.

Any chance this has been fixed in circle 51? I don't have an easy way to test it, but this issue was written against circle 50.0.1.

iissmart avatar May 11 '26 18:05 iissmart

The WLAN support has not been changed in Circle 51. This problem is still there. Honestly I have no idea, how it could be fixed.

rsta2 avatar May 12 '26 07:05 rsta2

I think I have a patch for this, but it needs to be tested.

add this line to your wpa_supplicant.conf scan_ssid=1

Please provide some input for me, thanks a lot!

This is for hostap :

hidden-wifi-driver_circle.patch

This is for circle repo:

hidden-wifi-ether4330.patch

Please let me know how this goes. If it seems to work I'll put in an official PR

danifunker avatar Jun 04 '26 00:06 danifunker

Many thanks for the patches. I will test them soon.

rsta2 avatar Jun 04 '26 09:06 rsta2

It works, that's great! I successfully tested with and without hidden SSID. I will merge the PRs soon.

rsta2 avatar Jun 05 '26 09:06 rsta2

@danifunker Your code looks clean and works here. Thus I merged both PRs now and made the updated hostap version the default on the develop branch. Thank you again for this contribution!

rsta2 avatar Jun 06 '26 08:06 rsta2

hi, thanks for the update - I'll try it also in the upcoming days. all the best, pottendo

pottendo avatar Jun 06 '26 08:06 pottendo

Hi, I can confirm that the patch works also for my application - good work, spotting and fixing the issue! thanx, pottendo

pottendo avatar Jun 07 '26 15:06 pottendo

@pottendo Thanks for testing!

rsta2 avatar Jun 08 '26 09:06 rsta2

Hi Rene, any plans to do a release including this fix in the near future? I've delayed the next release of my application a bit to wait until then. I may decide to not wait depending on your (rough) time-plan. thx, pottendo

pottendo avatar Sep 07 '26 16:09 pottendo

Feel free to create a patching system like the one I have on usbode-circle. That way you don't need to wait for official releases.

danifunker avatar Sep 07 '26 17:09 danifunker

Feel free to create a patching system like the one I have on usbode-circle. That way you don't need to wait for official releases.

thanks, will have a look - though I don't want to cherry-pick patches; as of now the steps as released by Rene deliver good integrated consistency; and I'm actually using circle-stdlib. Let's see what I get as feedback - I'm not in a rush.

pottendo avatar Sep 07 '26 17:09 pottendo

Cool, my patching system handles both components :) I’m using the same thing in my project

On Sep 7, 2026, at 1:54 PM, pottendo @.***> wrote:

 [https://avatars.githubusercontent.com/u/62503913?s=20&v=4]pottendo left a comment (rsta2/circle#633)https://github.com/rsta2/circle/issues/633#issuecomment-5574159141

Feel free to create a patching system like the one I have on usbode-circle. That way you don't need to wait for official releases.

thanks, will have a look - though I don't want to cherry-pick patches; as of now the steps as released by Rene deliver good integrated consistency; and I'm actually using circle-stdlib. Let's see what I get as feedback - I'm not in a rush.

danifunker avatar Sep 07 '26 19:09 danifunker

Feel free to create a patching system like the one I have on usbode-circle. That way you don't need to wait for official releases.

...actually I'm doing this already - not that sophisticated though. ;-) My patches do modify circle-stdlib a bit (config changes) and some enhancements, I didn't dare to submit so far. thx for the hint, pottendo

pottendo avatar Sep 07 '26 20:09 pottendo

I'm working to prepare the new release 51.1 already. It will contains this fix. It can take some weeks, because of the necessary testing.

rsta2 avatar Sep 08 '26 09:09 rsta2

The issue has been fixed in Circle 51.1, which is out now.

rsta2 avatar Sep 22 '26 10:09 rsta2