Solved USRobotics BCMWL5 ndis driver issues on FreeBSD-7.2

kernel is kernel and module is module; if_ndis.ko is LKM module.
And GENERIC kernel doesn't have device if_ndis so you must kldload if_ndis.ko
Dunno about leds but you can compare syscyl dev.ndis.0|grep led with one from Windows registry.

Also note that bwi(4) driver from 8.0 CURRENT may and may not be better option; if you need some advanced features which are not possible via ndis(4)
 
I have exactly a same issue and I can't scan using ndis.
This is also an issue.
I use 7.2

Please give me a link to most recent patch for ndis and directions

Thanks in advance.
 
Seeker said:
...
Please give me a link to most recent patch for ndis and directions
..

As far as I remember, I have solved the NDIS problem by applying the patch as described by richardpl. But, all the while I had to go through a trial-and-error phase until I got ndis0 working. It's working perfectly now.
 
I can't apply patch

Code:
# cd /usr/src
# patch < /root/patch-1.diff
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|Index: if_ndis.c
|===================================================================
|RCS file: /data/ndis/if_ndis/if_ndis.c,v
|retrieving revision 1.1.1.1
|diff -u -r1.1.1.1 if_ndis.c
|--- if_ndis.c   1 Dec 2007 06:23:58 -0000       1.1.1.1
|+++ if_ndis.c   1 Dec 2007 07:34:01 -0000
--------------------------
File to patch: /sys/dev/if_ndis/if_ndis.c
Patching file /sys/dev/if_ndis/if_ndis.c using Plan A...
Hunk #1 failed at 2629.
Hunk #2 failed at 3073.
Hunk #3 failed at 3580.
3 out of 3 hunks failed--saving rejects to /sys/dev/if_ndis/if_ndis.c.rej
Hmm...  The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|
|
|Patch attached with submission follows:
|
|Index: if_ndis.c
|===================================================================
|RCS file: /data/ndis/if_ndis/if_ndis.c,v
|retrieving revision 1.1.1.1
|diff -u -r1.1.1.1 if_ndis.c
|--- if_ndis.c  1 Dec 2007 06:23:58 -0000       1.1.1.1
|+++ if_ndis.c  1 Dec 2007 07:34:01 -0000
--------------------------
File to patch: /sys/dev/if_ndis/if_ndis.c
Patching file /sys/dev/if_ndis/if_ndis.c using Plan A...
Hunk #1 failed at 2629.
Hunk #2 failed at 3073.
Hunk #3 failed at 3580.
3 out of 3 hunks failed--saving rejects to /sys/dev/if_ndis/if_ndis.c.rej
Hmm...  Ignoring the trailing garbage.
done
#

How come?
How do I patch it?

PS: I am using custom kernel and ndis is already in kernel, so I never need to load ndis as a module.
 
Last edited:
richardpl said:
What revision of if_ndis.c is on your comp?

Code:
#include <sys/cdefs.h>
__FBSDID("$FreeBSD: src/sys/dev/if_ndis/if_ndis.c,v 1.124.2.4.2.1 2009/04/15 03:14:26 kensmith Exp $
");

Is this revision?

Code:
# md5 /sys/dev/if_ndis/if_ndis.c
MD5 (/sys/dev/if_ndis/if_ndis.c) = 79a7a035888cf5a61f3f3de00a4d0d5d

Patch do not work for me!
I've applied it correctly.
In attachment is uploaded .rej file
 

Attachments

It worked for me(using sources from CVS). Remove first part of patch, second part is actually useful. But anyway second(above) part did not worked for you. So something is wrong on your side.
You could patch it manually - it is not big problem, just find correct line number ...

Last solution is to send you complete file but that is not really always good idea.

Make sure that your sources are from stable, eg. do not use release for security reasons ....
 
richardpl said:
Use:
# cd /sys/dev/if_ndis/

That has been corrected already.
md5 and patching has been done against if_ndis.c in:
Code:
cd /sys/dev/if_ndis/

Anyway, I've done it manually and after reboot now it can scan.

Now I'll create my own patch, for 7.2 RELEASE and post it here.
 
This is a patch for ndis at FreeBSD 7.2 RELENG

To apply it:
Code:
cd /sys/dev/if_ndis/
patch < /path/to/ndis_7_2_release.patch.diff
Original if_ndis.c will be copied to if_ndis.c.orig
 

Attachments

Back
Top