summaryrefslogtreecommitdiff
path: root/libopie2/examples/opienet
authormickeyl <mickeyl>2003-10-11 23:54:03 (UTC)
committer mickeyl <mickeyl>2003-10-11 23:54:03 (UTC)
commita8fe3ba1544ca2a2ad2559e3094acbb284cc7783 (patch) (unidiff)
treeef60fa83b396d16580f5ce7ab2b5c147fbceeabf /libopie2/examples/opienet
parente6273e146d3ef3f9387fbc3b6a214f9b3d08221e (diff)
downloadopie-a8fe3ba1544ca2a2ad2559e3094acbb284cc7783.zip
opie-a8fe3ba1544ca2a2ad2559e3094acbb284cc7783.tar.gz
opie-a8fe3ba1544ca2a2ad2559e3094acbb284cc7783.tar.bz2
add scanning skeleton (wip)
Diffstat (limited to 'libopie2/examples/opienet') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie2/examples/opienet/onetworkdemo/onetworkdemo.cpp12
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
@@ -56,6 +56,18 @@ int main( int argc, char** argv )
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