summaryrefslogtreecommitdiff
authormickeyl <mickeyl>2002-12-03 19:47:18 (UTC)
committer mickeyl <mickeyl>2002-12-03 19:47:18 (UTC)
commitb840b9c453badfec16deffeffae5337320bff5a7 (patch) (unidiff)
tree9f13605ecedb3a41bfbd9ea104454c66f238048e
parent6759138a8d4d6fdd16838511c099c6d7ec03a54f (diff)
downloadopie-b840b9c453badfec16deffeffae5337320bff5a7.zip
opie-b840b9c453badfec16deffeffae5337320bff5a7.tar.gz
opie-b840b9c453badfec16deffeffae5337320bff5a7.tar.bz2
GUI used wrong comm port.
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/wellenreiter/gui/wellenreiter.cpp24
1 files changed, 14 insertions, 10 deletions
diff --git a/noncore/net/wellenreiter/gui/wellenreiter.cpp b/noncore/net/wellenreiter/gui/wellenreiter.cpp
index 02a6f76..693f20d 100644
--- a/noncore/net/wellenreiter/gui/wellenreiter.cpp
+++ b/noncore/net/wellenreiter/gui/wellenreiter.cpp
@@ -44,7 +44,7 @@ Wellenreiter::Wellenreiter( QWidget* parent, const char* name, WFlags fl )
44 44
45 daemon_fd = commsock( DAEMONADDR, DAEMONPORT ); 45 daemon_fd = commsock( GUIADDR, GUIPORT );
46 if ( daemon_fd == -1 ) 46 if ( daemon_fd == -1 )
47 qDebug( "D'oh! Could not get file descriptor for daemon socket." ); 47 qDebug( "D'oh! Could not get file descriptor for daemon-->gui communication socket." );
48 else 48 //else
49 startTimer( 700 ); 49 //startTimer( 700 );
50 50
@@ -79,3 +79,3 @@ typedef struct {
79 79
80 if ( result == 1 ) /* new network found */ 80 if ( result == NETFOUND ) /* new network found */
81 { 81 {
@@ -83,3 +83,3 @@ typedef struct {
83 wl_network_t n; 83 wl_network_t n;
84 get_network_found( &n, (const char*) &buffer ); 84 get_network_found( &n, (char*) &buffer );
85 n.bssid[n.ssid_len] = "\0"; 85 n.bssid[n.ssid_len] = "\0";
@@ -123,3 +123,3 @@ void Wellenreiter::timerEvent( QTimerEvent* e )
123{ 123{
124 qDebug( "checking for message..." ); 124 //qDebug( "checking for message..." );
125 125
@@ -131,3 +131,3 @@ void Wellenreiter::timerEvent( QTimerEvent* e )
131 { 131 {
132 qDebug( "no message :(" ); 132 //qDebug( "no message :(" );
133 } 133 }
@@ -168,4 +168,8 @@ void Wellenreiter::buttonClicked()
168 168
169 addNewItem( "managed", "MyNet", "04:00:20:EF:A6:43", true, 6, 80 ); 169 addNewItem( "managed", "DummyNet", "04:00:20:EF:A6:43", true, 6, 80 );
170 addNewItem( "adhoc", "YourNet", "40:03:A3:E7:56:22", false, 11, 30 ); 170 addNewItem( "adhoc", "DummyNet", "40:03:A3:E7:56:22", false, 11, 30 );
171
172 QString command ("98");
173
174 sendcomm( DAEMONADDR, DAEMONPORT, (const char*) command );
171 175