I have got this UCI files and when I do /etc/init.d/network reload there is no wireless interface up. Then, if I use ip link set wlan0 up the interfacec appears but without any IP address. It must be any mistake in my files or something more wrong.
He sent it because it resets the wireless config to defaults. After which, it also shows your device's real hardware path, which is missing from your current config.
Feel free to look at the Linux Manual for most those commands.
Yes what @lleachii said about not having the hardware path. This is a big problem because the radio hardware can't be accessed without it. You can't paste a whole /etc/config/wireless from one model to another. There is some hardware specific stuff in the wifi-device stanza which you should let the firstboot scripts generate. After doing that, add the following radio-wide parameters:
country
channel (find neighbors and avoid them)
htmode
legacy_rates 0
Also don't do this in /etc/config/network:
Don't call out wireless interfaces with option ifname, you don't need option ifname at all if the only interfaces in a network are wireless. The option network in /etc/config/wireless will attach the radio to a network. The names wlan1 etc are generated at runtime and you can't be sure what they will be in advance.
It doesn't work to me. I deleted this interface and I added these new options. I think that I have got the radio resource correctly linked with the radio0ap interface (ifname wlan0) but, the default status of the interface is still down. I don't find a way to set it up using UCI files.
I'm not sure you understood those helping you - as your response indicates you may have failed to perform the steps above:
You were not told to delete an Interface, yet you deleted one
You were told that radio0ap is likely wrong
You were instructed to let OpenWrt re-create the whole file - /etc/config/wireless from defaults - using the instructions in Post No. 2.
I'm not sure how you're determining the interface down - especially if you never followed the steps from @anon50098793. Please follow the instructions above; and post the new /etc/config/wireless when complete.
You likely won't see it - until you follow the instructions in Post No. 2.
BTW, if you think your AP PHY linking is correct, following the instructions of Post No. 2 will prove it.
Yeah. I had done it previously but, I must use wifi detect instead of wifi config because this ones did not generate anything. I think that It is what we were looking for. Here the result:
config wifi-device radio0
option type mac80211
option channel 11
option hwmode 11g
option path 'soc0/soc/2100000.aips-bus/2190000.usdhc/mmc_host/mmc0/mmc0:0001/mmc0:0001:1'
option htmode HT20
# REMOVE THIS LINE TO ENABLE WIFI:
option disabled 1
config wifi-iface
option device radio0
option network lan
option mode ap
option ssid OpenWrt
option encryption none
good you now have a valid PATH... for your radios...
define wrong. what is or is not currently working? why? show or describe the tests you've made and the results you see....
we can't tell much by what you posted.
please tell me why you did that?
as some general advice.. do not touch anything unless you KNOW what it does. or at least backup your file... change one thing.... test.... then change it back if there are issues... Using LUCI/web interface is advised... until you a familiar with specific options.
I personally do that ( use the web interface ) for wifi... even with intermediate knowledge on the topic....
You should not be configuring an IP on the WiFi PHY, you should be configuring a VLAN/OpenWrt Interface and bridging it to an SSID. LAN should already have this setup in the default wireless and network configs (e.g. SSID OpenWrt). If you simply change the LAN IP and enable WiFi, you will have the IP scheme you desire on the WiFi.
Also, free free to use one post to respond to multiple people, we can all see the responses.
I suggest you try setting up a working WiFi first. Perhaps it will be easier for you if you do that with the defaults, simply enable WiFi, then renumber your network.
Yes use the web interface... you can see below...;
"lan"(interface) is linked to eth1.1(device) via ifname
and the single line in wireless "network" that links each radio to a layer3-interface ( lan )
Read the guides posted above... play around... and keep copies of your /etc/config/network and /etc/config/wireless ( or a web config backup ) so you can easily reset things when they don't work...
I'm pretty sure you'll get the hang of it if you follow the main advice in this thread.... follow guides, start simple... do one small thing at a time... in the next easiest order....
What is your use case? Why are extra networks needed?
Creating new networks should only be considered after you are familiar with the standard configuration of wifi attached to br-lan and know that it works on your hardware. What happened to br-lan anyway?
Ok. I will try setting up a simple WiFI and, then, when it will work, I will adapt it to my preferences.
It automatically appears in the wifi-device... but it does no matter. I have removed.
So, if I correctly understand, I should have in /etc/config/wireless the default wifi-device and wifi-iface which use it. Besides, I have to set lan of /etc/config/network as a wifi-iface network. Finally, configure the interface following my preferences... Isn't it the procedure?
I feel that my web manager has got a very few options. Is it possible bridging here?
It's quite obvious to regular OpenWrt users, that these configs are not their default. For example, you have no DHCP on LAN, so even if you connect to WiFi, you wouldn't get an IP address.
Why dont you reset the router to default settings; and then attempt to configure everything from the beginning?
It will also allow us to assist you easier.
Also, please note to us what make/model router you have.
The device was used before by other people and I am afraid to lose things that they installed or configured. I prefer to touch only network configuration. Do you think that reset is such an important? I am starting everything almost from the beginning. I am basing on this:
I wouldn't have advised the reset if your presentation of non default configs each time wasn't causing confusion
I personally have to keep guessing what files have been changed or deleted, instead of just assisting you.
Settings like DHCP are in another file (which also appears not to be default at this time) - it's nice to say "touch only network", but be prepared to actually configure the device
If you don't wanna loose configs, simply back them up - I don't get your point though, since you're changing configs anyway
It may be helpful to note also that customization of a wireless LAN requires editing of at least 3 config files
As you've observed, it may be easier for you to use the web GUI
I don't see your device listed in the Table of Hardware, I don't think it's officially supported
Perhaps you should inquire with the Original Equipment Manufacturer.
Again, that disabled line you posted is not valid in wifi-device (at least per OpenWrt documentation, it's used on the SSIDs), so ask the OEM firmware maker.
If others have installed and changed things, how do you know this to be true!?!?
...and who is Ingeteam???
That's who you should be asking, since it's their firmware.
Could be but, in the configuration of the wifi aspects is required an authentification and if I use the username and password I was given, it redirects me again to the main page... It seems not to be allowed to change in the web the wifi settings...
It does not seem to be...
Yeah, yeah. I now it. I had followed your advice and I had removed it
Because, their told me about they had done, but not about what I will try to ask again.
How do you know it is their?
Anyway, I will keep trying to follow @anon50098793 steps. I achieved something...