I'm not sure I understand. Is there are reason you're not configuring the client mode connection on OpenWrt with the web GUI or the relevant config files (e.g. /etc/config/wireless)?
Are you having an issue using the wireless config?
Also, I don't think there should be an issue setting up an connection to an SSID, then hiding it...perhaps there's issues with using underlying subsystems?
As mentioned in my post, once the host SSID for the "Bridge" is hidden then the connection is lost. Is there any way to set this manually in configuration files?
I connected a lot of times to a hidden BSS without any diferent configuration, but, my suggestion is to apply to the set configuration the hidden bss mac address (bssid).
In your case, you can try for example by UCI:
uci set wireless.default_radio1.bssid="XX:XX:XX:XX:XX:XX" # the hidden BSSID
uci commit
wifi reload
My assumption is that probably the router which "hides" the BSSID is not only not transmiting the WiFi beacons, probably it is also not answering the probes sent by the STA.
I'm not sure if this is what you want to accomplish, but I was able to hide the main 2.4 GHz wireless SSID, and connect to other 2.4 guest/IoT networks.
Let's call the main network "Network24"
It's been configured, and is working.
I checked "Hide ESSID".
There are guest/IoT 2.4 networks configured and working.
Each guest is on its own subnet.
Example -
Guest1 192.168.2.1
Guest2 192.168.3.1
The Zones are set as follows -
Guest1 ==> wan Input - Drop Output - Accept Forward - Drop
Guest2 ==> wan Input - Drop Output - Accept Forward - Drop
Each has their own DHCP and DNS traffic rules.
Each guest wireless interface is set to Isolate clients, so that clients can't talk to each other on the same subnet.
The Zone rules prevents guests from talking to each other on different subnets, and with the main network.
The guests are the only SSID's showing as available when my client device wants to connect.
The main 2.4 network (Network24) is showing as "Hidden network".
If I want to connect to it, I have to enter the SSID "Network24", and then the password.
Same principles apply for the 5 GHz band...I just happened to pick 2.4 for the test.
I have a hidden WDS setup, and that works just fine. Client device connects to it without issues. This is with an MT7905DAN (WDS) and MT7615 (client device). 22.03 branch. So looks like a driver limitation indeed.
1: wpa_supplicant initiates scanning and AP selection
0: driver takes care of scanning, AP selection, and IEEE 802.11 association parameters
2: like 0, but associate with APs using security policy and SSID (but not BSSID).
scan_ssid
0: do not scan this SSID with specific Probe Request frames (default)
1: scan with SSID-specific Probe Request frames (this can be used to find APs that do not accept broadcast SSID or use multiple SSIDs; this will add latency to scanning, so enable this only when needed)
I have tested scan_ssid=0 and scan_ssid=1 and there is no change. I haven't tested ap_scan
The AP MAC address is physical and does not change.
What should I be looking for? Logs don't seem to be showing anything useful ..
Look for OpenWrt to send a probe with the SSID, and for the R8000 to respond.
In the client logs do you see any activity related to connecting? Once the AP has been probed it should then associate, which is the first thing that will be logged.
This reinforce my theory about the R8000's meaning of "hidden" BSSID is something more than just not broadcast beacons. As you said the R8000 is not running OWRT, can you give it a try with OWRT or you need the stock firmware? If my assumption is right with OWRT in the R8000 this should work.
Anyway, have you tested with a diferent OWRT device as client? The behavior is the same?