1 Jun 2006 13:14
[PATCH REWRITE] TEW-429UB ID + kismet hack
Bryan Rittmeyer <bryanr <at> bryanr.org>
2006-06-01 11:14:49 GMT
2006-06-01 11:14:49 GMT
Thanks for zd1211rw. Here's a patch to add one of the TEW-429UB IDs
since it is basically working in Monitor mode:
--- zd1211_2006-06-01.orig/zd_usb.c 2006-05-20 10:22:15.000000000 -0700
+++ zd1211_2006-06-01/zd_usb.c 2006-06-01 03:28:29.000000000 -0700
<at> <at> -38,6 +38,7 <at> <at>
{ USB_DEVICE(0x126f, 0xa006), .driver_info = DEVICE_ZD1211 },
{ USB_DEVICE(0x6891, 0xa727), .driver_info = DEVICE_ZD1211 },
{ USB_DEVICE(0x0df6, 0x9071), .driver_info = DEVICE_ZD1211 },
+ { USB_DEVICE(0x157e, 0x300b), .driver_info = DEVICE_ZD1211 },
/* ZD1211B */
{ USB_DEVICE(0x0ace, 0x1215), .driver_info = DEVICE_ZD1211B },
{ USB_DEVICE(0x157e, 0x300d), .driver_info = DEVICE_ZD1211B },
Second, the kismet 2006.04.R1-1 build in Debian sid is reaching
zd_find_channel() with freq->flags == IW_FREQ_AUTO. That causes
zd_find_channel() to return 0, resulting in -EINVAL from the
SIOCSIWFREQ ioctl, causing kismet to abort.
This behavior might be a bug in kismet (as it does seemingly
want IW_FREQ_FIXED), however here's a zd1211rw driver hack to get
the current kismet release running:
--- zd1211_2006-06-01.orig/zd_ieee80211.c 2006-05-20 10:22:15.000000000 -0700
+++ zd1211_2006-06-01/zd_ieee80211.c 2006-06-01 03:57:43.000000000 -0700
<at> <at> -114,9 +114,6 <at> <at>
int i, r;
u32 mhz;
- if (!(freq->flags & IW_FREQ_FIXED))
- return 0;
-
if (freq->m < 1000) {
if (freq->m > NUM_CHANNELS || freq->m == 0)
return -EINVAL;
Signed-off-by: Bryan Rittmeyer <bryanr <at> bryanr.org>
Thanks,
Bryan
-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
RSS Feed