wl_* NVRAM variables

Discussion in 'Tomato Firmware' started by menses, Feb 3, 2013.

  1. menses

    menses LI Guru Member

    I know that the NVRAM variables starting with wl0_ are for the main wifi interface.
    And wl1_ are for the second one (if there's one on your router).

    But what is the function of the variables starting with wl_?
    For example I have channel settings for all these three:
  2. Mangix

    Mangix Networkin' Nut Member

    AFAIK, they're junk variables created by the bootloader. If the variable wl0_radio or whichever is missing, tomato could fail back to wl_radio or whatever. Not sure that it works like this though.
    menses likes this.
  3. koitsu

    koitsu Network Guru Member

    I've wondered this too, actually. I haven't taken the time to look at the code, but my guess is that wl_channel is the "default", and wlX_channel is a per-interface setting (i.e. if wl0_channel wasn't set, it would fall back to wl_channel). I swear I remember seeing something in the code where wl_xxx was turned into wlX_xxx though, but as said, I'd have to go through it. Maybe Toastman remembers?
    menses likes this.
  4. Toastman

    Toastman Super Moderator Staff Member Member

    I think that's right too. It's a bit messy, but I doubt whether it will ever get tidied up. It gives me a headache to think about it. I know Fedor (Teddy) had reams of notes about this stuff!
    menses likes this.
  5. menses

    menses LI Guru Member

    Thank you!
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice