Changeset 4623


Ignore:
Timestamp:
2006-08-22T13:59:30+02:00 (11 years ago)
Author:
nbd
Message:

disable watchdog functionality (except for distance) in ad-hoc mode (fixes #373)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/whiterussian/openwrt/package/wificonf/wificonf.c

    r3917 r4623  
    282282        FILE *f; 
    283283        unsigned char buf[8192], wdslist[8192], wbuf[80], *v, *p, *next, *tmp; 
    284         int i, j, wds = 0, c = 0, restart_wds = 0, wdstimeout = 0; 
     284        int i, j, wds = 0, c = 0, restart_wds = 0, wdstimeout = 0, infra; 
    285285 
    286286        if (fork()) 
     
    290290        fprintf(f, "%d\n", getpid()); 
    291291        fclose(f); 
     292 
     293        infra = strtol(nvram_safe_get(wl_var("infra")), NULL, 0); 
    292294         
    293295        v = nvram_safe_get(wl_var("wds")); 
     
    314316                else 
    315317                        c = 0; 
     318 
     319                if (infra != 1) 
     320                        continue; 
    316321 
    317322                if (nvram_match(wl_var("mode"), "sta") || 
Note: See TracChangeset for help on using the changeset viewer.