Changeset 12177


Ignore:
Timestamp:
05/20/09 13:32:52 (4 years ago)
Author:
eko
Message:

some wireless display...

File:
1 edited

Legend:

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

    r12129 r12177  
    43814381                       "<div class=\"label\"><script type=\"text/javascript\">Capture(wl_basic.channel_wide)</script></div>\n" ); 
    43824382            websWrite( wp, "<select name=\"%s_nctrlsb\" >\n", prefix ); 
    4383             websWrite( wp, "<option value=\"upper\" %s>upper</option>\n", 
     4383            websWrite( wp, "<option value=\"upper\" %s>lower</option>\n", 
    43844384                       nvram_nmatch( "upper", "%s_nctrlsb", 
    43854385                                     prefix ) ? "selected=\\\"selected\\\"" : 
    43864386                       "" ); 
    4387             websWrite( wp, "<option value=\"lower\" %s>lower</option>\n", 
     4387            websWrite( wp, "<option value=\"lower\" %s>upper</option>\n", 
    43884388                       nvram_nmatch( "lower", "%s_nctrlsb", 
    43894389                                     prefix ) ? "selected=\\\"selected\\\"" : 
     
    57255725    channel_info_t ci; 
    57265726    char name[32]; 
    5727  
    5728     sprintf( name, "%s_ifname", nvram_safe_get( "wifi_display" ) ); 
     5727     
     5728        char *prefix = nvram_safe_get( "wifi_display" ); 
     5729    sprintf( name, "%s_ifname", prefix ); 
    57295730    char *ifname = nvram_safe_get ( name ); 
    57305731     
     
    57375738    else if( ci.hw_channel > 0 ) 
    57385739    { 
     5740        if( has_mimo( prefix ) 
     5741            && ( nvram_nmatch( "n-only", "%s_net_mode", prefix ) 
     5742                 || nvram_nmatch( "mixed", "%s_net_mode", prefix ) 
     5743                 || nvram_nmatch( "na-only", "%s_net_mode", prefix ) )  
     5744                && ( nvram_nmatch( "40", "%s_nbw", prefix ) ) 
     5745                && ( nvram_nmatch( "ap", "%s_mode", prefix ) || nvram_nmatch( "wdsap", "%s_mode", prefix ) 
     5746                || nvram_nmatch( "infra", "%s_mode", prefix ) ) ) 
     5747                { 
     5748                        websWrite( wp, "%d + ", nvram_nmatch( "upper", "%s_nctrlsb", prefix ) ? ci.hw_channel + 2 : ci.hw_channel - 2);  
     5749                } 
    57395750        websWrite( wp, "%d", ci.hw_channel ); 
    57405751    } 
Note: See TracChangeset for help on using the changeset viewer.