Just flashed a fresh OpenWrt on an sd card and setup wifi with the details of my network, gateway, ip, etc. However, when I tested in diagnose it returns bad ping address. I then I try ifconfig in a terminal and it returns:
Well,
i can't see any mistakes in this. At least LAN seems to work, but i don't understand the problems you have with wifi.
Maybe you can outline this a bit more?
What did you configure (or thought to) with what values, what did you expect and what did you get instead?
Sorry for the dumb questions, but your statement
At the moment it seems to be working then say if I reboot the device wifi may not work. For example I could doing opkg update or installing a package when wifi connection suddenly drops and will not restart if I reboot the device.
Just preformed an opkgupdate which worked but then I could not install nano.
root@OpenWrt:~# opkg update
Downloading https://downloads.openwrt.org/releases/22.03.0/targets/mediatek/mt7622/packages/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_core
Downloading https://downloads.openwrt.org/releases/22.03.0/targets/mediatek/mt7622/packages/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/releases/22.03.0/packages/aarch64_cortex-a53/base/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_base
Downloading https://downloads.openwrt.org/releases/22.03.0/packages/aarch64_cortex-a53/base/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/releases/22.03.0/packages/aarch64_cortex-a53/luci/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_luci
Downloading https://downloads.openwrt.org/releases/22.03.0/packages/aarch64_cortex-a53/luci/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/releases/22.03.0/packages/aarch64_cortex-a53/packages/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_packages
Downloading https://downloads.openwrt.org/releases/22.03.0/packages/aarch64_cortex-a53/packages/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/releases/22.03.0/packages/aarch64_cortex-a53/routing/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_routing
Downloading https://downloads.openwrt.org/releases/22.03.0/packages/aarch64_cortex-a53/routing/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/releases/22.03.0/packages/aarch64_cortex-a53/telephony/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_telephony
Downloading https://downloads.openwrt.org/releases/22.03.0/packages/aarch64_cortex-a53/telephony/Packages.sig
Signature check passed.
root@OpenWrt:~# opkg install nano
Installing nano (7.1-1) to root...
Downloading https://downloads.openwrt.org/releases/22.03.0/packages/aarch64_cortex-a53/packages/nano_7.1-1_aarch64_cortex-a53.ipk
Collected errors:
* opkg_download: Failed to download https://downloads.openwrt.org/releases/22.03.0/packages/aarch64_cortex-a53/packages/nano_7.1-1_aarch64_cortex-a53.ipk, wget returned 4.
* opkg_download: Check your network settings and connectivity.
* opkg_install_pkg: Failed to download nano. Perhaps you need to run 'opkg update'?
* opkg_install_cmd: Cannot install package nano.
I still don't know what you're trying to achieve...or even how you set up your network.
Are you still trying this?
If yes, please state so. Didn't you wrote in that thread that you got it to work?
If you're on something different, please outline it detailed.
My crystal ball just shows foggy thingies, so i can't help you with that little bit of information you're sharing.
Typically, the wifi device (wlan0 in this case) does not belong in the /etc/config/network file. This line should be removed. The wwan network should be associated with the sta mode wifi config in the /etc/config/wireless file.
Let's also take a look at your other config files, while we are at it:
Please copy the output of the following commands and post it here using the "Preformatted text </> " button:
Remember to redact passwords, MAC addresses and any public IP addresses you may have:
Although, I think it gets added in the network file but luci? I will have a closer look next time. As stated in the posted above yours I now have the wifi working but have encountered another problem.
This is related to the screenshot that says "connection failed"?
How is that computer connected to the router (wired or wireless)? Does it have a link? What about an IP address?
If you actually post all of the key config files, we may be able to spot the problems (so the 3 I mentioned and the network config, if anything has changed since post 16)..
Well, yes! It was the lan interface which has the 4 ports bridged. One port connected via ether cable to my laptop and another connected via ethernet to my desktop machine.
Well, this problem is moot now since I managed to lock myself out of OpenWrt while trying to confirm your statement about wifi interface suppose to be in wireless file.