Diffstat (limited to 'libopie2/examples/opienet/onetworkdemo') (more/less context) (show whitespace changes)
-rw-r--r-- | libopie2/examples/opienet/onetworkdemo/onetworkdemo.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
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 @@ -29,4 +29,6 @@ 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 ); @@ -35,4 +37,20 @@ int main( int argc, char** argv ) // 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; |