Diffstat (limited to 'libopie2/examples/opienet/onetworkdemo/onetworkdemo.cpp') (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 | |||
@@ -19,25 +19,43 @@ int main( int argc, char** argv ) | |||
19 | qDebug( "DEMO: '%s' seems to feature the wireless extensions.", (const char*) iface->name() ); | 19 | qDebug( "DEMO: '%s' seems to feature the wireless extensions.", (const char*) iface->name() ); |
20 | qDebug( "DEMO: Current SSID is '%s'", (const char*) iface->SSID() ); | 20 | qDebug( "DEMO: Current SSID is '%s'", (const char*) iface->SSID() ); |
21 | qDebug( "DEMO: Current NickName is '%s'", (const char*) iface->nickName() ); | 21 | qDebug( "DEMO: Current NickName is '%s'", (const char*) iface->nickName() ); |
22 | qDebug( "DEMO: Antenna is tuned to '%f', that is channel %d", iface->frequency(), iface->channel() ); | 22 | qDebug( "DEMO: Antenna is tuned to '%f', that is channel %d", iface->frequency(), iface->channel() ); |
23 | 23 | ||
24 | //if ( iface->mode() == OWirelessNetworkInterface::adhoc ) | 24 | //if ( iface->mode() == OWirelessNetworkInterface::adhoc ) |
25 | //{ | 25 | //{ |
26 | qDebug( "DEMO: Associated AP has MAC Address '%s'", (const char*) iface->associatedAP() ); | 26 | qDebug( "DEMO: Associated AP has MAC Address '%s'", (const char*) iface->associatedAP() ); |
27 | //} | 27 | //} |
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 | } |
40 | 58 | ||
41 | return 0; | 59 | return 0; |
42 | 60 | ||
43 | } | 61 | } |