I have some WiFi cameras that can be added to a router via WPS. Here’s how I got it to work with one of my LEDE routers. On the other one, somehow, I broke its ability to do WiFi completely, so this can be dangerous — I had to re-install LEDE. YMMV.
First, backup the router config — always a good idea!
opkg update opkg remove wpad-mini opkg install wpad hostapd-utils opkg upgrade dnsmasq cp /etc/config/wireless /etc/config/wireless.orig vi /etc/config/wireless and change wps_pushbutton to '1' -- but only for one interface. reboot
Check to see if WiFi is working. If not, use the ethernet port connected to a laptop to log back in, and update the firmware that isn’t broken. There may be a better way, but that’s worked for me.
Put the router into WPS mode (note: this times out after a while):
Other instructions say to run this (YMMV):
hostapd_cli -i wlan1 wps_pbc
Within a minute or so, push the WPS mode button on the camera.