Changeset 17792
- Timestamp:
- 10/19/11 15:48:59 (19 months ago)
- Location:
- src/router
- Files:
-
- 5 edited
-
httpd/visuals/ejwps.c (modified) (1 diff)
-
kromo/dd-wrt/AOSS.asp (modified) (1 diff)
-
kromo/dd-wrt/AOSS.live.asp (modified) (1 diff)
-
kromo/dd-wrt/lang_pack/english.js (modified) (1 diff)
-
services/networking/madwifi.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/router/httpd/visuals/ejwps.c
r16596 r17792 30 30 return; 31 31 } 32 33 void ej_get_wpsconfigure(webs_t wp, int argc, char_t ** argv) { 34 if (nvram_match("wps_status", "0")) 35 websWrite(wp, "<input class=\"button\" type=\"button\" value=\"%s\" onclick=\"to_configure(this.form);\" />", live_translate("aoss.configure")); 36 else 37 websWrite(wp, "<input class=\"button\" type=\"button\" value=\"%s\" onclick=\"to_forcerelease(this.form);\" />", live_translate("aoss.release")); 38 } 32 39 #endif -
src/router/kromo/dd-wrt/AOSS.asp
r17791 r17792 264 264 <div class="label"><% tran("aoss.wpsstatus"); %></div> 265 265 <span id="wpsstatus"><% get_wpsstatus(); %></span> 266 <script type="text/javascript"> 267 //<![CDATA[ 268 if(!parseInt(<% nvram_get("wps_status"); %>)) 269 document.write("<input class=\"button\" type=\"button\" value=\"" + aoss.configure + "\" onclick=\"to_configure(this.form);\" />"); 270 else 271 document.write("<input class=\"button\" type=\"button\" value=\"" + aoss.release + "\" onclick=\"to_forcerelease(this.form);\" />"); 272 //]]> 273 </script> 266 <span id="wpsconfigure"><% get_wpsconfigure(); %></span> 274 267 </div> 275 268 </fieldset> -
src/router/kromo/dd-wrt/AOSS.live.asp
r16594 r17792 2 2 {uptime::<% get_uptime(); %>} 3 3 {ipinfo::<% show_wanipinfo(); %>} 4 {wpsconfigure::<% get_wpsconfigure(); %>} -
src/router/kromo/dd-wrt/lang_pack/english.js
r17790 r17792 1858 1858 aoss.wpsgenerate="Generate PIN"; 1859 1859 aoss.pinnotvalid="Invalid PIN, checksum not correct!"; 1860 aoss.wpsenable="WPS Button";1860 aoss.wpsenable="WPS Push Button"; 1861 1861 aoss.wpsstatus="WPS Status"; 1862 1862 aoss.externalregistrar="External Registrar"; -
src/router/services/networking/madwifi.c
r17791 r17792 755 755 { 756 756 #ifdef HAVE_WPS 757 char *config_methods = safe_malloc(sizeof("label display keypad") + 1); 758 memset(config_methods, 0, strlen(config_methods)); 759 strcpy(config_methods, "label display keypad"); 757 760 fprintf(fp, "ctrl_interface=/var/run/hostapd\n"); // for cli 758 761 if (!strcmp(prefix, "ath0") 759 762 || !strcmp(prefix, "ath1")) { 760 763 fprintf(fp, "eap_server=1\n"); 761 764 if (nvram_match("wps_enabled", "1")) { 765 config_methods = (char *)realloc(config_methods, strlen(config_methods) + sizeof(" push_button") + 1); 766 strcat(config_methods, " push_button"); 767 } 762 768 //# WPS configuration (AP configured, do not allow external WPS Registrars) 763 769 if (nvram_match("wps_forcerelease", "1")) { … … 812 818 fprintf(fp, "os_version=01020300\n"); 813 819 fprintf(fp, "friendly_name=DD-WRT WPS Access Point\n"); 814 fprintf(fp, 815 "config_methods=label display push_button keypad\n"); 816 } 820 fprintf(fp, "config_methods=%s\n", config_methods); 821 // "config_methods=label display push_button keypad\n"); 822 } 823 free(config_methods); 817 824 #endif 818 825
Note: See TracChangeset
for help on using the changeset viewer.
