I recently upgraded firmware on a GL-AR750 (Qualcomm Atheros QCA9533 ver 2 rev 0), and I am experiencing a problem where a new wifi interface that I add is being deleted from /etc/config/wireless on reboot. Changes to the existing wireless interfaces (e.g., name, password, enabled/disabled) are being preserved on reboot, but the new interface is missing. I have verified that "uci changes" is empty before rebooting. All other configuration (dhcp, network, etc.) is being properly preserved. With earlier firmware, config/wireless was being preserved over reboot properly.
I'm not sure the exact firmversion that I upgraded from, but it was the original firmware with OpenWRT 19.x instead of 22.x. At first I upgraded saving settings. I encountered some problems, so I did a "Reset Firmware" from the Gl.iNet admin panel and started from scratch.
I used Luci in order to set up (recreate) a client WWAN wireless interface, because I think I cannot do this in the Gl.iNet admin panel. This is the upstream connection to the internet via wifi. I am not using the WAN ethernet port. Clients are connecting through the LAN port. Let's call this upstream WWAN interface "ISPwifi." Connection is successful, and I continued to recreate other configuration (nothing very complicated, performed from Luci interface only, SSH command line used only to obtain information).
My workaround has been to cp my modified and working /etc/config/wireless to /etc/config/wireless.new. After reboot, I log in with SSH and confirm that the wireless configuration has reverted. I cp /etc/config/wireless.new to /etc/config/wireless and then "/sbin/wifi reload". Then everything is working fine. If the power goes out at this location, I will lose remote access (through a VPN on the router) and have to visit the site to restore its upstream connection.
I have tested in the 4.3.17 in my side, seems it still works after I manual add WiFi radio and reboot the router. The configuration /etc/config/wireless have not changed or lost after it reboot.
Thanks for this information. How can I investigate further? What possible mechanisms during reboot would alter /etc/config/wireless in any way?
I will add an ap station or two and see if all new (non-default) stations or just the last one in the file is omitted, and I will carefully control timestamps to see if the altered wireless after boot has a new timestamp or same as just prior to reboot.
This is the specific text which disappears:
root@Glark:/etc/config# diff wireless wireless.boot
64,71d63
<
< config wifi-iface 'wifinet4'
< option ssid 'xfinitywifi'
< option encryption 'none'
< option device 'radio0'
< option mode 'sta'
< option network 'wwan'
< option bssid 'BA:5E:71:3A:A0:10'
root@Glark:/etc/config#
Here is a shell transcript showing the problem. I added an additional station 'wifinet5' which became the last entry in /etc/config/wireless, after 'wifinet4'. I saved a copy of wireless in wireless mine and touched both for a date in year 2001. On reboot, just wifinet4 was excised, wifinet5 remained, and the modified wireless file has a timestamp from the boot.