Changeset 7724 for src/router/httpd/modules/dd-wrt.c
- Timestamp:
- 08/21/07 19:10:17 (6 years ago)
- File:
-
- 1 edited
-
src/router/httpd/modules/dd-wrt.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/router/httpd/modules/dd-wrt.c
r7700 r7724 1575 1575 1576 1576 static void 1577 show_security_prefix (webs_t wp, int argc, char_t ** argv, char *prefix )1577 show_security_prefix (webs_t wp, int argc, char_t ** argv, char *prefix,int primary) 1578 1578 { 1579 1579 char var[80]; … … 1597 1597 selmatch (var, "psk", "selected=\"selected\"")); 1598 1598 sprintf (sta, "%s_mode", prefix); 1599 if ( nvram_match (sta, "ap"))1599 if (!primary || nvram_match (sta, "ap")) 1600 1600 { 1601 1601 websWrite (wp, "<option value=\"wpa\" %s>WPA Enterprise</option>\n", … … 1605 1605 "<option value=\"psk2\" %s>WPA2 Personal</option>\n", 1606 1606 selmatch (var, "psk2", "selected=\"selected\"")); 1607 if ( nvram_match (sta, "ap"))1607 if (!primary || nvram_match (sta, "ap")) 1608 1608 { 1609 1609 websWrite (wp, "<option value=\"wpa2\" %s>WPA2 Enterprise</option>\n", … … 1621 1621 selmatch (var, "wep", "selected=\"selected\"")); 1622 1622 #ifdef HAVE_WPA_SUPPLICANT 1623 if ( nvram_match (sta, "sta") || nvram_match (sta, "apsta") || nvram_match (sta, "wet"))1623 if (!primary || nvram_match (sta, "sta") || nvram_match (sta, "apsta") || nvram_match (sta, "wet")) 1624 1624 { 1625 1625 websWrite (wp, "<option value=\"8021X\" %s>802.1x</option>\n", … … 1657 1657 "<legend><script type=\"text/javascript\">Capture(share.pintrface)</script> %s SSID [%s] HWAddr [%s]</legend>\n", 1658 1658 prefix, nvram_safe_get (ssid), nvram_safe_get (mac)); 1659 show_security_prefix (wp, argc, argv, prefix );1659 show_security_prefix (wp, argc, argv, prefix, 1); 1660 1660 websWrite (wp, "</fieldset>\n<br />\n"); 1661 1661 foreach (var, vifs, next) … … 1668 1668 var, nvram_get (ssid)); 1669 1669 rep (var, '.', 'X'); 1670 show_security_prefix (wp, argc, argv, var );1670 show_security_prefix (wp, argc, argv, var, 0); 1671 1671 websWrite (wp, "</fieldset>\n<br />\n"); 1672 1672 }
Note: See TracChangeset
for help on using the changeset viewer.
