Changeset 12177
- Timestamp:
- 05/20/09 13:32:52 (4 years ago)
- File:
-
- 1 edited
-
src/router/httpd/visuals/dd-wrt.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/router/httpd/visuals/dd-wrt.c
r12129 r12177 4381 4381 "<div class=\"label\"><script type=\"text/javascript\">Capture(wl_basic.channel_wide)</script></div>\n" ); 4382 4382 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", 4384 4384 nvram_nmatch( "upper", "%s_nctrlsb", 4385 4385 prefix ) ? "selected=\\\"selected\\\"" : 4386 4386 "" ); 4387 websWrite( wp, "<option value=\"lower\" %s> lower</option>\n",4387 websWrite( wp, "<option value=\"lower\" %s>upper</option>\n", 4388 4388 nvram_nmatch( "lower", "%s_nctrlsb", 4389 4389 prefix ) ? "selected=\\\"selected\\\"" : … … 5725 5725 channel_info_t ci; 5726 5726 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 ); 5729 5730 char *ifname = nvram_safe_get ( name ); 5730 5731 … … 5737 5738 else if( ci.hw_channel > 0 ) 5738 5739 { 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 } 5739 5750 websWrite( wp, "%d", ci.hw_channel ); 5740 5751 }
Note: See TracChangeset
for help on using the changeset viewer.
