Changeset 12130


Ignore:
Timestamp:
05/16/09 20:00:14 (4 years ago)
Author:
BrainSlayer
Message:

remove some obsolete code

Location:
src/router/rc
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • src/router/rc/Makefile

    r12071 r12130  
    88ifeq ($(CONFIG_MSSID),y) 
    99ifeq ($(CONFIG_BUFFALO),y) 
    10 CFLAGS  = -DHAVE_MSSID -I. -I$(TOP)/shared -I$(SRCBASE)/include.bcm -Wall -I$(SRCBASE)/  
     10CFLAGS  = -I. -I$(TOP)/shared -I$(SRCBASE)/include.bcm -Wall -I$(SRCBASE)/  
    1111else 
    12 CFLAGS  = -DHAVE_MSSID -I. -I$(TOP)/shared -I$(SRCBASE)/include.v24 -Wall -I$(SRCBASE)/  
     12CFLAGS  = -I. -I$(TOP)/shared -I$(SRCBASE)/include.v24 -Wall -I$(SRCBASE)/  
    1313endif 
    1414else 
  • src/router/rc/check_ps.c

    r12090 r12130  
    4444    {"dnsmasq", 1, M_LAN, "dnsmasq_enable", "1"}, 
    4545    {"dhcpfwd", 1, M_LAN, "dhcpfwd_enable", "1"}, 
    46 #ifndef HAVE_MSSID 
    47     {"nas", 1, M_LAN}, 
    48 #endif 
    4946#ifdef HAVE_NOCAT 
    5047    {"splashd", 1, M_LAN, "NC_enable", "1"}, 
     
    9087{ 
    9188#if !defined(HAVE_MADWIFI) && !defined(HAVE_RT2880) 
    92 #ifdef HAVE_MSSID 
    9389 
    9490    char buf[32]; 
     
    110106    return; 
    111107 
    112 #endif 
    113108#endif 
    114109} 
  • src/router/rc/init.c

    r12123 r12130  
    542542#ifndef HAVE_MAKSAT 
    543543#ifndef HAVE_ERC 
    544 #ifndef HAVE_MSSID 
    545 #ifdef DIST 
    546     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     else 
    551         fprintf( fp, 
    552                  "DD-WRT v23 SP3 custom (c) 2008 NewMedia-NET GmbH\nRelease: " 
    553                  BUILD_DATE " (SVN revision: %s)\n", SVN_REVISION ); 
    554 #else 
    555     fprintf( fp, 
    556              "DD-WRT v23 SP3 custom (c) 2008 NewMedia-NET GmbH\nRelease: " 
    557              BUILD_DATE " (SVN revision: %s)\n", SVN_REVISION ); 
    558 #endif 
    559 #else 
    560544#ifdef DIST 
    561545    if( strlen( DIST ) > 0 ) 
     
    574558#endif 
    575559#endif 
    576 #endif 
    577560 
    578561    fclose( fp ); 
     
    606589                cprintf( "RESET NVRAM VARS\n" ); 
    607590                nvram_set( "wl0_lazy_wds", nvram_safe_get( "wl_lazy_wds" ) ); 
    608 #ifndef HAVE_MSSID 
    609                 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 this 
    624                 // value, the 
    625                 // "restricted" is no  
    626                 // longer need. 
    627                 // (20040624 by 
    628                 // honor) 
    629 #endif 
    630591 
    631592                cprintf( "RESTART\n" ); 
     
    634595                eval( "wlconf", nvram_safe_get( "wl0_ifname" ), "down" ); 
    635596                eval( "wlconf", nvram_safe_get( "wl1_ifname" ), "down" ); 
    636 #ifdef HAVE_MSSID 
    637597                char *next; 
    638598                char var[80]; 
     
    644604                    eval( "ifconfig", var, "down" ); 
    645605                } 
    646 #endif 
    647606#endif 
    648607 
     
    712671                lcdmessage( "START SERVICES" ); 
    713672                nvram_set( "wl0_lazy_wds", nvram_safe_get( "wl_lazy_wds" ) ); 
    714 #ifndef HAVE_MSSID 
    715                 nvram_set( "wl0_akm", nvram_safe_get( "wl_akm" ) ); 
    716 #endif 
    717673                cprintf( "START\n" ); 
    718674                setenv( "PATH", 
     
    773729#endif 
    774730                    start_service( "nas" ); 
    775 #ifdef HAVE_MSSID 
    776731                start_service( "guest_nas" ); 
    777 #endif 
    778732#endif 
    779733 
  • src/router/rc/radio_timer.c

    r10749 r12130  
    2828 
    2929    // bit for midnight) 
    30 #ifdef HAVE_MSSID 
    3130    long radiotime1;            // 4 byte int number (24 bits from gui + 1 
    3231 
    3332    // bit for midnight) 
    34 #endif 
    3533 
    3634    int firsttime, needchange; 
     
    8078            // two  
    8179            // bits) 
    82 #ifdef HAVE_MSSID 
    8380            radiotime1 = strtol( nvram_get( "radio1_on_time" ), NULL, 2 );      // convert  
    8481            //  
     
    111108            // two  
    112109            // bits) 
    113 #endif 
    114110 
    115111            if( currtime->tm_min != 0 ) 
     
    128124                        break; 
    129125                } 
    130 #ifdef HAVE_MSSID 
    131126                switch ( radiotime1 ) 
    132127                { 
     
    138133                        break; 
    139134                } 
    140 #endif 
    141135            } 
    142136 
     
    172166#elif HAVE_RT2880 
    173167                        eval("iwpriv","ra0","set","RadioOn=1"); 
    174 #elif HAVE_MSSID 
     168#else 
    175169                        if( pidof( "nas" ) > 0 || pidof( "wrt-radauth" ) > 0 ) 
    176170                        { 
     
    181175                        eval( "startservice", "nas" ); 
    182176                        start_service( "guest_nas" ); 
    183 #else 
    184                         eval( "wl", "radio", "on" ); 
    185177#endif 
    186178                        break; 
     
    192184#elif HAVE_RT2880 
    193185                        eval("iwpriv","ra0","set","RadioOn=0"); 
    194 #elif HAVE_MSSID 
     186#else 
    195187                        if( pidof( "nas" ) > 0 || pidof( "wrt-radauth" ) > 0 ) 
    196188                        { 
     
    199191                        eval( "wl", "-i", get_wl_instance_name( 0 ), "radio", 
    200192                              "off" ); 
    201 #else 
    202                         eval( "wl", "radio", "off" ); 
    203193#endif 
    204194                        break; 
    205195                } 
    206 #ifdef HAVE_MSSID 
    207196                switch ( radiotime1 ) 
    208197                { 
     
    232221                        break; 
    233222                } 
    234 #endif 
    235223                needchange = 0; 
    236224                firsttime = 0; 
  • src/router/rc/resetbutton.c

    r11872 r12130  
    624624            } 
    625625                eval( "startservice", "nas" ); 
    626 #ifdef HAVE_MSSID 
    627626                eval( "startservice", "guest_nas" ); 
    628 #endif 
    629627            } 
    630628#endif 
  • src/router/rc/services.c

    r12123 r12130  
    341341#if !defined(HAVE_MADWIFI) && !defined(HAVE_RT2880) 
    342342    handle = start_service_nofree( "nas", handle ); 
    343 #ifdef HAVE_MSSID 
    344343    handle = start_service_nofree( "guest_nas", handle ); 
    345 #endif 
    346344#endif 
    347345    handle = start_service_nofree_f( "radio_timer", handle ); 
     
    534532#if !defined(HAVE_MADWIFI) && !defined(HAVE_RT2880) 
    535533    handle = start_service_nofree( "nas", handle ); 
    536 #ifdef HAVE_MSSID 
    537534    handle = start_service_nofree( "guest_nas", handle ); 
    538 #endif 
    539535#endif 
    540536    handle = start_service_nofree_f( "anchorfreednat", handle ); 
     
    588584#if !defined(HAVE_MADWIFI) && !defined(HAVE_RT2880) 
    589585    handle = start_service_nofree( "nas", handle ); 
    590 #ifdef HAVE_MSSID 
    591586    handle = start_service_nofree( "guest_nas", handle ); 
    592 #endif 
    593587#endif 
    594588    handle = start_service_nofree_f( "radio_timer", handle ); 
     
    797791    handle = stop_service_nofree( "bridging", handle ); 
    798792#endif 
    799 #ifndef HAVE_MSSID 
    800     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 #endif 
    809793#ifdef HAVE_VLANTAGGING 
    810794    handle = start_service_nofree( "bridging", handle ); 
     
    826810    handle = start_service_nofree( "wlconf", handle ); 
    827811    handle = start_service_nofree( "nas", handle ); 
    828 #ifdef HAVE_MSSID 
    829812    handle = start_service_nofree( "guest_nas", handle ); 
    830 #endif 
    831813#endif 
    832814    handle = start_service_nofree_f( "radio_timer", handle ); 
     
    873855#ifdef HAVE_VLANTAGGING 
    874856    handle = stop_service_nofree( "bridging", handle ); 
    875 #endif 
    876 #ifndef HAVE_MSSID 
    877     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 ); 
    885857#endif 
    886858#ifdef HAVE_VLANTAGGING 
     
    907879    handle = start_service_nofree( "wlconf", handle ); 
    908880    handle = start_service_nofree( "nas", handle ); 
    909 #ifdef HAVE_MSSID 
    910881    handle = start_service_nofree( "guest_nas", handle ); 
    911 #endif 
    912882#endif 
    913883    handle = start_service_nofree_f( "radio_timer", handle ); 
  • src/router/rc/wland.c

    r12095 r12130  
    477477#endif 
    478478        eval( "wl", "-i", ifname, "disassoc" ); 
    479 #ifndef HAVE_MSSID 
    480         eval( "wl", "join", nvram_safe_get( "wl_ssid" ) ); 
    481 #else 
    482479        if( nvram_match( "roaming_enable", "1" ) ) 
    483480        { 
     
    488485            eval( "wl", "-i", ifname, "join", nvram_nget( "wl%d_ssid", instance ) ); 
    489486        } 
    490 #endif 
    491487        // join(nvram_get("wl_ssid")); 
    492488        fclose( fp ); 
     
    649645#endif 
    650646 
    651 #ifndef HAVE_ACK 
    652 #ifndef HAVE_MADWIFI 
    653 #ifndef HAVE_MSSID 
    654 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, &reg, sizeof( reg ) ); 
    679         } 
    680     } 
    681  
    682 } 
    683 #endif 
    684 #endif 
    685 #endif 
    686647 
    687648/*  
     
    709670 
    710671    do_madwifi_check(  ); 
    711 #endif 
    712 #ifndef HAVE_ACK 
    713 #ifndef HAVE_MADWIFI 
    714 #ifndef HAVE_MSSID 
    715     setACK(  ); 
    716 #endif 
    717 #endif 
    718672#endif 
    719673 
Note: See TracChangeset for help on using the changeset viewer.