Release is 20.02 RC3with all updates as of today 05/07/2021
My config files are above but no matter what I try that I can find suggested on the forums I cannot get wifi to work. It just sits forever trying to connect and when it does finally connect there is no internet access. I have been through dozens of posts trying the suggestions but it just will not work. The lan and wan work fine with internet access from the lan. Any ideas anyone?
I have found since posting that it only issues an ipv6 address never an ipv4
On my other raspberry pi 4 or my phone they sit there for ages when told to connect to the openwrt wifi trying to get an ip ddress on the network. The lan is 192.168.2.x which is what the wifi is set to in the config.
From the raspberry pi:-
option gateway should appear at most once in any configuration-- in the network that is connected to the Internet, which is wan in this case. Take it out of lan.
Also with a static wan setup you need an option dns in wan to point the router to an upstream DNS server. This is usually the next router (which appears to be 192.168.1.254 here) or it can be a third party on the Internet.
After doing this confirm that basic IPv4 networking works:
On the router CLI, you can ping sites by name, and by number.
A laptop etc connected to eth0 receives a DHCP IP in 192.168.2.0 and can reach the Internet.
At that point the wifi AP should also work, since it is in the lan bridge along with eth0.
That shouldn't hurt anything but it is rare that you'd want to name a wifi interface rather than let OpenWrt use automatic naming. Which will for the first and only AP usually end up 'wlan0'.
The important thing is the option network in /etc/config/wireless which will connect the AP (whatever it is named) to one of the networks in /etc/config/network. Don't refer to wifi interfaces from the other way (don't mention them in /etc/config/network).
brctl show should show that wlan0 is in br-lan along with eth0. And if you have that, wired and wireless clients should work the same.
If your network is IPv4 only, turn off the IPv6 options on lan in /etc/config/dhcp.
This should have created a br-lan which would appear in ip, ifconfig and brctl. However it is the old syntax. If you're running a snapshot build you may need the new way to build a bridge, and a network for it separately:
option name 'br-lan'
option type 'bridge'
list ports 'eth0'
config interface 'lan'
option proto 'static'
option ipaddr '192.168.2.1/24'
option device 'br-lan'
option ip6assign '60'