Changeset 12351


Ignore:
Timestamp:
06/22/09 07:27:37 (4 years ago)
Author:
eko
Message:

more dual radio stuff

Location:
src/router/httpd/visuals
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/router/httpd/visuals/dd-wrt.c

    r12326 r12351  
    71417141{ 
    71427142 
    7143         if (nvram_match("wan_proto", "disabled") || !nvram_match("wl_mode", "ap"))      // WAN  
     7143        if (nvram_match("wan_proto", "disabled") || getSTA() || getWET())       // WAN  
    71447144                // disabled  
    71457145                // OR  
  • src/router/httpd/visuals/ejs.c

    r12293 r12351  
    580580        } 
    581581#endif 
     582        if (!strcmp(name, "WET")) { 
     583                if (getWET()) 
     584                        websWrite(wp, output); 
     585                return; 
     586        } 
     587        if (!strcmp(name, "STA")) { 
     588                if (getSTA()) 
     589                        websWrite(wp, output); 
     590                return; 
     591        } 
    582592 
    583593        return; 
     
    692702        } 
    693703        // end HAVE_HASWIFI 
    694  
     704        if (!strcmp(name, "WET")) { 
     705                if (getWET()) 
     706                        return; 
     707        } 
     708         
    695709        websWrite(wp, output); 
    696710 
     
    19411955        int wan_link; 
    19421956 
    1943         if (nvram_match("wl0_mode", "wet") 
    1944             || nvram_match("wl0_mode", "apstawet") 
    1945             || nvram_match("wl1_mode", "wet") 
    1946             || nvram_match("wl1_mode", "apstawet") 
    1947             || nvram_match("wan_proto", "disabled")) { 
     1957        if (getWET() || nvram_match("wan_proto", "disabled")) { 
    19481958                websWrite(wp, ": %s", live_translate("share.disabled")); 
    19491959                return; 
Note: See TracChangeset for help on using the changeset viewer.