summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--libopie2/examples/opienet/onetworkdemo/onetworkdemo.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/libopie2/examples/opienet/onetworkdemo/onetworkdemo.cpp b/libopie2/examples/opienet/onetworkdemo/onetworkdemo.cpp
index 6326ad0..607d8f1 100644
--- a/libopie2/examples/opienet/onetworkdemo/onetworkdemo.cpp
+++ b/libopie2/examples/opienet/onetworkdemo/onetworkdemo.cpp
@@ -37,24 +37,32 @@ int main( int argc, char** argv )
37 qDebug( "DEMO: Warning! Can't change nickname" ); 37 qDebug( "DEMO: Warning! Can't change nickname" );
38 else 38 else
39 qDebug( "DEMO: Nickname change successful." ); 39 qDebug( "DEMO: Nickname change successful." );
40 40
41 // operation mode 41 // operation mode
42 qDebug( "DEMO: Current OperationMode is '%s'", (const char*) iface->mode() ); 42 qDebug( "DEMO: Current OperationMode is '%s'", (const char*) iface->mode() );
43 iface->setMode( "adhoc" ); 43 iface->setMode( "adhoc" );
44 if ( iface->mode() != "adhoc" ) 44 if ( iface->mode() != "adhoc" )
45 qDebug( "DEMO: Warning! Can't change operation mode" ); 45 qDebug( "DEMO: Warning! Can't change operation mode" );
46 else 46 else
47 qDebug( "DEMO: Operation Mode change successful." ); 47 qDebug( "DEMO: Operation Mode change successful." );
48 48
49 // RF channel
50 qDebug( "DEMO: Current Channel is '%d'", iface->channel() );
51 iface->setChannel( 1 );
52 if ( iface->channel() != 1 )
53 qDebug( "DEMO: Warning! Can't change RF channel" );
54 else
55 qDebug( "DEMO: RF channel change successful." );
56
49 iface->setMode( "managed" ); 57 iface->setMode( "managed" );
50 58
51 /* 59 /*
52 60
53 // first some wrong calls to check if this is working 61 // first some wrong calls to check if this is working
54 iface->setPrivate( "seppel", 10 ); 62 iface->setPrivate( "seppel", 10 );
55 iface->setPrivate( "monitor", 0 ); 63 iface->setPrivate( "monitor", 0 );
56 64
57 // now the real deal 65 // now the real deal
58 iface->setPrivate( "monitor", 2, 2, 3 ); 66 iface->setPrivate( "monitor", 2, 2, 3 );
59 67
60 // trying to set hw address to 12:34:56:AB:CD:EF 68 // trying to set hw address to 12:34:56:AB:CD:EF