Kismet Wireless

Kismet Forums


Posted by:pchristy
Subject:LibUSB (again!)
Date:17:02:29 20/03/2010

> However this change breaks it for everyone else, because the libusb code compatibility layer isn't actually compatible.
> -m

OK, not had any response from the libusb developers, so I guess I'll have to try and find a fix myself....!

Having quickly brushed up on my "C" programming - how about this?

extern int usb_debug;
usb_debug = 1024;

int wispydbx_usb_open(wispy_phy *phydev) {
int pid_status;
struct usb_dev_handle *wispy;
wispydbx_usb_aux *auxptr = (wispydbx_usb_aux *) phydev->auxptr;
wispydbx_startsweep startcmd;

/* Make the client/server socketpair */
if (socketpair(PF_UNIX, SOCK_DGRAM, 0, auxptr->sockpair) < 0) {
snprintf(phydev->errstr, WISPY_ERROR_MAX,
"wispydbx_usb open failed to create socket pair for capture "
"process: %s", strerror(errno));
return -1;

I've simply moved the usb_debug = 1024; statement up from its original position to a point immediately after the extern int usb_debug statement.

Does this still break it for everyone else?

On my systems, it still builds under libusb-0.1.12 and now also on 1.0.6 with the compatibility layer.

However I don't have a dbx dongle, so I can't check if it breaks that or not!



Reply to this message