Changeset 10727
- Timestamp:
- 11/01/08 13:56:37 (5 years ago)
- File:
-
- 1 edited
-
src/router/httpd/visuals/dd-wrt.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/router/httpd/visuals/dd-wrt.c
r10726 r10727 3160 3160 "" ); 3161 3161 3162 if (nvram_nmatch("n","%s_phytypes",prefix)) 3163 if( nvram_nmatch("ab" "%s_bandlist", prefix ) || nvram_nmatch("ba", "%s_bandlist", prefix ) || nvram_nmatch( "a","%s_bandlist", prefix ) ) 3162 if( has_mimo( prefix ) ) 3163 { 3164 char band[64]; 3165 sprintf(band,"%s_bandlist",prefix); 3166 char *b=nvram_safe_get(band); 3167 if (contains(b,'a')) 3164 3168 { 3165 3169 websWrite( wp, … … 3173 3177 "na-only" ) ? "selected=\\\"selected\\\"" : 3174 3178 "" ); 3179 } 3175 3180 } 3176 3181 #else … … 3999 4004 "<div class=\"label\"><script type=\"text/javascript\">Capture(wl_basic.label3)</script></div><input name=\"%s\" size=\"20\" maxlength=\"32\" onblur=\"valid_name(this,wl_basic.label3)\" value=\"%s\" /></div>\n", 4000 4005 wl_ssid, nvram_safe_get( wl_ssid ) ); 4001 4006 4002 4007 #ifdef HAVE_MADWIFI 4003 4008 showRadio( wp, "wl_basic.radar", wl_doth ); … … 4010 4015 if( has_mimo( prefix ) 4011 4016 && ( nvram_nmatch( "n-only", "%s_net_mode", prefix ) 4012 || nvram_nmatch( "mixed," "%s_net_mode", prefix ) || nvram_nmatch( "na-only ,""%s_net_mode", prefix ) ) )4017 || nvram_nmatch( "mixed," "%s_net_mode", prefix ) || nvram_nmatch( "na-only", "%s_net_mode", prefix ) ) ) 4013 4018 { 4014 4019 … … 4016 4021 websWrite( wp, 4017 4022 "<div class=\"label\"><script type=\"text/javascript\">Capture(wl_basic.channel_width)</script></div>\n" ); 4018 websWrite( wp, "<select name=\" wl0_nbw\">\n");4023 websWrite( wp, "<select name=\"%s_nbw\">\n",prefix ); 4019 4024 websWrite( wp, 4020 4025 "<script type=\"text/javascript\">\n//<![CDATA[\n document.write(\"<option value=\\\"0\\\" %s >\" + share.auto + \"</option>\");\n//]]>\n</script>\n", 4021 nvram_ match( "wl0_nbw",4022 "0") ? "selected=\\\"selected\\\"" :4026 nvram_nmatch( "0","%s_nbw", 4027 prefix) ? "selected=\\\"selected\\\"" : 4023 4028 "" ); 4024 4029 websWrite( wp, "<option value=\"10\" %s>10 MHz</option>", 4025 nvram_ match( "wl0_nbw",4026 "10") ? "selected=\\\"selected\\\"" :4030 nvram_nmatch( "10","%s_nbw", 4031 prefix) ? "selected=\\\"selected\\\"" : 4027 4032 "" ); 4028 4033 websWrite( wp, "<option value=\"20\" %s>20 MHz</option>", 4029 nvram_match( "wl0_nbw", 4030 "20" ) ? "selected=\\\"selected\\\"" : 4034 nvram_nmatch( "20","%s_nbw",prefix) ? "selected=\\\"selected\\\"" : 4031 4035 "" ); 4032 4036 websWrite( wp, "<option value=\"40\" %s>40 MHz</option>", 4033 nvram_match( "wl0_nbw", 4034 "40" ) ? "selected=\\\"selected\\\"" : 4037 nvram_nmatch("40", "%s_nbw",prefix) ? "selected=\\\"selected\\\"" : 4035 4038 "" ); 4036 4039 websWrite( wp, "</select>\n" ); … … 4040 4043 websWrite( wp, 4041 4044 "<div class=\"label\"><script type=\"text/javascript\">Capture(wl_basic.channel_wide)</script></div>\n" ); 4042 websWrite( wp, "<select name=\" wl0_wchannel\" ></select>\n");4045 websWrite( wp, "<select name=\"%s_wchannel\" ></select>\n",prefix ); 4043 4046 websWrite( wp, "</div>\n" ); 4044 4047
Note: See TracChangeset
for help on using the changeset viewer.
