freebsd-ports/net/bsd-airtools/files/patch-dstumbler::wistat.c
Sean Chittenden 4276ab7cd0 In an attempt to get dstumbler functioning on -CURRENT, I'm committing a few
patches that have been sent in thus far.  dstumbler now reports the APs, but
isn't able to monitor them on my Netgear 401, however, others have reported
success so I'm committing them.  Please keep me posted if things are or aren't
working.  I no longer have a -STABLE box to test these on and haven't tested
this with sam's monitoring mode changes from last night, so, things may be
working correctly now, and/or -STABLE may be broken.  In either case, please
let me know.

Submitted by:	sam, bms
2003-07-21 20:36:48 +00:00

38 lines
855 B
C

--- dstumbler/wistat.c.orig Fri Jan 11 07:05:43 2002
+++ dstumbler/wistat.c Mon Jul 21 13:27:51 2003
@@ -468,17 +468,6 @@
return;
}
- if(scanmode)
- {
- setscanreq(iface);
-
- /*
- * some systems need the card to wait a bit before more config options are
- * set, otherwise it could lock up the system.
- */
- usleep(POLLSPEED);
- }
-
/* first backup the current keys and encryption status */
getcryptkeys(iface, &backup.keys);
getcrypt(iface, &backup.crypt);
@@ -503,6 +492,17 @@
/* set a null ssid for the default */
setdefaultssid(iface, "\0");
+
+ if(scanmode)
+ {
+ setscanreq(iface);
+
+ /*
+ * some systems need the card to wait a bit before more config options are
+ * set, otherwise it could lock up the system.
+ */
+ usleep(POLLSPEED);
+ }
backup.wi_started++;
}