Diffstat (limited to 'libopie2/examples/opienet/onetworkdemo') (more/less context) (ignore 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 | |||
@@ -28,12 +28,30 @@ int main( int argc, char** argv ) | |||
28 | 28 | ||
29 | // try to set monitor mode | 29 | // try to set monitor mode |
30 | 30 | ||
31 | /* | ||
32 | |||
31 | // first some wrong calls to check if this is working | 33 | // first some wrong calls to check if this is working |
32 | iface->setPrivate( "seppel", 10 ); | 34 | iface->setPrivate( "seppel", 10 ); |
33 | iface->setPrivate( "monitor", 0 ); | 35 | iface->setPrivate( "monitor", 0 ); |
34 | 36 | ||
35 | // now the real deal | 37 | // now the real deal |
36 | iface->setPrivate( "monitor", 2, 2, 3 ); | 38 | iface->setPrivate( "monitor", 2, 2, 3 ); |
39 | |||
40 | */ | ||
41 | |||
42 | // trying to set hw address to 12:34:56:AB:CD:EF | ||
43 | |||
44 | /* | ||
45 | |||
46 | OMacAddress addr = OMacAddress::fromString( "12:34:56:AB:CD:EF" ); | ||
47 | iface->setUp( false ); | ||
48 | iface->setMacAddress( addr ); | ||
49 | iface->setUp( true ); | ||
50 | qDebug( "DEMO: MAC Address now is '%s'", (const char*) iface->macAddress().toString() ); | ||
51 | |||
52 | */ | ||
53 | |||
54 | |||
37 | } | 55 | } |
38 | ++it; | 56 | ++it; |
39 | } | 57 | } |