Show
Ignore:
Timestamp:
07/03/2009 06:54:03 PM (9 months ago)
Author:
BrainSlayer
Message:

cpe only mode

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/router/services/networking/madwifi.c

    r12308 r12436  
    966966        sprintf(wifivifs, "ath%d_vifs", count); 
    967967        sprintf(wl, "ath%d_mode", count); 
     968#ifdef HAVE_REGISTER 
     969int cpeonly = iscpe(); 
     970#else 
     971int cpeonly=0; 
     972#endif 
     973        if (cpeonly && nvram_match(wl,"ap")) 
     974            { 
     975            nvram_set(wl,"sta"); 
     976            } 
    968977        sprintf(channel, "ath%d_channel", count); 
    969978        sprintf(power, "ath%d_txpwrdbm", count);