Changeset 14228


Ignore:
Timestamp:
04/12/10 23:08:03 (3 years ago)
Author:
BrainSlayer
Message:

changes for setupassistant

File:
1 edited

Legend:

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

    r14133 r14228  
    34633463                websWrite(wp, "]</legend>\n"); 
    34643464                websWrite(wp, "<div class=\"setting\">\n"); 
     3465#ifndef HAVE_BUFFALO 
    34653466                websWrite(wp, 
    34663467                          "<div class=\"label\"><script type=\"text/javascript\">Capture(wl_basic.label3)</script></div>\n"); 
     
    35203521                websWrite(wp, "</select>\n"); 
    35213522                websWrite(wp, "</div>\n"); 
     3523//              sprintf(wmm, "%s_wmm", var); 
     3524//              showRadio(wp, "wl_adv.label18", wmm); 
     3525#endif 
     3526 
     3527#else // start BUFFALO 
     3528 
     3529// wireless mode 
     3530                char wl_mode[16]; 
     3531 
     3532#ifdef HAVE_MADWIFI 
     3533                sprintf(wl_mode, "%s_mode", var); 
     3534                websWrite(wp, 
     3535                          "<div class=\"setting\">\n<div class=\"label\"><script type=\"text/javascript\">Capture(wl_basic.label)</script></div><select name=\"%s\" >\n", 
     3536                          wl_mode); 
     3537                websWrite(wp, 
     3538                          "<script type=\"text/javascript\">\n//<![CDATA[\n"); 
     3539                websWrite(wp, 
     3540                          "document.write(\"<option value=\\\"ap\\\" %s >\" + wl_basic.ap + \"</option>\");\n", 
     3541                          nvram_match(wl_mode, 
     3542                                      "ap") ? "selected=\\\"selected\\\"" : ""); 
     3543                // websWrite (wp, 
     3544                // "document.write(\"<option value=\\\"wdssta\\\" %s >\" + 
     3545                // wl_basic.wdssta + \"</option>\");\n", 
     3546                // nvram_match (wl_mode, 
     3547                // "wdssta") ? "selected=\\\"selected\\\"" : ""); 
     3548                websWrite(wp, 
     3549                          "document.write(\"<option value=\\\"wdsap\\\" %s >\" + wl_basic.wdsap + \"</option>\");\n", 
     3550                          nvram_match(wl_mode, 
     3551                                      "wdsap") ? "selected=\\\"selected\\\"" : 
     3552                          ""); 
     3553                websWrite(wp, "//]]>\n</script>\n"); 
     3554                websWrite(wp, "</select>\n"); 
     3555                websWrite(wp, "</div>\n"); 
     3556                websWrite(wp, 
     3557                          "<div class=\"label\"><script type=\"text/javascript\">Capture(wl_basic.label3)</script></div>\n"); 
     3558 
     3559                websWrite(wp, 
     3560                          "<input name=\"%s_ssid\" size=\"20\" maxlength=\"32\" onblur=\"valid_name(this,wl_basic.label3)\" value=\"%s\" /></div>\n", 
     3561                          var, nvram_safe_get(ssid)); 
     3562// broadcast wireless ssid 
     3563                websWrite(wp, "<div class=\"setting\">\n"); 
     3564                websWrite(wp, 
     3565                          "<div class=\"label\"><script type=\"text/javascript\">Capture(wl_basic.label5)</script></div>"); 
     3566                sprintf(ssid, "%s_closed", var); 
     3567                websWrite(wp, 
     3568                          "<input class=\"spaceradio\" type=\"radio\" value=\"0\" name=\"%s_closed\" %s><script type=\"text/javascript\">Capture(share.enable)</script></input>&nbsp;\n", 
     3569                          var, nvram_match(ssid, 
     3570                                           "0") ? "checked=\"checked\"" : ""); 
     3571                websWrite(wp, 
     3572                          "<input class=\"spaceradio\" type=\"radio\" value=\"1\" name=\"%s_closed\" %s><script type=\"text/javascript\">Capture(share.disable)</script></input>\n", 
     3573                          var, nvram_match(ssid, 
     3574                                           "1") ? "checked=\"checked\"" : ""); 
     3575                websWrite(wp, "</div>\n"); 
     3576#endif 
     3577 
     3578// BUFFALO Advanced 
     3579                char advanced_label[32]; 
     3580                char maskvar[32]; 
     3581                strcpy(maskvar,var) 
     3582                rep(maskvar,'.','X'); 
     3583                sprintf(advanced_label, "%s_wl_advanced", maskvar); 
     3584                websWrite(wp, 
     3585                        "<div class=\"setting\"><div class=\"label\"><script type=\"text/javascript\">Capture(wl_adv.legend)</script></div>\n"); 
     3586                websWrite(wp, 
     3587                        "<input type=\"checkbox\" name=\"%s\" onclick=\"toggle_layer(this,'%s_layer')\"%s>",  
     3588                        advanced_label,advanced_label, 
     3589                        websGetVar(wp, advanced_label, 
     3590                                NULL) ? " checked=\"checked\"" : 
     3591                        ""); 
     3592                websWrite(wp, 
     3593                        "</div>\n"); 
     3594                websWrite(wp, 
     3595                        "<div id=\"%s_layer\"%s>\n", 
     3596                        advanced_label, 
     3597                        websGetVar(wp, advanced_label, 
     3598                                NULL) ? "" : " style=\"display: none;\"" 
     3599                        ); 
     3600 
     3601#ifdef HAVE_MADWIFI 
     3602//      sprintf( wl_chanshift, "%s_chanshift", var ); 
     3603//      show_chanshift( wp, wl_chanshift ); 
     3604 
     3605                sprintf(wl_protmode, "%s_protmode", var); 
     3606                showOptionsLabel(wp, "wl_basic.protmode", wl_protmode, 
     3607                                 "None CTS RTS/CTS", 
     3608                                 nvram_default_get(wl_protmode, "None")); 
     3609                showrtssettings(wp, var); 
     3610 
    35223611                sprintf(wmm, "%s_wmm", var); 
    35233612                showRadio(wp, "wl_adv.label18", wmm); 
    35243613#endif 
     3614         
     3615#endif // end BUFFALO 
     3616 
     3617 
    35253618                sprintf(ssid, "%s_ap_isolate", var); 
    35263619                showRadio(wp, "wl_adv.label11", ssid); 
     
    35523645                showbridgesettings(wp, var, 1, 0); 
    35533646#endif 
     3647#ifdef HAVE_BUFFALO 
     3648                websWrite(wp, "</div>\n"); 
     3649#endif 
    35543650                websWrite(wp, "</fieldset><br />\n"); 
    35553651                count++; 
    35563652        } 
    3557  
    35583653        websWrite(wp, "<div class=\"center\">\n"); 
    35593654#ifdef HAVE_MADWIFI 
     
    35743669 
    35753670        websWrite(wp, "</div><br />\n"); 
    3576  
    35773671        return 0; 
    35783672} 
     
    36613755        char power[16]; 
    36623756 
     3757#ifndef HAVE_BUFFALO 
    36633758        // char maxpower[16]; 
    36643759#ifdef HAVE_MADWIFI 
     
    39244019                 */ 
    39254020        } 
    3926         // writeless net mode 
     4021        // wireless net mode 
    39274022        show_netmode(wp, prefix); 
    39284023        // turbo options 
     
    45094604                showbridgesettings(wp, get_wl_instance_name(1), 1, 1); 
    45104605#endif 
     4606#else 
     4607// BUFFALO Basic 
     4608#ifdef HAVE_MADWIFI 
     4609        // if (!strcmp (prefix, "ath0")) 
     4610#endif 
     4611        { 
     4612                // #ifdef HAVE_MADWIFI 
     4613                // if (!strcmp (prefix, "ath0")) //show client only on first 
     4614                // interface 
     4615                // #endif 
     4616                { 
     4617#ifdef HAVE_MADWIFI 
     4618                        // if (!strcmp (prefix, "ath0")) //show client only on first 
     4619                        // interface 
     4620                        // if (nvram_match ("ath0_mode", "wdsap") 
     4621                        // || nvram_match ("ath0_mode", "wdssta")) 
     4622                        // showOption (wp, "wl_basic.wifi_bonding", "wifi_bonding"); 
     4623#endif 
     4624#ifdef HAVE_REGISTER 
     4625                        int cpeonly = iscpe(); 
     4626#else 
     4627                        int cpeonly = 0; 
     4628#endif 
     4629                        websWrite(wp, 
     4630                                  "<div class=\"setting\"><div class=\"label\"><script type=\"text/javascript\">Capture(wl_basic.label)</script></div><select name=\"%s\" >\n", 
     4631                                  wl_mode); 
     4632                        websWrite(wp, 
     4633                                  "<script type=\"text/javascript\">\n//<![CDATA[\n"); 
     4634                        if (!cpeonly) { 
     4635                                websWrite(wp, 
     4636                                          "document.write(\"<option value=\\\"ap\\\" %s >\" + wl_basic.ap + \"</option>\");\n", 
     4637                                          nvram_match(wl_mode, 
     4638                                                      "ap") ? 
     4639                                          "selected=\\\"selected\\\"" : ""); 
     4640                        } 
     4641                        websWrite(wp, 
     4642                                  "document.write(\"<option value=\\\"sta\\\" %s >\" + wl_basic.client + \"</option>\");\n", 
     4643                                  nvram_match(wl_mode, 
     4644                                              "sta") ? 
     4645                                  "selected=\\\"selected\\\"" : ""); 
     4646#ifndef HAVE_RT2880 
     4647                        websWrite(wp, 
     4648                                  "document.write(\"<option value=\\\"wet\\\" %s >\" + wl_basic.clientBridge + \"</option>\");\n", 
     4649                                  nvram_match(wl_mode, 
     4650                                              "wet") ? 
     4651                                  "selected=\\\"selected\\\"" : ""); 
     4652#endif 
     4653                        if (!cpeonly) 
     4654                                websWrite(wp, 
     4655                                          "document.write(\"<option value=\\\"infra\\\" %s >\" + wl_basic.adhoc + \"</option>\");\n", 
     4656                                          nvram_match(wl_mode, 
     4657                                                      "infra") ? 
     4658                                          "selected=\\\"selected\\\"" : ""); 
     4659#ifndef HAVE_MADWIFI 
     4660                        if (!cpeonly) { 
     4661                                websWrite(wp, 
     4662                                          "document.write(\"<option value=\\\"apsta\\\" %s >\" + wl_basic.repeater + \"</option>\");\n", 
     4663                                          nvram_match(wl_mode, 
     4664                                                      "apsta") ? 
     4665                                          "selected=\\\"selected\\\"" : ""); 
     4666//#ifndef HAVE_RT2880 
     4667                                websWrite(wp, 
     4668                                          "document.write(\"<option value=\\\"apstawet\\\" %s >\" + wl_basic.repeaterbridge + \"</option>\");\n", 
     4669                                          nvram_match(wl_mode, 
     4670                                                      "apstawet") ? 
     4671                                          "selected=\\\"selected\\\"" : ""); 
     4672                        } 
     4673//#endif 
     4674#else 
     4675                        websWrite(wp, 
     4676                                  "document.write(\"<option value=\\\"wdssta\\\" %s >\" + wl_basic.wdssta + \"</option>\");\n", 
     4677                                  nvram_match(wl_mode, 
     4678                                              "wdssta") ? 
     4679                                  "selected=\\\"selected\\\"" : ""); 
     4680                        if (!cpeonly) { 
     4681                                websWrite(wp, 
     4682                                          "document.write(\"<option value=\\\"wdsap\\\" %s >\" + wl_basic.wdsap + \"</option>\");\n", 
     4683                                          nvram_match(wl_mode, 
     4684                                                      "wdsap") ? 
     4685                                          "selected=\\\"selected\\\"" : ""); 
     4686                        } 
     4687#endif 
     4688                        websWrite(wp, "//]]>\n</script>\n"); 
     4689                        websWrite(wp, "</select>\n"); 
     4690                        websWrite(wp, "</div>\n"); 
     4691                } 
     4692        } 
     4693        // wireless net mode 
     4694        show_netmode(wp, prefix); 
     4695 
     4696         
     4697        // turbo options 
     4698#ifdef HAVE_MADWIFI 
     4699 
     4700        // char wl_xchanmode[16]; 
     4701        char wl_outdoor[16]; 
     4702        char wl_diversity[16]; 
     4703        char wl_rxantenna[16]; 
     4704        char wl_txantenna[16]; 
     4705        char wl_width[16]; 
     4706        char wl_preamble[16]; 
     4707        char wl_xr[16]; 
     4708        char wl_comp[32]; 
     4709        char wl_ff[16]; 
     4710        char wmm[32]; 
     4711        char wl_isolate[32]; 
     4712        char wl_sifstime[32]; 
     4713        char wl_preambletime[32]; 
     4714        char wl_intmit[32]; 
     4715        char wl_noise_immunity[32]; 
     4716        char wl_ofdm_weak_det[32]; 
     4717        char wl_protmode[32]; 
     4718        char wl_doth[32]; 
     4719        char wl_csma[32]; 
     4720 
     4721        sprintf(wl_csma, "%s_csma", prefix); 
     4722        sprintf(wl_doth, "%s_doth", prefix); 
     4723        sprintf(wl_protmode, "%s_protmode", prefix); 
     4724        sprintf(wl_outdoor, "%s_outdoor", prefix); 
     4725        sprintf(wl_diversity, "%s_diversity", prefix); 
     4726        sprintf(wl_rxantenna, "%s_rxantenna", prefix); 
     4727        sprintf(wl_txantenna, "%s_txantenna", prefix); 
     4728        sprintf(wl_width, "%s_channelbw", prefix); 
     4729//    sprintf( wl_comp, "%s_compression", prefix ); 
     4730        sprintf(wl_ff, "%s_ff", prefix); 
     4731        sprintf(wl_preamble, "%s_preamble", prefix); 
     4732        sprintf(wl_preambletime, "%s_preambletime", prefix); 
     4733        sprintf(wl_sifstime, "%s_sifstime", prefix); 
     4734        sprintf(wl_xr, "%s_xr", prefix); 
     4735 
     4736        sprintf(wl_intmit, "%s_intmit", prefix); 
     4737        sprintf(wl_noise_immunity, "%s_noise_immunity", prefix); 
     4738        sprintf(wl_ofdm_weak_det, "%s_ofdm_weak_det", prefix); 
     4739 
     4740#if 0 
     4741        showRadio(wp, "wl_basic.csma", wl_csma); 
     4742#endif 
     4743        // showOption (wp, "wl_basic.extchannel", wl_xchanmode); 
     4744        websWrite(wp, 
     4745                  "<div class=\"setting\"><div class=\"label\"><script type=\"text/javascript\">Capture(wl_basic.channel_width)</script></div><select name=\"%s\" >\n", 
     4746                  wl_width); 
     4747        websWrite(wp, "<script type=\"text/javascript\">\n//<![CDATA[\n"); 
     4748#ifdef HAVE_MADWIFI_MIMO 
     4749        if (is_ar5008(prefix)) { 
     4750                websWrite(wp, 
     4751                          "document.write(\"<option value=\\\"2040\\\" %s >\" + share.dynamicturbo + \"</option>\");\n", 
     4752                          nvram_match(wl_width, 
     4753                                      "2040") ? "selected=\\\"selected\\\"" : 
     4754                          ""); 
     4755 
     4756        } 
     4757#endif 
     4758        websWrite(wp, 
     4759                  "document.write(\"<option value=\\\"40\\\" %s >\" + share.turbo + \"</option>\");\n", 
     4760                  nvram_match(wl_width, 
     4761                              "40") ? "selected=\\\"selected\\\"" : ""); 
     4762        websWrite(wp, 
     4763                  "document.write(\"<option value=\\\"20\\\" %s >\" + share.full + \"</option>\");\n", 
     4764                  nvram_match(wl_width, 
     4765                              "20") ? "selected=\\\"selected\\\"" : ""); 
     4766        websWrite(wp, 
     4767                  "document.write(\"<option value=\\\"10\\\" %s >\" + share.half + \"</option>\");\n", 
     4768                  nvram_match(wl_width, 
     4769                              "10") ? "selected=\\\"selected\\\"" : ""); 
     4770        websWrite(wp, 
     4771                  "document.write(\"<option value=\\\"5\\\" %s >\" + share.quarter + \"</option>\");\n", 
     4772                  nvram_match(wl_width, 
     4773                              "5") ? "selected=\\\"selected\\\"" : ""); 
     4774#ifdef HAVE_SUBQUARTER 
     4775        /* will be enabled once it is tested and the spectrum analyse is done */ 
     4776        websWrite(wp, 
     4777                  "document.write(\"<option value=\\\"2\\\" %s >\" + share.subquarter + \"</option>\");\n", 
     4778                  nvram_match(wl_width, 
     4779                              "2") ? "selected=\\\"selected\\\"" : ""); 
     4780#endif 
     4781        websWrite(wp, "//]]>\n</script>\n"); 
     4782        websWrite(wp, "</select>\n"); 
     4783        websWrite(wp, "</div>\n"); 
     4784 
     4785// test 
     4786#ifdef HAVE_RT2880 
     4787        if (nvram_match(wl_mode, "ap") || nvram_match(wl_mode, "wdsap") 
     4788            || nvram_match(wl_mode, "infra") || nvram_match(wl_mode, "apsta") 
     4789            || nvram_match(wl_mode, "apstawet")) 
     4790#else 
     4791        if (nvram_match(wl_mode, "ap") || nvram_match(wl_mode, "wdsap") 
     4792            || nvram_match(wl_mode, "infra")) 
     4793#endif 
     4794        { 
     4795 
     4796                if (has_mimo(prefix) 
     4797                    && (nvram_nmatch("n-only", "%s_net_mode", prefix) 
     4798                        || nvram_nmatch("ng-only", "%s_net_mode", prefix) 
     4799                        || nvram_nmatch("mixed", "%s_net_mode", prefix) 
     4800                        || nvram_nmatch("n2-only", "%s_net_mode", prefix) 
     4801                        || nvram_nmatch("n5-only", "%s_net_mode", prefix) 
     4802                        || nvram_nmatch("na-only", "%s_net_mode", prefix))) { 
     4803                        show_channel(wp, prefix, prefix, 1); 
     4804 
     4805                        websWrite(wp, "<div class=\"setting\">\n"); 
     4806                        websWrite(wp, 
     4807                                  "<div class=\"label\"><script type=\"text/javascript\">Capture(wl_basic.channel_width)</script></div>\n"); 
     4808                        websWrite(wp, "<select name=\"%s_nbw\">\n", prefix); 
     4809#ifdef HAVE_RT2880 
     4810                        websWrite(wp, 
     4811                                  "<script type=\"text/javascript\">\n//<![CDATA[\n document.write(\"<option value=\\\"20\\\" %s >20 Mhz</option>\");\n//]]>\n</script>\n", 
     4812                                  nvram_nmatch("20", "%s_nbw", 
     4813                                               prefix) ? 
     4814                                  "selected=\\\"selected\\\"" : ""); 
     4815                        websWrite(wp, "<option value=\"40\" %s>40 MHz</option>", 
     4816                                  nvram_nmatch("40", "%s_nbw", 
     4817                                               prefix) ? 
     4818                                  "selected=\\\"selected\\\"" : ""); 
     4819#else 
     4820                        websWrite(wp, 
     4821                                  "<script type=\"text/javascript\">\n//<![CDATA[\n document.write(\"<option value=\\\"0\\\" %s >\" + share.auto + \"</option>\");\n//]]>\n</script>\n", 
     4822                                  nvram_nmatch("0", "%s_nbw", 
     4823                                               prefix) ? 
     4824                                  "selected=\\\"selected\\\"" : ""); 
     4825                        websWrite(wp, 
     4826                                  "<option value=\"10\" %s>10 MHz</option>\n", 
     4827                                  nvram_nmatch("10", "%s_nbw", 
     4828                                               prefix) ? 
     4829                                  "selected=\\\"selected\\\"" : ""); 
     4830                        websWrite(wp, 
     4831                                  "<option value=\"20\" %s>20 MHz</option>\n", 
     4832                                  nvram_nmatch("20", "%s_nbw", 
     4833                                               prefix) ? 
     4834                                  "selected=\\\"selected\\\"" : ""); 
     4835                        websWrite(wp, 
     4836                                  "<option value=\"40\" %s>40 MHz</option>\n", 
     4837                                  nvram_nmatch("40", "%s_nbw", 
     4838                                               prefix) ? 
     4839                                  "selected=\\\"selected\\\"" : ""); 
     4840#endif 
     4841                        websWrite(wp, "</select>\n"); 
     4842                        websWrite(wp, "</div>\n"); 
     4843 
     4844                        if (nvram_nmatch("40", "%s_nbw", prefix)) { 
     4845                                websWrite(wp, "<div class=\"setting\">\n"); 
     4846                                websWrite(wp, 
     4847                                          "<div class=\"label\"><script type=\"text/javascript\">Capture(wl_basic.channel_wide)</script></div>\n"); 
     4848                                websWrite(wp, "<select name=\"%s_nctrlsb\" >\n", 
     4849                                          prefix); 
     4850                                websWrite(wp, 
     4851                                          "<option value=\"upper\" %s>upper</option>\n", 
     4852                                          nvram_nmatch("upper", "%s_nctrlsb", 
     4853                                                       prefix) ? 
     4854                                          "selected=\\\"selected\\\"" : ""); 
     4855                                websWrite(wp, 
     4856                                          "<option value=\"lower\" %s>lower</option>\n", 
     4857                                          nvram_nmatch("lower", "%s_nctrlsb", 
     4858                                                       prefix) ? 
     4859                                          "selected=\\\"selected\\\"" : ""); 
     4860                                websWrite(wp, "</select>\n"); 
     4861 
     4862                                websWrite(wp, "</div>\n"); 
     4863                        } 
     4864                } else { 
     4865 
     4866                        show_channel(wp, prefix, prefix, 0); 
     4867#ifdef HAVE_MADWIFI_MIMO 
     4868                        if (is_ar5008(prefix) 
     4869                            && (nvram_match(wl_width, "40") 
     4870                                || nvram_match(wl_width, "2040"))) { 
     4871                                websWrite(wp, "<div class=\"setting\">\n"); 
     4872                                websWrite(wp, 
     4873                                          "<div class=\"label\"><script type=\"text/javascript\">Capture(wl_basic.channel_wide)</script></div>\n"); 
     4874                                websWrite(wp, "<select name=\"%s_nctrlsb\" >\n", 
     4875                                          prefix); 
     4876                                websWrite(wp, 
     4877                                          "<option value=\"upper\" %s>upper</option>\n", 
     4878                                          nvram_nmatch("upper", "%s_nctrlsb", 
     4879                                                       prefix) ? 
     4880                                          "selected=\\\"selected\\\"" : ""); 
     4881                                websWrite(wp, 
     4882                                          "<option value=\"lower\" %s>lower</option>\n", 
     4883                                          nvram_nmatch("lower", "%s_nctrlsb", 
     4884                                                       prefix) ? 
     4885                                          "selected=\\\"selected\\\"" : ""); 
     4886                                websWrite(wp, "</select>\n"); 
     4887 
     4888                                websWrite(wp, "</div>\n"); 
     4889                        } 
     4890#endif 
     4891                } 
     4892// wireless ssid 
     4893        websWrite(wp, "<div class=\"setting\">\n"); 
     4894        websWrite(wp, 
     4895                  "<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", 
     4896                  wl_ssid, nvram_safe_get(wl_ssid)); 
     4897 
     4898// ssid broadcast 
     4899                char wl_closed[16]; 
     4900 
     4901                sprintf(wl_closed, "%s_closed", prefix); 
     4902                websWrite(wp, "<div class=\"setting\">\n"); 
     4903                websWrite(wp, 
     4904                          "<div class=\"label\"><script type=\"text/javascript\">Capture(wl_basic.label5)</script></div>\n"); 
     4905                websWrite(wp, 
     4906                          "<input class=\"spaceradio\" type=\"radio\" value=\"0\" name=\"%s\" %s><script type=\"text/javascript\">Capture(share.enable)</script></input>&nbsp;\n", 
     4907                          wl_closed, nvram_match(wl_closed, 
     4908                                                 "0") ? "checked=\"checked\"" : 
     4909                          ""); 
     4910                websWrite(wp, 
     4911                          "<input class=\"spaceradio\" type=\"radio\" value=\"1\" name=\"%s\" %s><script type=\"text/javascript\">Capture(share.disable)</script></input>\n", 
     4912                          wl_closed, nvram_match(wl_closed, 
     4913                                                 "1") ? "checked=\"checked\"" : 
     4914                          ""); 
     4915                websWrite(wp, "</div>\n"); 
     4916        } 
     4917         
     4918// BUFFALO Advanced 
     4919        char advanced_label[32]; 
     4920        sprintf(advanced_label, "%s_wl_advanced", prefix); 
     4921        websWrite(wp, 
     4922                "<div class=\"setting\"><div class=\"label\"><script type=\"text/javascript\">Capture(wl_adv.legend)</script></div>\n"); 
     4923        websWrite(wp, 
     4924                "<input type=\"checkbox\" name=\"%s\" onclick=\"toggle_layer(this,'%s_layer')\"%s>",  
     4925                advanced_label,advanced_label, 
     4926                websGetVar(wp, advanced_label, 
     4927                        NULL) ? " checked=\"checked\"" : 
     4928                ""); 
     4929        websWrite(wp, 
     4930                "</div>\n"); 
     4931        websWrite(wp, 
     4932                "<div id=\"%s_layer\"%s>\n", 
     4933                advanced_label, 
     4934                websGetVar(wp, advanced_label, 
     4935                        NULL) ? "" : " style=\"display: none;\"" 
     4936                ); 
     4937#ifdef HAVE_MADWIFI 
     4938#ifndef HAVE_NOCOUNTRYSEL 
     4939        char wl_regdomain[16]; 
     4940 
     4941        sprintf(wl_regdomain, "%s_regdomain", prefix); 
     4942        if (nvram_nmatch("1","%s_regulatory", prefix) || !issuperchannel()) { 
     4943                websWrite(wp, 
     4944                          "<div class=\"setting\"><div class=\"label\"><script type=\"text/javascript\">Capture(wl_basic.regdom)</script></div>\n"); 
     4945                char *list = getCountryList(); 
     4946 
     4947                showOptions(wp, wl_regdomain, list, 
     4948                            nvram_safe_get(wl_regdomain)); 
     4949                websWrite(wp, "</div>\n"); 
     4950        } 
     4951#endif                          // ! HAVE MAKSAT 
     4952        // power adjustment 
     4953        sprintf(power, "%s_txpwrdbm", prefix); 
     4954        // sprintf (maxpower, "%s_maxpower", prefix); 
     4955        if (issuperchannel())   // show 
     4956                // client 
     4957                // only on 
     4958                // first 
     4959                // interface 
     4960        { 
     4961 
     4962                char regulatory[32]; 
     4963                sprintf(regulatory,"%s_regulatory",prefix); 
     4964                nvram_default_get(regulatory,"0"); 
     4965                websWrite(wp, "         <div class=\"setting\">\n"); 
     4966                websWrite(wp, 
     4967                          "             <div class=\"label\"><script type=\"text/javascript\">Capture(wl_basic.regulatory)</script></div>\n"); 
     4968                websWrite(wp, 
     4969                          "             <input class=\"spaceradio\" type=\"radio\" value=\"0\" name=\"%s_regulatory\" %s /><script type=\"text/javascript\">Capture(share.enable)</script>&nbsp;\n",prefix, 
     4970                          nvram_match(regulatory,"0") ? "checked" : ""); 
     4971                websWrite(wp, 
     4972                          "             <input class=\"spaceradio\" type=\"radio\" value=\"1\" name=\"%s_regulatory\" %s /><script type=\"text/javascript\">Capture(share.disable)</script>\n",prefix, 
     4973                          nvram_match(regulatory,"1") ? "checked" : ""); 
     4974                websWrite(wp, "         </div>\n"); 
     4975 
     4976        } 
     4977        websWrite(wp, "<div class=\"setting\">\n"); 
     4978        websWrite(wp, 
     4979                  "<div class=\"label\"><script type=\"text/javascript\">Capture(wl_basic.TXpower)</script></div><input class=\"num\" name=\"%s\" size=\"6\" maxlength=\"3\" value=\"%d\" /> dBm\n", 
     4980                  power, 
     4981                  atoi(nvram_safe_get(power)) + wifi_gettxpoweroffset(prefix)); 
     4982        websWrite(wp, "</div>\n"); 
     4983        sprintf(power, "%s_antgain", prefix); 
     4984#ifndef HAVE_MAKSAT 
     4985        if (nvram_nmatch("1","%s_regulatory", prefix)) 
     4986#endif 
     4987        { 
     4988                websWrite(wp, "<div class=\"setting\">\n"); 
     4989                websWrite(wp, 
     4990                          "<div class=\"label\"><script type=\"text/javascript\">Capture(wl_basic.AntGain)</script></div><input class=\"num\" name=\"%s\" size=\"6\" maxlength=\"3\" value=\"%s\" /> dBi\n", 
     4991                          power, nvram_safe_get(power)); 
     4992                websWrite(wp, "</div>\n"); 
     4993        } 
     4994#endif 
     4995         
     4996        // channel options 
     4997#ifdef HAVE_MADWIFI_MIMO 
     4998        if (!is_ar5008(prefix)) 
     4999#endif 
     5000        { 
     5001                showAutoOption(wp, "wl_basic.intmit", wl_intmit); 
     5002                websWrite(wp, "<div class=\"setting\">\n"); 
     5003                websWrite(wp, 
     5004                          "<div class=\"label\"><script type=\"text/javascript\">Capture(wl_basic.noise_immunity)</script></div>\n<select name=\"%s\">\n", 
     5005                          wl_noise_immunity); 
     5006                websWrite(wp, 
     5007                          "<script type=\"text/javascript\">\n//<![CDATA[\n"); 
     5008                websWrite(wp, 
     5009                          "document.write(\"<option value=\\\"0\\\" %s >0</option>\");\n", 
     5010                          nvram_default_match(wl_noise_immunity, "0", 
     5011                                              "4") ? "selected=\\\"selected\\\"" 
     5012                          : ""); 
     5013                websWrite(wp, 
     5014                          "document.write(\"<option value=\\\"1\\\" %s >1</option>\");\n", 
     5015                          nvram_default_match(wl_noise_immunity, "1", 
     5016                                              "4") ? "selected=\\\"selected\\\"" 
     5017                          : ""); 
     5018                websWrite(wp, 
     5019                          "document.write(\"<option value=\\\"2\\\" %s >2</option>\");\n", 
     5020                          nvram_default_match(wl_noise_immunity, "2", 
     5021                                              "4") ? "selected=\\\"selected\\\"" 
     5022                          : ""); 
     5023                websWrite(wp, 
     5024                          "document.write(\"<option value=\\\"3\\\" %s >3</option>\");\n", 
     5025                          nvram_default_match(wl_noise_immunity, "3", 
     5026                                              "4") ? "selected=\\\"selected\\\"" 
     5027                          : ""); 
     5028                websWrite(wp, 
     5029                          "document.write(\"<option value=\\\"4\\\" %s >4</option>\");\n", 
     5030                          nvram_default_match(wl_noise_immunity, "4", 
     5031                                              "4") ? "selected=\\\"selected\\\"" 
     5032                          : ""); 
     5033                websWrite(wp, "//]]>\n</script>\n</select>\n</div>\n"); 
     5034 
     5035                showRadio(wp, "wl_basic.ofdm_weak_det", wl_ofdm_weak_det); 
     5036        } 
     5037 
     5038        showOptionsLabel(wp, "wl_basic.protmode", wl_protmode, 
     5039                         "None CTS RTS/CTS", nvram_default_get(wl_protmode, 
     5040                                                               "None")); 
     5041        showrtssettings(wp, prefix); 
     5042        show_rates(wp, prefix, 0); 
     5043        show_rates(wp, prefix, 1); 
     5044        showRadio(wp, "wl_basic.preamble", wl_preamble); 
     5045#ifdef HAVE_MADWIFI_MIMO 
     5046        if (!is_ar5008(prefix)) 
     5047#endif 
     5048        { 
     5049                showRadio(wp, "wl_basic.extrange", wl_xr); 
     5050                showRadio(wp, "wl_basic.supergff", wl_ff); 
     5051        } 
     5052#if !defined(HAVE_FONERA) && !defined(HAVE_LS2) && !defined(HAVE_MERAKI) 
     5053        if (nvram_nmatch("1","%s_regulatory", prefix) || !issuperchannel()) { 
     5054// !!! Has to be handled according to regulatory settings 
     5055//              showRadio(wp, "wl_basic.outband", wl_outdoor); 
     5056        } 
     5057#endif 
     5058 
     5059// antenna settings 
     5060#if defined(HAVE_PICO2) || defined(HAVE_PICO2HP) || defined(HAVE_PICO5) 
     5061        // do nothing 
     5062#elif defined(HAVE_NS2) || defined(HAVE_NS5) || defined(HAVE_LC2) || defined(HAVE_LC5) || defined(HAVE_NS3) 
     5063 
     5064        websWrite(wp, 
     5065                  "<div class=\"setting\"><div class=\"label\"><script type=\"text/javascript\">Capture(wl_adv.label24)</script></div><select name=\"%s\" >\n", 
     5066                  wl_txantenna); 
     5067        websWrite(wp, "<script type=\"text/javascript\">\n//<![CDATA[\n"); 
     5068        websWrite(wp, 
     5069                  "document.write(\"<option value=\\\"0\\\" %s >\" + wl_basic.vertical + \"</option>\");\n", 
     5070                  nvram_match(wl_txantenna, 
     5071                              "0") ? "selected=\\\"selected\\\"" : ""); 
     5072        websWrite(wp, 
     5073                  "document.write(\"<option value=\\\"1\\\" %s >\" + wl_basic.horizontal + \"</option>\");\n", 
     5074                  nvram_match(wl_txantenna, 
     5075                              "1") ? "selected=\\\"selected\\\"" : ""); 
     5076#if defined(HAVE_NS5) || defined(HAVE_NS2) || defined(HAVE_NS3) 
     5077        websWrite(wp, 
     5078                  "document.write(\"<option value=\\\"3\\\" %s >\" + wl_basic.adaptive + \"</option>\");\n", 
     5079                  nvram_match(wl_txantenna, 
     5080                              "3") ? "selected=\\\"selected\\\"" : ""); 
     5081        websWrite(wp, 
     5082                  "document.write(\"<option value=\\\"2\\\" %s >\" + wl_basic.external + \"</option>\");\n", 
     5083                  nvram_match(wl_txantenna, 
     5084                              "2") ? "selected=\\\"selected\\\"" : ""); 
     5085#endif 
     5086        websWrite(wp, "//]]>\n</script>\n"); 
     5087 
     5088        websWrite(wp, "</select>\n"); 
     5089        websWrite(wp, "</div>\n"); 
     5090 
     5091#else 
     5092#ifdef HAVE_MADWIFI_MIMO 
     5093        if (!is_ar5008(prefix)) 
     5094#endif 
     5095        { 
     5096                showRadio(wp, "wl_basic.diversity", wl_diversity); 
     5097                websWrite(wp, 
     5098                          "<div class=\"setting\"><div class=\"label\"><script type=\"text/javascript\">Capture(wl_adv.label12)</script></div><select name=\"%s\" >\n", 
     5099                          wl_txantenna); 
     5100                websWrite(wp, 
     5101                          "<script type=\"text/javascript\">\n//<![CDATA[\n"); 
     5102                websWrite(wp, 
     5103                          "document.write(\"<option value=\\\"0\\\" %s >\" + wl_basic.diversity + \"</option>\");\n", 
     5104                          nvram_match(wl_txantenna, 
     5105                                      "0") ? "selected=\\\"selected\\\"" : ""); 
     5106                websWrite(wp, 
     5107                          "document.write(\"<option value=\\\"1\\\" %s >\" + wl_basic.primary + \"</option>\");\n", 
     5108                          nvram_match(wl_txantenna, 
     5109                                      "1") ? "selected=\\\"selected\\\"" : ""); 
     5110                websWrite(wp, 
     5111                          "document.write(\"<option value=\\\"2\\\" %s >\" + wl_basic.secondary + \"</option>\");\n", 
     5112                          nvram_match(wl_txantenna, 
     5113                                      "2") ? "selected=\\\"selected\\\"" : ""); 
     5114                websWrite(wp, "//]]>\n</script>\n"); 
     5115                websWrite(wp, "</select>\n"); 
     5116                websWrite(wp, "</div>\n"); 
     5117 
     5118                websWrite(wp, 
     5119                          "<div class=\"setting\"><div class=\"label\"><script type=\"text/javascript\">Capture(wl_adv.label13)</script></div><select name=\"%s\" >\n", 
     5120                          wl_rxantenna); 
     5121                websWrite(wp, 
     5122                          "<script type=\"text/javascript\">\n//<![CDATA[\n"); 
     5123                websWrite(wp, 
     5124                          "document.write(\"<option value=\\\"0\\\" %s >\" + wl_basic.diversity + \"</option>\");\n", 
     5125                          nvram_match(wl_rxantenna, 
     5126                                      "0") ? "selected=\\\"selected\\\"" : ""); 
     5127                websWrite(wp, 
     5128                          "document.write(\"<option value=\\\"1\\\" %s >\" + wl_basic.primary + \"</option>\");\n", 
     5129                          nvram_match(wl_rxantenna, 
     5130                                      "1") ? "selected=\\\"selected\\\"" : ""); 
     5131                websWrite(wp, 
     5132                          "document.write(\"<option value=\\\"2\\\" %s >\" + wl_basic.secondary + \"</option>\");\n", 
     5133                          nvram_match(wl_rxantenna, 
     5134                                      "2") ? "selected=\\\"selected\\\"" : ""); 
     5135                websWrite(wp, "//]]>\n</script>\n"); 
     5136                websWrite(wp, "</select>\n"); 
     5137                websWrite(wp, "</div>\n"); 
     5138        } 
     5139#ifdef HAVE_MADWIFI_MIMO 
     5140        else { 
     5141                websWrite(wp, 
     5142                          "<div class=\"setting\"><div class=\"label\"><script type=\"text/javascript\">Capture(wl_adv.txchainmask)</script></div><select name=\"%s\" >\n", 
     5143                          wl_txantenna); 
     5144                websWrite(wp, 
     5145                          "<script type=\"text/javascript\">\n//<![CDATA[\n"); 
     5146                websWrite(wp, 
     5147                          "document.write(\"<option value=\\\"1\\\" %s >1</option>\");\n", 
     5148                          nvram_match(wl_txantenna, 
     5149                                      "1") ? "selected=\\\"selected\\\"" : ""); 
     5150//      websWrite(wp, 
     5151//                "document.write(\"<option value=\\\"2\\\" %s >2</option>\");\n", 
     5152//                nvram_match(wl_txantenna, 
     5153//                            "2") ? "selected=\\\"selected\\\"" : ""); 
     5154                websWrite(wp, 
     5155                          "document.write(\"<option value=\\\"3\\\" %s >1+2</option>\");\n", 
     5156                          nvram_match(wl_txantenna, 
     5157                                      "3") ? "selected=\\\"selected\\\"" : ""); 
     5158//      websWrite(wp, 
     5159//                "document.write(\"<option value=\\\"4\\\" %s >3</option>\");\n", 
     5160//                nvram_match(wl_txantenna, 
     5161//                            "4") ? "selected=\\\"selected\\\"" : ""); 
     5162                websWrite(wp, 
     5163                          "document.write(\"<option value=\\\"5\\\" %s >1+3</option>\");\n", 
     5164                          nvram_match(wl_txantenna, 
     5165                                      "5") ? "selected=\\\"selected\\\"" : ""); 
     5166//      websWrite(wp, 
     5167//                "document.write(\"<option value=\\\"6\\\" %s >2+3</option>\");\n", 
     5168//                nvram_match(wl_txantenna, 
     5169//                            "6") ? "selected=\\\"selected\\\"" : ""); 
     5170                websWrite(wp, 
     5171                          "document.write(\"<option value=\\\"7\\\" %s >1+2+3</option>\");\n", 
     5172                          nvram_match(wl_txantenna, 
     5173                                      "7") ? "selected=\\\"selected\\\"" : ""); 
     5174                websWrite(wp, "//]]>\n</script>\n"); 
     5175                websWrite(wp, "</select>\n"); 
     5176                websWrite(wp, "</div>\n"); 
     5177 
     5178                websWrite(wp, 
     5179                          "<div class=\"setting\"><div class=\"label\"><script type=\"text/javascript\">Capture(wl_adv.rxchainmask)</script></div><select name=\"%s\" >\n", 
     5180                          wl_rxantenna); 
     5181                websWrite(wp, 
     5182                          "<script type=\"text/javascript\">\n//<![CDATA[\n"); 
     5183                websWrite(wp, 
     5184                          "document.write(\"<option value=\\\"1\\\" %s >1</option>\");\n", 
     5185                          nvram_match(wl_rxantenna, 
     5186                                      "1") ? "selected=\\\"selected\\\"" : ""); 
     5187//      websWrite(wp, 
     5188//                "document.write(\"<option value=\\\"2\\\" %s >2</option>\");\n", 
     5189//                nvram_match(wl_rxantenna, 
     5190//                            "2") ? "selected=\\\"selected\\\"" : ""); 
     5191                websWrite(wp, 
     5192                          "document.write(\"<option value=\\\"3\\\" %s >1+2</option>\");\n", 
     5193                          nvram_match(wl_rxantenna, 
     5194                                      "3") ? "selected=\\\"selected\\\"" : ""); 
     5195//      websWrite(wp, 
     5196//                "document.write(\"<option value=\\\"4\\\" %s >3</option>\");\n", 
     5197//                nvram_match(wl_rxantenna, 
     5198//                            "4") ? "selected=\\\"selected\\\"" : ""); 
     5199                websWrite(wp, 
     5200                          "document.write(\"<option value=\\\"5\\\" %s >1+3</option>\");\n", 
     5201                          nvram_match(wl_rxantenna, 
     5202                                      "5") ? "selected=\\\"selected\\\"" : ""); 
     5203//      websWrite(wp, 
     5204//                "document.write(\"<option value=\\\"6\\\" %s >2+3</option>\");\n", 
     5205//                nvram_match(wl_rxantenna, 
     5206//                            "6") ? "selected=\\\"selected\\\"" : ""); 
     5207                websWrite(wp, 
     5208                          "document.write(\"<option value=\\\"7\\\" %s >1+2+3</option>\");\n", 
     5209                          nvram_match(wl_rxantenna, 
     5210                                      "7") ? "selected=\\\"selected\\\"" : ""); 
     5211                websWrite(wp, "//]]>\n</script>\n"); 
     5212                websWrite(wp, "</select>\n"); 
     5213                websWrite(wp, "</div>\n"); 
     5214 
     5215        } 
     5216#endif 
     5217#endif 
     5218#endif 
     5219 
     5220// ap isolation 
     5221#ifdef HAVE_MADWIFI 
     5222        sprintf(wl_isolate, "%s_ap_isolate", prefix); 
     5223        showRadio(wp, "wl_adv.label11", wl_isolate); 
     5224 
     5225#if 0 
     5226        websWrite(wp, "<div class=\"setting\">\n"); 
     5227        websWrite(wp, 
     5228                  "<div class=\"label\"><script type=\"text/javascript\">Capture(wl_basic.sifstime)</script></div>\n"); 
     5229        websWrite(wp, 
     5230                  "<input class=\"num\" name=\"%s\" size=\"3\" maxlength=\"3\" onblur=\"valid_range(this,0,99999999,wl_basic.sifstime)\" value=\"%s\" />\n", 
     5231                  wl_sifstime, nvram_default_get(wl_sifstime, "16")); 
     5232        websWrite(wp, "</div>\n"); 
     5233 
     5234        websWrite(wp, "<div class=\"setting\">\n"); 
     5235        websWrite(wp, 
     5236                  "<div class=\"label\"><script type=\"text/javascript\">Capture(wl_basic.preambletime)</script></div>\n"); 
     5237        websWrite(wp, 
     5238                  "<input class=\"num\" name=\"%s\" size=\"3\" maxlength=\"3\" onblur=\"valid_range(this,0,99999999,wl_basic.preambletime)\" value=\"%s\" />\n", 
     5239                  wl_preambletime, nvram_default_get(wl_preambletime, "20")); 
     5240        websWrite(wp, "</div>\n"); 
     5241#endif 
     5242// wmm 
     5243#ifdef HAVE_MADWIFI_MIMO 
     5244        if (!is_ar5008(prefix)) 
     5245#endif 
     5246        { 
     5247                sprintf(wmm, "%s_wmm", prefix); 
     5248                showRadio(wp, "wl_adv.label18", wmm); 
     5249        } 
     5250#endif 
     5251 
     5252// radar detection 
     5253#ifdef HAVE_MADWIFI 
     5254        showRadio(wp, "wl_basic.radar", wl_doth); 
     5255        show_chanshift(wp, prefix); 
     5256#endif 
     5257 
     5258// scanlist 
     5259#ifdef HAVE_MADWIFI 
     5260        // if (nvram_match (wl_mode, "sta") || nvram_match (wl_mode, "wdssta") 
     5261        // || nvram_match (wl_mode, "wet")) 
     5262        { 
     5263                char wl_scanlist[32]; 
     5264 
     5265                sprintf(wl_scanlist, "%s_scanlist", prefix); 
     5266                websWrite(wp, "<div class=\"setting\">\n"); 
     5267                websWrite(wp, 
     5268                          "<div class=\"label\"><script type=\"text/javascript\">Capture(wl_basic.scanlist)</script></div>\n"); 
     5269                websWrite(wp, 
     5270                          "<input name=\"%s\" size=\"32\" maxlength=\"512\" value=\"%s\" />\n", 
     5271                          wl_scanlist, nvram_default_get(wl_scanlist, 
     5272                                                         "default")); 
     5273                websWrite(wp, "</div>\n"); 
     5274        } 
     5275#endif 
     5276 
     5277        // ACK timing 
     5278#if defined(HAVE_ACK) || defined(HAVE_MADWIFI)  // temp fix for v24 broadcom 
     5279        // ACKnot working 
     5280 
     5281        sprintf(power, "%s_distance", prefix); 
     5282        websWrite(wp, "<br />\n"); 
     5283        websWrite(wp, "<div class=\"setting\">\n"); 
     5284        websWrite(wp, 
     5285                  "<div class=\"label\"><script type=\"text/javascript\">Capture(wl_basic.label6)</script></div>\n"); 
     5286        websWrite(wp, 
     5287                  "<input class=\"num\" name=\"%s\" size=\"8\" maxlength=\"8\" onblur=\"valid_range(this,0,99999999,wl_basic.label6)\" value=\"%s\" />\n", 
     5288                  power, nvram_default_get(power, "2000")); 
     5289        websWrite(wp, 
     5290                  "<span class=\"default\"><script type=\"text/javascript\">\n//<![CDATA[\n document.write(\"(\" + share.deflt + \": 2000 \" + share.meters + \")\");\n//]]>\n</script></span>\n"); 
     5291        websWrite(wp, "</div>\n"); 
     5292        // end ACK timing 
     5293#endif 
     5294#ifdef HAVE_MADWIFI 
     5295        if (nvram_nmatch("ap", "%s_mode", prefix) 
     5296            || nvram_nmatch("wdsap", "%s_mode", prefix) 
     5297            || nvram_nmatch("infra", "%s_mode", prefix)) { 
     5298                sprintf(power, "%s_maxassoc", prefix); 
     5299                websWrite(wp, "<div class=\"setting\">\n"); 
     5300                websWrite(wp, 
     5301                          "<div class=\"label\"><script type=\"text/javascript\">Capture(wl_adv.label10)</script></div>\n"); 
     5302                websWrite(wp, 
     5303                          "<input class=\"num\" name=\"%s\" size=\"4\" maxlength=\"4\" onblur=\"valid_range(this,0,256,wl_basic.label6)\" value=\"%s\" />\n", 
     5304                          power, nvram_default_get(power, "256")); 
     5305                websWrite(wp, 
     5306                          "<span class=\"default\"><script type=\"text/javascript\">\n//<![CDATA[\n document.write(\"(\" + share.deflt + \": 256 \" + status_wireless.legend3 + \")\");\n//]]>\n</script></span>\n"); 
     5307                websWrite(wp, "</div>\n"); 
     5308        } 
     5309        sprintf(power, "%s_mtikie", prefix); 
     5310        nvram_default_get(power, "0"); 
     5311        showRadio(wp, "wl_basic.mtikie", power); 
     5312 
     5313        showbridgesettings(wp, prefix, 1, 1); 
     5314#elif HAVE_RT2880 
     5315        showbridgesettings(wp, "ra0", 1, 1); 
     5316#else 
     5317        if (!strcmp(prefix, "wl0")) 
     5318                showbridgesettings(wp, get_wl_instance_name(0), 1, 1); 
     5319        if (!strcmp(prefix, "wl1")) 
     5320                showbridgesettings(wp, get_wl_instance_name(1), 1, 1); 
     5321#endif 
     5322 
     5323        websWrite(wp, "</div>\n"); 
     5324#endif // end BUFFALO 
    45115325        websWrite(wp, "</fieldset>\n"); 
    45125326        websWrite(wp, "<br />\n"); 
Note: See TracChangeset for help on using the changeset viewer.