How to change source code to enable wifi?

I have a router that is installed on the ceiling. Every time I reset the router the wifi are all disabled. I have to connect to my PC using a lan cable, it's really annoying.

Build an image with a suitably configured /etc/config/network in the ROM.

how? source code doesn't have the /etc/config/wireless file.

Create and add to the files/ directory in the source root.

https://openwrt.org/faq/include_tailored_custom_configuration_files

/etc/uci-defaults

I had the similar issues and now I just configure the entire router from scratch by a collection of custom scripts under /etc/uci-defaults. A short example (not tested)

/etc/uci-defaults
#!/bin/sh
/sbin/uci set wireless.radio0.disabled='0'
/sbin/uci set wireless.radio1.disabled='0'
/sbin/uci commit

In case, you can log into your router (using putty/ssh), try following "quick and dirty" hack: create (or edit)
/etc/rc.local
having following contents:

#!/bin/sh
wifi up

was already answered multiple times. how about using some search before starting thread? Supporting ionik Wifi Cloud Hub (8MB Flash, 64MB RAM, RT5350F, battery, 8€)

2 Likes

This is what i was searching, thank you

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.