Kismet Wireless

Kismet Forums

 

Posted by:malikulmawt
Subject:Kismet nokia 770 DHCP crash error
Date:02:30:27 30/10/2007

Guten Tag

I would think I might help. I compiled kismet for IT2007HE and it functioning. I can send tar file if you like...I think work gut.

It still crash and I do not know why. I believe power management or wireless driver. instead of wlancond I believe maemo use conic. Here is what I have changed. It crash still...what you think dragorn can fix yes?

kismet_server.cc:
// attempt to connect using coniciap.h
#include <conic/conicconnection.h>
#include <conic/conicevent.h>
#include <conic/conicconnectionevent.h>
#include <conic/conicstatisticsevent.h>
#include <conic/coniciap.h>
#include <glib-2.0/glib.h>
#include <glib-2.0/glib-object.h>

ConIcConnection* connectWLAN;

....


void ErrorShutdown() {
// Shut down the packet sources
sourcetracker.CloseSources();

// Shut down the channel control child
sourcetracker.ShutdownChannelChild();


if (netmanager_control) {
fprintf(stderr, "Trying to wake networkmanager back up...\n");
if (networkmanager_control("wake") < 0)
fprintf(stderr, "WARNING: Failed to send 'wake' command to networkmanager "
"via DBUS, NM may still be inactive.");
}

//attempt to release control of the wireless connection using conic
con_ic_connection_disconnect (connectWLAN);


fprintf(stderr, "Kismet exiting.\n");
exit(1);
}

....

// Shut down the channel control child
sourcetracker.ShutdownChannelChild();

if (netmanager_control) {
fprintf(stderr, "Trying to wake networkmanager back up...\n");
if (networkmanager_control("wake") < 0)
fprintf(stderr, "WARNING: Failed to send 'wake' command to networkmanager "
"via DBUS, NM may still be inactive.");
}
//attempt to disconnect using conic
con_ic_connection_disconnect (connectWLAN);

fprintf(stderr, "Kismet exiting.\n");
exit(0);
}


....


// Delete the conf stuff
delete conf;
conf = NULL;

// Try to put networkmanager to sleep as unprived
if (netmanager_control) {
fprintf(stderr, "Putting networkmanager to sleep...\n");
if (networkmanager_control("sleep") < 0)
fprintf(stderr, "WARNING: Failed to send 'sleep' command to networkmanager "
"via DBUS, NM may try to take control of the interfaces still.");
}


fprintf(stderr, "Conic started to work\n");
//use conic to create connection
connectWLAN = con_ic_connection_new();
con_ic_connection_connect( connectWLAN, CON_IC_CONNECT_FLAG_UNMANAGED );

fprintf(stderr, "Conic finished working\n");


Reply to this message