Changeset 12057


Ignore:
Timestamp:
05/07/09 17:30:11 (4 years ago)
Author:
eko
Message:

fixes WDS table for dual radio (if both radios run WDS)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/router/httpd/visuals/dd-wrt.c

    r12050 r12057  
    63816381 
    63826382#define WDS_RSSI_TMP    "/tmp/.rssi" 
    6383 void ej_active_wds_instance( webs_t wp, int argc, char_t ** argv, 
    6384                              int instance ); 
     6383int ej_active_wds_instance( webs_t wp, int argc, char_t ** argv, 
     6384                             int instance, int cnt ); 
    63856385void ej_active_wds( webs_t wp, int argc, char_t ** argv ) 
    63866386{ 
    6387     int cnt = get_wl_instances(  ); 
    6388     int c; 
    6389  
    6390     for( c = 0; c < cnt; c++ ) 
    6391         ej_active_wds_instance( wp, argc, argv, c ); 
    6392 } 
    6393  
    6394 void 
    6395 ej_active_wds_instance( webs_t wp, int argc, char_t ** argv, int instance ) 
     6387    int cnt = 0; 
     6388    int c = get_wl_instances(  ); 
     6389    int i; 
     6390 
     6391    for( i = 0; i < c; i++ ) 
     6392    { 
     6393        cnt = ej_active_wds_instance( wp, argc, argv, i, cnt); 
     6394    } 
     6395} 
     6396 
     6397int 
     6398ej_active_wds_instance( webs_t wp, int argc, char_t ** argv, int instance, int cnt ) 
    63966399{ 
    63976400#if !defined(HAVE_MADWIFI) && !defined(HAVE_RT2880) 
     
    64056408    char wdsvar[30]; 
    64066409    char desc[30]; 
    6407     int cnt = 0; 
    64086410    int macmask; 
    64096411 
     
    64116413    { 
    64126414        websError( wp, 400, "Insufficient args\n" ); 
    6413         return; 
     6415        return cnt; 
    64146416    } 
    64156417 
     
    64206422    if( strcmp( mode, "ap" ) && strcmp( mode, "apsta" ) 
    64216423        && strcmp( mode, "apstawet" ) ) 
    6422         return; 
     6424        return cnt; 
    64236425    unsigned char buf[WLC_IOCTL_MAXLEN]; 
    64246426    char *iface = get_wl_instance_name( instance ); 
    64256427 
    64266428    if( !ifexists( iface ) ) 
    6427         return; 
     6429        return cnt; 
    64286430    int r = getwdslist( iface, buf ); 
    64296431 
    64306432    if( r < 0 ) 
    6431         return; 
     6433        return cnt; 
    64326434    struct maclist *maclist = ( struct maclist * )buf; 
    64336435    int e; 
     
    64866488    unlink( WDS_RSSI_TMP ); 
    64876489#endif 
    6488     return; 
     6490    return cnt; 
    64896491} 
    64906492 
Note: See TracChangeset for help on using the changeset viewer.