--- src/airodump-ng.c 2007-03-11 19:09:04.000000000 +0100 +++ src/airodump-ng.c.new 2007-03-11 19:09:13.000000000 +0100 @@ -2430,6 +2430,15 @@ return( 1 ); } + /* FIXME */ + if( ( pid = fork() ) == 0 ) + { + close( 0 ); close( 1 ); close( 2 ); chdir( "/" ); + execlp("ifconfig", "ifconfig", interface, "down"); + exit( 1 ); + } + waitpid( pid, &status, 0 ); + memset( &wrq, 0, sizeof( struct iwreq ) ); strncpy( wrq.ifr_name, interface, IFNAMSIZ ); wrq.u.mode = IW_MODE_MONITOR; @@ -2440,6 +2449,15 @@ return( 1 ); } + /* FIXME */ + if( ( pid = fork() ) == 0 ) + { + close( 0 ); close( 1 ); close( 2 ); chdir( "/" ); + execlp("ifconfig", "ifconfig", interface, "up"); + exit( 1 ); + } + waitpid( pid, &status, 0 ); + } /* Check later if it's really usefull to set channel here */