NVRAM changes - old values still being used?

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


Joined: 29 Sep 2020
Posts: 38

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: 1447
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.
_________________
2x Netgear XR500 and 3x Linksys WRT1900ACSv2 on 53544: VLANs, VAPs, NAS, station mode, OpenVPN client (AirVPN), wireguard server (AirVPN port forward) and clients (AzireVPN, AirVPN, private), 3 DNSCrypt providers via VPN.
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 14223
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.
_________________
"Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT
Pogo - A minimal level of ability is expected and needed...
DD-WRT Releases 2023 (PolitePol)
DD-WRT Releases 2023 (RSS Everything)

----------------------
Linux User #377467 counter.li.org / linuxcounter.net
VA1DER
DD-WRT Novice


Joined: 29 Sep 2020
Posts: 38

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: 14223
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
_________________
"Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT
Pogo - A minimal level of ability is expected and needed...
DD-WRT Releases 2023 (PolitePol)
DD-WRT Releases 2023 (RSS Everything)

----------------------
Linux User #377467 counter.li.org / linuxcounter.net
VA1DER
DD-WRT Novice


Joined: 29 Sep 2020
Posts: 38

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 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