Ignore:
Timestamp:
10/19/10 17:59:01 (3 years ago)
Author:
eko
Message:

cleanup fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/router/services/services/wpa.c

    r15475 r15476  
    155155void start_nas_single(char *type, char *prefix); 
    156156 
     157 
     158 
    157159static void convert_wds(int instance) 
    158160{ 
     
    515517                FILE *fp = { 0 }; 
    516518                if (!strcmp(mode, "-S")) { 
     519 
    517520                        char **argv; 
    518521 
     
    544547                        } 
    545548                        _evalpid(argv, NULL, 0, &pid); 
     549 
    546550                } else { 
    547551                        if (!strcmp(auth_mode, "2") 
    548552                            || !strcmp(auth_mode, "64") 
    549553                            || !strcmp(auth_mode, "66")) { 
     554 
    550555                                if (nvram_nmatch("0", "%s_bridged", iface)) { 
    551556                                        char *argv[] = { "nas", "-P", pidfile, 
     
    585590                                        _evalpid(argv, NULL, 0, &pid); 
    586591                                } 
     592 
    587593                        } else if (!strcmp(auth_mode, "32")) { 
    588594                                int idx = atoi(nvram_safe_get(index)); 
     
    590596 
    591597                                sprintf(wepkey, "%s_key%d", prefix, idx); 
     598 
    592599                                if (nvram_nmatch("0", "%s_bridged", iface)) { 
    593600                                        char *argv[] = { "nas", "-P", pidfile, 
     
    633640 
    634641                                } 
     642 
    635643                        } else { 
     644                                if (nvram_nmatch("0", "%s_bridged", iface)) { 
    636645                                        char *argv[] = { "nas", "-P", pidfile, 
    637646                                                "-H", "34954", "-i", 
     
    662671                                        _evalpid(argv, NULL, 0, &pid); 
    663672                                } 
     673 
    664674                        } 
    665675 
Note: See TracChangeset for help on using the changeset viewer.