Changeset 9177


Ignore:
Timestamp:
03/01/08 13:39:34 (5 years ago)
Author:
eko
Message:

radio on/ off adjustments (please note that radio off can take few seconds to turn off, because nas must stop first - slow process)

Location:
src/router/rc
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • src/router/rc/radio_timer.c

    r9168 r9177  
    101101                  eval ("wl", "-i", get_wl_instance_name(0), "radio", "on"); 
    102102                  start_service ("nas"); 
     103              start_service ("guest_nas"); 
    103104#else 
    104105                  eval ("wl", "radio", "on"); 
  • src/router/rc/rc.c

    r9176 r9177  
    461461      && nvram_match ("radiooff_boot_off", "1")) 
    462462      { 
     463        sleep (2); 
    463464        stop_service ("nas");  
    464465    eval ("wl", "-i", get_wl_instance_name (0), "radio", "off"); 
  • src/router/rc/resetbutton.c

    r9168 r9177  
    464464      if (ses_mode == 1) 
    465465        { 
     466          led_control (LED_SES, LED_FLASH);     //when pressed, blink white SES (AOSS) led 
    466467#ifdef HAVE_RADIOOFF 
    467468          if (nvram_match ("radiooff_button", "1")) 
    468469            { 
    469                   stop_service ("nas"); 
     470#ifndef HAVE_BUFFALO 
     471              syslog (LOG_DEBUG, 
     472                      "SES / AOSS / EZ-setup button: turning radio on\n"); 
     473#else 
     474              syslog (LOG_DEBUG, "AOSS button: turning radio on\n"); 
     475#endif 
    470476                  eval ("wl", "-i", get_wl_instance_name(0), "radio", "on"); 
    471477                  start_service ("nas"); 
    472 #ifndef HAVE_BUFFALO 
    473               syslog (LOG_DEBUG, 
    474                       "SES /AOSS /EZ-setup button: turning radio on\n"); 
    475 #else 
    476               syslog (LOG_DEBUG, "AOSS button: turning radio on\n"); 
     478#ifdef HAVE_MSSID 
     479              start_service ("guest_nas"); 
    477480#endif 
    478481            } 
    479482#endif 
    480483 
    481 //              led_control (LED_SES, LED_OFF);          
    482 //              led_control (LED_SES2, LED_ON);         //enable orange led 
    483           led_control (LED_SES, LED_FLASH);     //when pressed, blink white SES (AOSS) led 
    484  
    485 //      switch (brand) 
    486 //              { 
    487 //              case ROUTER_WRT54G: 
    488 //              case ROUTER_WRTSL54GS:  
    489 //                      ses_mode = 2; 
    490 //              break; 
    491 //              default: 
     484 
    492485          ses_mode = 0; 
    493 //              } 
    494486 
    495487        } 
    496488      else if (ses_mode == 0) 
    497489        { 
     490          led_control (LED_SES, LED_FLASH);     //when pressed, blink SES (AOSS) led 
    498491#ifdef HAVE_RADIOOFF 
    499492          if (nvram_match ("radiooff_button", "1")) 
    500493            { 
     494#ifndef HAVE_BUFFALO 
     495              syslog (LOG_DEBUG, 
     496                      "SES / AOSS / EZ-setup button: turning radio off\n"); 
     497#else 
     498              syslog (LOG_DEBUG, "AOSS button: turning radio off\n"); 
     499#endif 
    501500                  stop_service ("nas"); 
    502501                  eval ("wl", "-i", get_wl_instance_name(0), "radio", "off"); 
    503 #ifndef HAVE_BUFFALO 
    504               syslog (LOG_DEBUG, 
    505                       "SES /AOSS /EZ-setup button: turning radio off\n"); 
    506 #else 
    507               syslog (LOG_DEBUG, "AOSS button: turning radio off\n"); 
    508 #endif 
    509502            } 
    510503#endif 
    511 //              led_control (LED_SES, LED_ON);          //enable white led 
    512 //              led_control (LED_SES2, LED_OFF); 
    513           led_control (LED_SES, LED_FLASH);     //when pressed, blink white SES (AOSS) led 
    514504 
    515505          ses_mode = 1; 
Note: See TracChangeset for help on using the changeset viewer.