Diffstat (limited to 'libopie2/examples/opienet/onetworkdemo') (more/less context) (ignore whitespace changes)
-rw-r--r-- | libopie2/examples/opienet/onetworkdemo/onetworkdemo.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libopie2/examples/opienet/onetworkdemo/onetworkdemo.cpp b/libopie2/examples/opienet/onetworkdemo/onetworkdemo.cpp index 06b8b19..4763316 100644 --- a/libopie2/examples/opienet/onetworkdemo/onetworkdemo.cpp +++ b/libopie2/examples/opienet/onetworkdemo/onetworkdemo.cpp | |||
@@ -101,33 +101,34 @@ int main( int argc, char** argv ) | |||
101 | /* | 101 | /* |
102 | 102 | ||
103 | OMacAddress addr = OMacAddress::fromString( "12:34:56:AB:CD:EF" ); | 103 | OMacAddress addr = OMacAddress::fromString( "12:34:56:AB:CD:EF" ); |
104 | iface->setUp( false ); | 104 | iface->setUp( false ); |
105 | iface->setMacAddress( addr ); | 105 | iface->setMacAddress( addr ); |
106 | iface->setUp( true ); | 106 | iface->setUp( true ); |
107 | qDebug( "DEMO: MAC Address now is '%s'", (const char*) iface->macAddress().toString() ); | 107 | qDebug( "DEMO: MAC Address now is '%s'", (const char*) iface->macAddress().toString() ); |
108 | 108 | ||
109 | */ | 109 | */ |
110 | 110 | ||
111 | // monitor test | 111 | // monitor test |
112 | 112 | ||
113 | /* | 113 | |
114 | 114 | ||
115 | qDebug( "DEMO: current interface mode is '%s'", (const char*) iface->mode() ); | 115 | qDebug( "DEMO: current interface mode is '%s'", (const char*) iface->mode() ); |
116 | iface->setMode( "monitor" ); | 116 | iface->setMode( "monitor" ); |
117 | qDebug( "DEMO: current interface mode is '%s'", (const char*) iface->mode() ); | 117 | qDebug( "DEMO: current interface mode is '%s'", (const char*) iface->mode() ); |
118 | 118 | ||
119 | sleep( 1 ); */ | 119 | sleep( 1 ); |
120 | 120 | ||
121 | iface->setMode( "master" ); | 121 | iface->setChannel( 1 ); |
122 | iface->setMode( "managed" ); | ||
122 | 123 | ||
123 | //sleep( 1 ); | 124 | //sleep( 1 ); |
124 | qDebug( "DEMO: current interface mode is '%s'", (const char*) iface->mode() ); | 125 | qDebug( "DEMO: current interface mode is '%s'", (const char*) iface->mode() ); |
125 | 126 | ||
126 | /*iface->setMode( "adhoc" ); | 127 | /*iface->setMode( "adhoc" ); |
127 | sleep( 1 ); | 128 | sleep( 1 ); |
128 | qDebug( "DEMO: current interface mode is '%s'", (const char*) iface->mode() ); | 129 | qDebug( "DEMO: current interface mode is '%s'", (const char*) iface->mode() ); |
129 | iface->setMode( "managed" ); | 130 | iface->setMode( "managed" ); |
130 | sleep( 1 ); | 131 | sleep( 1 ); |
131 | qDebug( "DEMO: current interface mode is '%s'", (const char*) iface->mode() ); | 132 | qDebug( "DEMO: current interface mode is '%s'", (const char*) iface->mode() ); |
132 | iface->setMode( "master" ); | 133 | iface->setMode( "master" ); |
133 | sleep( 1 ); | 134 | sleep( 1 ); |