Problem with renaming WiFi interface from wlan0 to phy0-sta0

Did the source code come from the official OpenWrt repos?

Yeah, that's why we said that you can't just migrate your old config files.

After a reset to defaults, what do you see in your /etc/config/wireless file? Did you make modifications to the underlying code that handles wifi or the drivers for your wifi chipset?

Hi @LilRedDog ,

Not using Luci is a requirement. That's all I can say.

Regarding the subject of this post, adding the ifname with the value wlan0 in the wifi-device configuration solved the problem.

My overal problem was not solved yet, but I am collecting more information and probably I will need to create other topics. I've made one step forward with your help.

Thank you very much for your remarks.

Best regards,

Flavio

I find it important to point out you did not post the cat calls.

What is it you do not want us to see?

Yes. One way I have done this was cleaning the file /etc/config/wireless and then run wifi config. The file was repopulated.

And what does the default file look like? Post it here.

Sure,

root@OpenWrt:/# mv /etc/config/wireless /etc/config/wireless.bkp
root@OpenWrt:/# touch /etc/config/wireless
root@OpenWrt:/# wifi config
root@OpenWrt:/# cat /etc/config/wireless

config wifi-device 'radio0'
	option type 'mac80211'
	option path 'platform/soc/2100000.bus/2190000.mmc/mmc_host/mmc0/mmc0:0001/mmc0:0001:1'
	option channel '36'
	option band '5g'
	option htmode 'VHT80'
	option disabled '1'

config wifi-iface 'default_radio0'
	option device 'radio0'
	option network 'lan'
	option mode 'ap'
	option ssid 'OpenWrt'
	option encryption 'none'

I'm sorry, while I was collecting the info to place here I found the answer. That's why I have not posted anything.

This looks normal. Your other config does not. Why are you adding all sorts of additional config lines that don't belong?

If your problem is solved, please consider marking this topic as [Solved]. See How to mark a topic as [Solved] for a short how-to.
Thanks! :slight_smile:

1 Like

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