Changeset 12091


Ignore:
Timestamp:
05/11/09 14:45:36 (4 years ago)
Author:
eko
Message:

allow to run sta/apsta on 2nd radio / not yet fully finished

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/router/services/networking/network.c

    r12087 r12091  
    15101510 
    15111511    // If running in client-mode, remove old WAN-configuration 
    1512     if( nvram_match( "wl0_mode", "sta" ) 
    1513         || nvram_match( "wl0_mode", "apsta" ) ) 
     1512    if( getSTA( ) ) 
    15141513    { 
    15151514        // #ifdef HAVE_SKYTRON 
     
    15761575    start_config_macs( wl_face ); 
    15771576#endif 
    1578     if( nvram_match( "wl_mode", "sta" ) || nvram_match( "wl_mode", "apsta" ) ) 
     1577    if( getSTA( ) ) 
    15791578    { 
    15801579        unsigned char mac[20]; 
     
    24222421        return 1; 
    24232422 
    2424     if( nvram_match( "wl_mode", "sta" ) || nvram_match( "wl_mode", "apsta" ) ) 
    2425     { 
    2426         return nvram_match( "wl0_ifname", ifname ); 
    2427     } 
     2423        if( getSTA( ) && !strcmp( getSTA( ), ifname ) ) 
     2424        return 1; 
     2425 
    24282426    return 0; 
    24292427} 
Note: See TracChangeset for help on using the changeset viewer.