NVRAM changes - old values still being used?

Post new topic   Reply to topic    DD-WRT Forum Forum Index -> General Questions
Author Message
VA1DER
DD-WRT Novice


Joined: 29 Sep 2020
Posts: 37

PostPosted: Mon Jan 03, 2022 23:43    Post subject: NVRAM changes - old values still being used? Reply with quote
I noticed sometime in the past year or so that the wi-fi NVRAM variables all changed name from having a prefix of "wl0_" to "wlan0_" (and so on for wl1, wl2).

Can all the wl0_ variables be deleted? I ask because there are certain circumstances which cause a bunch of wl0_ and wl1_ variables to be populated though they don't seem to be used. For example, after an NVRAM erase and a reboot, a bunch of the old variables are populated and seem to just be taking up space in NVRAM.

Also, I am looking for what the replacement to the old NVRAM variable "landevs" is. It was a space separated list of active interfaces.
Sponsor
SurprisedItWorks
DD-WRT Guru


Joined: 04 Aug 2018
Posts: 1328
Location: Appalachian mountains, USA

PostPosted: Tue Jan 04, 2022 16:09    Post subject: Reply with quote
In my model router, the old vars like ath0_foo were replaced with wlan0_foo variables. Eventually I did delete the old variables with no apparent ill effects. YMMV.
_________________
Six Linksys WRT1900ACSv2 routers on 48141: VLANs, VAPs, NAS, client mode, OpenVPN client (AirVPN), DDNS, wireguard servers and clients (AzireVPN), three DNSCrypt DNS providers (incl Quad9) via VPN clients.
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 12463
Location: Texas, USA

PostPosted: Tue Jan 04, 2022 17:56    Post subject: Reply with quote
Sometimes a hard reset is necessary, same for clearing your browser cache.
_________________
Official Forum Rules, Guidelines & Helpful InformationFirmware FAQInstallation WikiWhere Do I Download Firmware‽
DON'T use Chromium-based browsersRTFM/STFW TL;DR is NOT an excuse. • Why Should I Care What Color the Bikeshed Is‽
Please DO NOT PM me with questions; Ask in the forum. ---------------------- Linux User #377467 counter.li.org / linuxcounter.net
VA1DER
DD-WRT Novice


Joined: 29 Sep 2020
Posts: 37

PostPosted: Thu Jan 06, 2022 1:00    Post subject: Reply with quote
kernel-panic69 wrote:
Sometimes a hard reset is necessary, same for clearing your browser cache.


Agreed. But in this case, removing all the wl_, wl0_, wl1_, wl2_ vars causes defaults to be repopulated. Same thing with an nvram erase and reboot. I suspect that whatever tests for erased nvram and repopulates it with default values on reboot is still repopulating the old deprecated wl?_ variables. Which is why I was curious if the old ones were still used at all.
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 12463
Location: Texas, USA

PostPosted: Thu Jan 06, 2022 3:01    Post subject: Reply with quote
Possibly an oversight in development, but only one way to know for sure. For example: https://github.com/mirror/dd-wrt/search?q=wl0
_________________
Official Forum Rules, Guidelines & Helpful InformationFirmware FAQInstallation WikiWhere Do I Download Firmware‽
DON'T use Chromium-based browsersRTFM/STFW TL;DR is NOT an excuse. • Why Should I Care What Color the Bikeshed Is‽
Please DO NOT PM me with questions; Ask in the forum. ---------------------- Linux User #377467 counter.li.org / linuxcounter.net
VA1DER
DD-WRT Novice


Joined: 29 Sep 2020
Posts: 37

PostPosted: Sun Jan 09, 2022 22:17    Post subject: Reply with quote
I went digging through the source and found about a bajillion references to the old variable format in the init process where it sets up default values. Whatever switch from wl0_ -> wlan0_ notation is happening, looks like it's not complete yet.
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Forum Index -> General Questions All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum