I'm trying to get smart devices (plug sockets and lights) from Smart Life/Tuya to connect to the Wi-Fi network on my WRT32X, but they just won't!
They connect fine when using the stock firmware (which is also OpenWRT)!
Can anyone help??
The requirements are: WPA2-PSK, AES, and broadcasting enabled.
In LuCI I can only select "CCMP (AES)", but I can't work out if that is compatible with plain AES, and so if that's the problem?
I see the devices under Network > Wireless > Associated Stations, but I don't see them under Active DHCP Leases.
In system log I see the following repeated every few minutes:
Mon Aug 6 12:17:52 2018 daemon.info hostapd: wlan1-1: STA BC:DD:C2:E2:19:A4
IEEE 802.11: associated (aid 1)
Mon Aug 6 12:17:52 2018 daemon.notice hostapd: wlan1-1: AP-STA-CONNECTED BC:DD:C2:E2:19:A4
Mon Aug 6 12:17:52 2018 daemon.info hostapd: wlan1-1: STA BC:DD:C2:E2:19:A4 WPA: pairwise key handshake completed (RSN)
Mon Aug 6 12:17:54 2018 daemon.info hostapd: wlan1-1: STA BC:DD:C2:E2:19:A4 IEEE 802.11: authenticated
These particular devices need 2.4 GHz. There's a 5 GHz and 2.4 GHz network that share the same SSID (works well).
The mobile companion app needs to be on the 2.4 GHz network to set them up, but my mobile always connects to the 5 GHz network. Hence a specific 2.4 GHz SSID.
Still the same problem with "option legacy_rates '0'" set on all SSIDs.
Have you tried just operating the 2.4ghz radio in 20mhz mode and see if they connected?
option htmode 'HT20'
Can your phone or another device connect to the 2.4ghz radio ok? It's just I noticed you do not have a TX Power, Distance, or Beacon Interval specified for it in your wireless configuration file.
One last thing you can check too is that you're not running out of DHCP leases as well.
I tried to answer it, but perhaps I wasn't clear.
Originally I used one SSID ("The Internet") on both radio0 (5 GHz) and radio1 (2.4GHz).
My phone always connects to the 5 GHz interface.
The app for these smart devices requires that the phone be on 2.4 GHz wifi (which the smart devices require).
So I ended up adding an extra SSID ("The Internet Devices") on the 2.4 GHz radio1 just so I could connect my phone to it and therfore add the devices to it.
But I'm still seeing the disassociated messages in the System Log, the device is still flashing to say it's not connected, and it's still missing the signal and other information in the tx/rx rate.
Just drop the distance setting alltogether, you're just shooting yourself into the foot by micro-managing this (changing the distance setting is only need for long range links, way above 100m).
How exactly do you input to these devices to connect to your WiFi initially (i.e. the SSID to connect to and the key)? I know you say there's an app that controls them, but how do you get them to initially connect, so they can use the app? Maybe go through that process again, clearing any old settings.
Also, the spaces in the SSID could be causing issues. Older devices that run older software/firmware do not seem to like SSID's with special characters in them.
option distance 'xx'
Should be under the "config wifi-device 'radio1'" section as well, not "config wifi-iface" in your /etc/config/wireless.