From 30e5401a945ebdfd92eedb9f3def9a6acd0fc6ca Mon Sep 17 00:00:00 2001 From: mickeyl Date: Sat, 05 Apr 2003 19:29:47 +0000 Subject: - setting the monitor mode on wireless cards via private ioctls is now much more reliable because we detect the appropriate ioctl number at runtime - ONetworkInterface supports now the evil but handy feature to change MAC address on the fly (provided the driver supports this) --- (limited to 'libopie2/examples/opienet/onetworkdemo/onetworkdemo.cpp') diff --git a/libopie2/examples/opienet/onetworkdemo/onetworkdemo.cpp b/libopie2/examples/opienet/onetworkdemo/onetworkdemo.cpp index b010ac5..020fc23 100644 --- a/libopie2/examples/opienet/onetworkdemo/onetworkdemo.cpp +++ b/libopie2/examples/opienet/onetworkdemo/onetworkdemo.cpp @@ -28,12 +28,30 @@ int main( int argc, char** argv ) // try to set monitor mode + /* + // first some wrong calls to check if this is working iface->setPrivate( "seppel", 10 ); iface->setPrivate( "monitor", 0 ); // now the real deal iface->setPrivate( "monitor", 2, 2, 3 ); + + */ + + // trying to set hw address to 12:34:56:AB:CD:EF + + /* + + OMacAddress addr = OMacAddress::fromString( "12:34:56:AB:CD:EF" ); + iface->setUp( false ); + iface->setMacAddress( addr ); + iface->setUp( true ); + qDebug( "DEMO: MAC Address now is '%s'", (const char*) iface->macAddress().toString() ); + + */ + + } ++it; } -- cgit v0.9.0.2