Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 03 May 2003 00:09:21 +0930
From:      Benjamin Close <benjsc@clearchain.com>
To:        freebsd-mobile@FreeBSD.ORG
Cc:        seanc@FreeBSD.ORG
Subject:   Re: wi driver issue: Hermes Card functionality changed
Message-ID:  <3EB28319.40803@clearchain.com>
In-Reply-To: <3EB1D385.5080602@cs.unisa.edu.au>
References:  <3EB1D385.5080602@cs.unisa.edu.au>

next in thread | previous in thread | raw e-mail | index | archive | help
Benjamin Close wrote:

> Hi All,
>    I've been trying to work out why my lucent card no longer works 
> with dstumbler. 

For those that are interested the following patch allows dstumbler to 
work with HERMES based cards after the NetBSD / ieee interface merge of 
the wi driver.
This applies to FreeBSD -current only.

diff -ur 
/usr/ports/net/bsd-airtools/work/bsd-airtools/dstumbler/dstumbler.h 
./dstumbler.h
--- /usr/ports/net/bsd-airtools/work/bsd-airtools/dstumbler/dstumbler.h 
Fri May  2 21:08:58 2003
+++ ./dstumbler.h       Fri May  2 21:42:00 2003
@@ -237,7 +237,9 @@
 #ifdef __FreeBSD__
 #define htole16(x) (x)
 #define le16toh(x) (x)
+#if __FreeBSD_version > 500112
 #define O_SYNC     O_FSYNC
+#endif
 #else
 #ifdef __OpenBSD__
 #define le16toh(x) letoh16(x)
diff -ur 
/usr/ports/net/bsd-airtools/work/bsd-airtools/dstumbler/wistat.c ./wistat.c
--- /usr/ports/net/bsd-airtools/work/bsd-airtools/dstumbler/wistat.c    
Sat Jan 12 01:35:43 2002
+++ ./wistat.c  Sat May  3 00:02:00 2003
@@ -298,7 +298,9 @@
       wreq.wi_val[0] = htole16(*((int *)mem));
       break;
     case WI_RID_OWN_SSID:
-      wreq.wi_len = MIN((strlen(mem) + 1) / 2, len);
+      wreq.wi_type = WI_RID_OWN_SSID;
+      //wreq.wi_len = MIN((strlen(mem) + 1) / 2, len);
+      wreq.wi_len = 18;
       wreq.wi_val[0] = htole16(strlen(mem));
       memcpy((char *)&wreq.wi_val[1], mem, strlen(mem));
       break;
@@ -314,7 +316,7 @@
       break;
     case WI_RID_SCAN_REQ:
       wreq.wi_len = (prism2 ? 3 : 1);
-      wreq.wi_type = WI_RID_SCAN_REQ;
+      wreq.wi_type =(prism2 ? WI_RID_SCAN_REQ : WI_RID_SCAN_APS );
 
       if(prism2)
       {




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3EB28319.40803>