author | mickeyl <mickeyl> | 2002-12-04 21:23:17 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2002-12-04 21:23:17 (UTC) |
commit | eadf7c4aed6ff281f418a7a3b315fd59f001617a (patch) (side-by-side diff) | |
tree | a46170b6634f542d595a104062fd0a9dcd76be6f | |
parent | e5d01d8c3cf1d606e53684b6eccaf3ceaf6dea0b (diff) | |
download | opie-eadf7c4aed6ff281f418a7a3b315fd59f001617a.zip opie-eadf7c4aed6ff281f418a7a3b315fd59f001617a.tar.gz opie-eadf7c4aed6ff281f418a7a3b315fd59f001617a.tar.bz2 |
more debugging info for our debugging session...
-rw-r--r-- | noncore/net/wellenreiter/libwellenreiter/source/proto.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/noncore/net/wellenreiter/libwellenreiter/source/proto.cc b/noncore/net/wellenreiter/libwellenreiter/source/proto.cc index 359bdb5..305f401 100644 --- a/noncore/net/wellenreiter/libwellenreiter/source/proto.cc +++ b/noncore/net/wellenreiter/libwellenreiter/source/proto.cc @@ -9,13 +9,13 @@ /* Send found network to GUI */ int send_network_found (const char *guihost, int guiport, void *structure) { wl_network_t *ptr; char buffer[2048]; - char temp[4]; + char temp[5]; ptr = (wl_network_t *)structure; memset(buffer, 0, 2048); /* Type = Found new net */ @@ -53,15 +53,20 @@ int send_network_found (const char *guihost, int guiport, void *structure) snprintf(temp, 4, "00%d", ptr->ssid_len); else snprintf(temp, 4, "0%d", ptr->ssid_len); memcpy(buffer + 23, temp, 3); + fprintf( stderr, "Temp is %s\n", temp ); + fprintf( stderr, "ssid_len is %d\n", ptr->ssid_len ); + /* Set ssid */ memcpy(buffer + 26, ptr->bssid, ptr->ssid_len); + fprintf( stderr, "Buffer is %s\n", buffer ); + /* Send prepared buffer to GUI */ sendcomm(guihost, guiport, buffer); return 1; } |