Changeset 12130
- Timestamp:
- 05/16/09 20:00:14 (4 years ago)
- Location:
- src/router/rc
- Files:
-
- 7 edited
-
Makefile (modified) (1 diff)
-
check_ps.c (modified) (3 diffs)
-
init.c (modified) (7 diffs)
-
radio_timer.c (modified) (10 diffs)
-
resetbutton.c (modified) (1 diff)
-
services.c (modified) (7 diffs)
-
wland.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/router/rc/Makefile
r12071 r12130 8 8 ifeq ($(CONFIG_MSSID),y) 9 9 ifeq ($(CONFIG_BUFFALO),y) 10 CFLAGS = - DHAVE_MSSID -I. -I$(TOP)/shared -I$(SRCBASE)/include.bcm -Wall -I$(SRCBASE)/10 CFLAGS = -I. -I$(TOP)/shared -I$(SRCBASE)/include.bcm -Wall -I$(SRCBASE)/ 11 11 else 12 CFLAGS = - DHAVE_MSSID -I. -I$(TOP)/shared -I$(SRCBASE)/include.v24 -Wall -I$(SRCBASE)/12 CFLAGS = -I. -I$(TOP)/shared -I$(SRCBASE)/include.v24 -Wall -I$(SRCBASE)/ 13 13 endif 14 14 else -
src/router/rc/check_ps.c
r12090 r12130 44 44 {"dnsmasq", 1, M_LAN, "dnsmasq_enable", "1"}, 45 45 {"dhcpfwd", 1, M_LAN, "dhcpfwd_enable", "1"}, 46 #ifndef HAVE_MSSID47 {"nas", 1, M_LAN},48 #endif49 46 #ifdef HAVE_NOCAT 50 47 {"splashd", 1, M_LAN, "NC_enable", "1"}, … … 90 87 { 91 88 #if !defined(HAVE_MADWIFI) && !defined(HAVE_RT2880) 92 #ifdef HAVE_MSSID93 89 94 90 char buf[32]; … … 110 106 return; 111 107 112 #endif113 108 #endif 114 109 } -
src/router/rc/init.c
r12123 r12130 542 542 #ifndef HAVE_MAKSAT 543 543 #ifndef HAVE_ERC 544 #ifndef HAVE_MSSID545 #ifdef DIST546 if( strlen( DIST ) > 0 )547 fprintf( fp,548 "DD-WRT v23 SP3 %s (c) 2008 NewMedia-NET GmbH\nRelease: "549 BUILD_DATE " (SVN revision: %s)\n", DIST, SVN_REVISION );550 else551 fprintf( fp,552 "DD-WRT v23 SP3 custom (c) 2008 NewMedia-NET GmbH\nRelease: "553 BUILD_DATE " (SVN revision: %s)\n", SVN_REVISION );554 #else555 fprintf( fp,556 "DD-WRT v23 SP3 custom (c) 2008 NewMedia-NET GmbH\nRelease: "557 BUILD_DATE " (SVN revision: %s)\n", SVN_REVISION );558 #endif559 #else560 544 #ifdef DIST 561 545 if( strlen( DIST ) > 0 ) … … 574 558 #endif 575 559 #endif 576 #endif577 560 578 561 fclose( fp ); … … 606 589 cprintf( "RESET NVRAM VARS\n" ); 607 590 nvram_set( "wl0_lazy_wds", nvram_safe_get( "wl_lazy_wds" ) ); 608 #ifndef HAVE_MSSID609 nvram_set( "wl0_akm", nvram_safe_get( "wl_akm" ) );610 if( nvram_match( "wl_wep", "tkip" ) )611 {612 nvram_set( "wl_crypto", "tkip" );613 }614 else if( nvram_match( "wl_wep", "aes" ) )615 {616 nvram_set( "wl_crypto", "aes" );617 }618 else if( nvram_match( "wl_wep", "tkip+aes" ) )619 {620 nvram_set( "wl_crypto", "tkip+aes" );621 }622 if( nvram_match( "wl_wep", "restricted" ) )623 nvram_set( "wl_wep", "enabled" ); // the nas need this624 // value, the625 // "restricted" is no626 // longer need.627 // (20040624 by628 // honor)629 #endif630 591 631 592 cprintf( "RESTART\n" ); … … 634 595 eval( "wlconf", nvram_safe_get( "wl0_ifname" ), "down" ); 635 596 eval( "wlconf", nvram_safe_get( "wl1_ifname" ), "down" ); 636 #ifdef HAVE_MSSID637 597 char *next; 638 598 char var[80]; … … 644 604 eval( "ifconfig", var, "down" ); 645 605 } 646 #endif647 606 #endif 648 607 … … 712 671 lcdmessage( "START SERVICES" ); 713 672 nvram_set( "wl0_lazy_wds", nvram_safe_get( "wl_lazy_wds" ) ); 714 #ifndef HAVE_MSSID715 nvram_set( "wl0_akm", nvram_safe_get( "wl_akm" ) );716 #endif717 673 cprintf( "START\n" ); 718 674 setenv( "PATH", … … 773 729 #endif 774 730 start_service( "nas" ); 775 #ifdef HAVE_MSSID776 731 start_service( "guest_nas" ); 777 #endif778 732 #endif 779 733 -
src/router/rc/radio_timer.c
r10749 r12130 28 28 29 29 // bit for midnight) 30 #ifdef HAVE_MSSID31 30 long radiotime1; // 4 byte int number (24 bits from gui + 1 32 31 33 32 // bit for midnight) 34 #endif35 33 36 34 int firsttime, needchange; … … 80 78 // two 81 79 // bits) 82 #ifdef HAVE_MSSID83 80 radiotime1 = strtol( nvram_get( "radio1_on_time" ), NULL, 2 ); // convert 84 81 // … … 111 108 // two 112 109 // bits) 113 #endif114 110 115 111 if( currtime->tm_min != 0 ) … … 128 124 break; 129 125 } 130 #ifdef HAVE_MSSID131 126 switch ( radiotime1 ) 132 127 { … … 138 133 break; 139 134 } 140 #endif141 135 } 142 136 … … 172 166 #elif HAVE_RT2880 173 167 eval("iwpriv","ra0","set","RadioOn=1"); 174 #el if HAVE_MSSID168 #else 175 169 if( pidof( "nas" ) > 0 || pidof( "wrt-radauth" ) > 0 ) 176 170 { … … 181 175 eval( "startservice", "nas" ); 182 176 start_service( "guest_nas" ); 183 #else184 eval( "wl", "radio", "on" );185 177 #endif 186 178 break; … … 192 184 #elif HAVE_RT2880 193 185 eval("iwpriv","ra0","set","RadioOn=0"); 194 #el if HAVE_MSSID186 #else 195 187 if( pidof( "nas" ) > 0 || pidof( "wrt-radauth" ) > 0 ) 196 188 { … … 199 191 eval( "wl", "-i", get_wl_instance_name( 0 ), "radio", 200 192 "off" ); 201 #else202 eval( "wl", "radio", "off" );203 193 #endif 204 194 break; 205 195 } 206 #ifdef HAVE_MSSID207 196 switch ( radiotime1 ) 208 197 { … … 232 221 break; 233 222 } 234 #endif235 223 needchange = 0; 236 224 firsttime = 0; -
src/router/rc/resetbutton.c
r11872 r12130 624 624 } 625 625 eval( "startservice", "nas" ); 626 #ifdef HAVE_MSSID627 626 eval( "startservice", "guest_nas" ); 628 #endif629 627 } 630 628 #endif -
src/router/rc/services.c
r12123 r12130 341 341 #if !defined(HAVE_MADWIFI) && !defined(HAVE_RT2880) 342 342 handle = start_service_nofree( "nas", handle ); 343 #ifdef HAVE_MSSID344 343 handle = start_service_nofree( "guest_nas", handle ); 345 #endif346 344 #endif 347 345 handle = start_service_nofree_f( "radio_timer", handle ); … … 534 532 #if !defined(HAVE_MADWIFI) && !defined(HAVE_RT2880) 535 533 handle = start_service_nofree( "nas", handle ); 536 #ifdef HAVE_MSSID537 534 handle = start_service_nofree( "guest_nas", handle ); 538 #endif539 535 #endif 540 536 handle = start_service_nofree_f( "anchorfreednat", handle ); … … 588 584 #if !defined(HAVE_MADWIFI) && !defined(HAVE_RT2880) 589 585 handle = start_service_nofree( "nas", handle ); 590 #ifdef HAVE_MSSID591 586 handle = start_service_nofree( "guest_nas", handle ); 592 #endif593 587 #endif 594 588 handle = start_service_nofree_f( "radio_timer", handle ); … … 797 791 handle = stop_service_nofree( "bridging", handle ); 798 792 #endif 799 #ifndef HAVE_MSSID800 if( nvram_match( "wl_akm", "wpa" ) ||801 nvram_match( "wl_akm", "psk" ) ||802 nvram_match( "wl_akm", "psk2" ) ||803 nvram_match( "wl_akm", "wpa2" ) ||804 nvram_match( "wl_akm", "psk psk2" ) ||805 nvram_match( "wl_akm", "wpa wpa2" )806 || nvram_match( "wl_akm", "radius" ) )807 sleep( 4 );808 #endif809 793 #ifdef HAVE_VLANTAGGING 810 794 handle = start_service_nofree( "bridging", handle ); … … 826 810 handle = start_service_nofree( "wlconf", handle ); 827 811 handle = start_service_nofree( "nas", handle ); 828 #ifdef HAVE_MSSID829 812 handle = start_service_nofree( "guest_nas", handle ); 830 #endif831 813 #endif 832 814 handle = start_service_nofree_f( "radio_timer", handle ); … … 873 855 #ifdef HAVE_VLANTAGGING 874 856 handle = stop_service_nofree( "bridging", handle ); 875 #endif876 #ifndef HAVE_MSSID877 if( nvram_match( "wl_akm", "wpa" ) ||878 nvram_match( "wl_akm", "psk" ) ||879 nvram_match( "wl_akm", "psk2" ) ||880 nvram_match( "wl_akm", "wpa2" ) ||881 nvram_match( "wl_akm", "psk psk2" ) ||882 nvram_match( "wl_akm", "wpa wpa2" )883 || nvram_match( "wl_akm", "radius" ) )884 sleep( 4 );885 857 #endif 886 858 #ifdef HAVE_VLANTAGGING … … 907 879 handle = start_service_nofree( "wlconf", handle ); 908 880 handle = start_service_nofree( "nas", handle ); 909 #ifdef HAVE_MSSID910 881 handle = start_service_nofree( "guest_nas", handle ); 911 #endif912 882 #endif 913 883 handle = start_service_nofree_f( "radio_timer", handle ); -
src/router/rc/wland.c
r12095 r12130 477 477 #endif 478 478 eval( "wl", "-i", ifname, "disassoc" ); 479 #ifndef HAVE_MSSID480 eval( "wl", "join", nvram_safe_get( "wl_ssid" ) );481 #else482 479 if( nvram_match( "roaming_enable", "1" ) ) 483 480 { … … 488 485 eval( "wl", "-i", ifname, "join", nvram_nget( "wl%d_ssid", instance ) ); 489 486 } 490 #endif491 487 // join(nvram_get("wl_ssid")); 492 488 fclose( fp ); … … 649 645 #endif 650 646 651 #ifndef HAVE_ACK652 #ifndef HAVE_MADWIFI653 #ifndef HAVE_MSSID654 static void setACK( void )655 {656 char *v;657 char *name = get_wdev( );658 659 if( ( v = nvram_get( "wl0_distance" ) ) )660 {661 662 rw_reg_t reg;663 uint32 shm;664 665 int val = atoi( v );666 667 if( val != 0 )668 {669 val = 9 + ( val / 150 ) + ( ( val % 150 ) ? 1 : 0 );670 671 shm = 0x10;672 shm |= ( val << 16 );673 WL_IOCTL( name, 197, &shm, sizeof( shm ) );674 675 reg.byteoff = 0x684;676 reg.val = val + 510;677 reg.size = 2;678 WL_IOCTL( name, 102, ®, sizeof( reg ) );679 }680 }681 682 }683 #endif684 #endif685 #endif686 647 687 648 /* … … 709 670 710 671 do_madwifi_check( ); 711 #endif712 #ifndef HAVE_ACK713 #ifndef HAVE_MADWIFI714 #ifndef HAVE_MSSID715 setACK( );716 #endif717 #endif718 672 #endif 719 673
Note: See TracChangeset
for help on using the changeset viewer.
