Changeset 12057
- Timestamp:
- 05/07/09 17:30:11 (4 years ago)
- File:
-
- 1 edited
-
src/router/httpd/visuals/dd-wrt.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/router/httpd/visuals/dd-wrt.c
r12050 r12057 6381 6381 6382 6382 #define WDS_RSSI_TMP "/tmp/.rssi" 6383 voidej_active_wds_instance( webs_t wp, int argc, char_t ** argv,6384 int instance );6383 int ej_active_wds_instance( webs_t wp, int argc, char_t ** argv, 6384 int instance, int cnt ); 6385 6385 void ej_active_wds( webs_t wp, int argc, char_t ** argv ) 6386 6386 { 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 6397 int 6398 ej_active_wds_instance( webs_t wp, int argc, char_t ** argv, int instance, int cnt ) 6396 6399 { 6397 6400 #if !defined(HAVE_MADWIFI) && !defined(HAVE_RT2880) … … 6405 6408 char wdsvar[30]; 6406 6409 char desc[30]; 6407 int cnt = 0;6408 6410 int macmask; 6409 6411 … … 6411 6413 { 6412 6414 websError( wp, 400, "Insufficient args\n" ); 6413 return ;6415 return cnt; 6414 6416 } 6415 6417 … … 6420 6422 if( strcmp( mode, "ap" ) && strcmp( mode, "apsta" ) 6421 6423 && strcmp( mode, "apstawet" ) ) 6422 return ;6424 return cnt; 6423 6425 unsigned char buf[WLC_IOCTL_MAXLEN]; 6424 6426 char *iface = get_wl_instance_name( instance ); 6425 6427 6426 6428 if( !ifexists( iface ) ) 6427 return ;6429 return cnt; 6428 6430 int r = getwdslist( iface, buf ); 6429 6431 6430 6432 if( r < 0 ) 6431 return ;6433 return cnt; 6432 6434 struct maclist *maclist = ( struct maclist * )buf; 6433 6435 int e; … … 6486 6488 unlink( WDS_RSSI_TMP ); 6487 6489 #endif 6488 return ;6490 return cnt; 6489 6491 } 6490 6492
Note: See TracChangeset
for help on using the changeset viewer.
