-rw-r--r-- | libopie2/examples/opienet/onetworkdemo/onetworkdemo.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libopie2/examples/opienet/onetworkdemo/onetworkdemo.cpp b/libopie2/examples/opienet/onetworkdemo/onetworkdemo.cpp index 607d8f1..fc2026f 100644 --- a/libopie2/examples/opienet/onetworkdemo/onetworkdemo.cpp +++ b/libopie2/examples/opienet/onetworkdemo/onetworkdemo.cpp | |||
@@ -53,12 +53,24 @@ int main( int argc, char** argv ) | |||
53 | qDebug( "DEMO: Warning! Can't change RF channel" ); | 53 | qDebug( "DEMO: Warning! Can't change RF channel" ); |
54 | else | 54 | else |
55 | qDebug( "DEMO: RF channel change successful." ); | 55 | qDebug( "DEMO: RF channel change successful." ); |
56 | 56 | ||
57 | iface->setMode( "managed" ); | 57 | iface->setMode( "managed" ); |
58 | 58 | ||
59 | // network scan | ||
60 | |||
61 | int stations = iface->scanNetwork(); | ||
62 | if ( stations != -1 ) | ||
63 | { | ||
64 | qDebug( "DEMO: # of stations around = %d", stations ); | ||
65 | } | ||
66 | else | ||
67 | { | ||
68 | qDebug( "DEMO: Warning! Scan didn't work!" ); | ||
69 | } | ||
70 | |||
59 | /* | 71 | /* |
60 | 72 | ||
61 | // first some wrong calls to check if this is working | 73 | // first some wrong calls to check if this is working |
62 | iface->setPrivate( "seppel", 10 ); | 74 | iface->setPrivate( "seppel", 10 ); |
63 | iface->setPrivate( "monitor", 0 ); | 75 | iface->setPrivate( "monitor", 0 ); |
64 | 76 | ||