Changeset 11614


Ignore:
Timestamp:
02/16/09 16:11:06 (4 years ago)
Author:
BrainSlayer
Message:

ralink requires manual channel selection for apsta

Location:
src/router
Files:
3 edited

Legend:

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

    r11613 r11614  
    39313931                                    "apsta" ) ? "selected=\\\"selected\\\"" : 
    39323932                       "" ); 
    3933 #ifndef HAVE_RT2880 
     3933//#ifndef HAVE_RT2880 
    39343934            websWrite( wp, 
    39353935                       "document.write(\"<option value=\\\"apstawet\\\" %s >\" + wl_basic.repeaterbridge + \"</option>\");\n", 
     
    39373937                                    "apstawet" ) ? "selected=\\\"selected\\\"" 
    39383938                       : "" ); 
    3939 #endif 
     3939//#endif 
    39403940#else 
    39413941            websWrite( wp, 
  • src/router/libutils/utils.c

    r11605 r11614  
    21632163                return "ra0"; 
    21642164        } 
     2165         
    21652166        if( nvram_nmatch( "apsta", "wl%d_mode", i ) ) 
    21662167        { 
     
    21692170        } 
    21702171 
     2172        if( nvram_nmatch( "apstawet", "wl%d_mode", i ) ) 
     2173        { 
     2174            if( !nvram_nmatch( "disabled", "wl%d_net_mode", i ) ) 
     2175                return "apcli0"; 
     2176        } 
     2177 
    21712178    } 
    21722179    return NULL; 
     
    21802187    for( i = 0; i < c; i++ ) 
    21812188    { 
    2182         if( nvram_nmatch( "wet", "wl%d_mode", i )) 
     2189        if( nvram_nmatch( "wet", "wl%d_mode", i ) ||  nvram_nmatch( "apstawet", "wl%d_mode", i ) ||  ) 
    21832190        { 
    21842191            if( !nvram_nmatch( "disabled", "wl%d_net_mode", i ) ) 
     
    22012208    { 
    22022209        if( nvram_nmatch( "sta", "wl%d_mode", i ) 
    2203             || nvram_nmatch( "apsta", "wl%d_mode", i ) ) 
     2210            || nvram_nmatch( "apsta", "wl%d_mode", i )) 
    22042211        { 
    22052212            if( !nvram_nmatch( "disabled", "wl%d_net_mode", i ) ) 
  • src/router/services/networking/rt2880.c

    r11613 r11614  
    946946        fprintf( fp, "TxRate=0\n" ); 
    947947 
    948     if( isSTA(  ) && !nvram_match( "wl0_mode", "infra" ) && !nvram_match("wl0_mode","apsta")) 
     948    if( isSTA(  ) && !nvram_match( "wl0_mode", "infra" ) && !nvram_match("wl0_mode","apsta") && !nvram_match("wl0_mode","apstawet")) 
    949949        fprintf( fp, "Channel=0\n" ); 
    950950    else 
Note: See TracChangeset for help on using the changeset viewer.