Ndisulator - Linksys wireless-g PCI card Project Evil

Jon Knight j.knight at knightsolutions.com.au
Wed Dec 29 22:38:36 PST 2004


James,

I used 10.0.0.1 for the example, as I don't think I can have both interfaces
on the same subnet.  

wireless# /sbin/kldload -v /usr/src/sys/modules/if_ndis/if_ndis.ko
Loaded /usr/src/sys/modules/if_ndis/if_ndis.ko, id=3

wireless# ifconfig ndis0 inet 10.0.0.1 netmask 255.255.255.0 ssid
linksys-jon

wireless# ifconfig
xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=8<VLAN_MTU>
        inet 192.168.0.8 netmask 0xffffff00 broadcast 192.168.0.255
        inet6 fe80::2c0:4fff:fe9a:ccd5%xl0 prefixlen 64 scopeid 0x1
        ether 00:c0:4f:9a:cc:d5
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
plip0: flags=108810<POINTOPOINT,SIMPLEX,MULTICAST> mtu 1500
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
        inet 127.0.0.1 netmask 0xff000000
        inet6 ::1 prefixlen 128
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
ndis0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        inet 10.0.0.1 netmask 0xffffff00 broadcast 10.0.0.255
        inet6 fe80::20f:66ff:fe6e:edf7%ndis0 prefixlen 64 scopeid 0x4
        ether 00:0f:66:6e:ed:f7
        media: IEEE 802.11 Wireless Ethernet autoselect
        status: no carrier
        ssid ""
        channel -1 authmode OPEN powersavemode OFF powersavesleep 100
        rtsthreshold 2312 protmode CTS
        wepmode OFF weptxkey 1

Still no luck

-----Original Message-----
From: James Jhai [mailto:james at idea-anvil.net] 
Sent: Thursday, 30 December 2004 5:00 PM
To: freebsd-questions at freebsd.org
Cc: Jon Knight
Subject: Re: Ndisulator - Linksys wireless-g PCI card Project Evil

On Wednesday 29 December 2004 09:08 pm, Jon Knight wrote:
> Hi all,
> I don't think I received a reply on this one; can some one please help me
> out? The Ndis0 seems to go up only when I ifconfig adhoc mode, when I try
> autoselect the ndis0 link goes down.  
> Thanks
> Jon
> 
> -----Original Message-----
> From: owner-freebsd-questions at freebsd.org
> [mailto:owner-freebsd-questions at freebsd.org] On Behalf Of Jon Knight
> Sent: Thursday, 23 December 2004 3:19 PM
> To: freebsd-questions at freebsd.org
> Subject: Ndisulator - Linksys wireless-g PCI card
> 
> Hi everyone,
> 
>  
> 
> I have a wireless-g PCI Card Linksys WMP54G.  Just installed FreeBSD 5.3
> from CD.  I'm trying to get this to work and talk to my access point which
> is also Linksys.  I followed the instructions to compile the windows .inf
> and .sys into .h, .ko, .o.  Did a 'make' on ndis as per instructions from
a
> website I googled (I think it was http://www.xl0.org/FreeBSD/ndis.txt).  I
> can see ndis0 in ifconfig, I can specify ifconfig ndis0 inet 192.168.0.8
> netmask 255.255.255.0.  Turned off wep on my AP to make things easier.
Set
> the SSID.  
> 
>  
> 
> Now when I type ifconfig ndis0 media autoselect, nothing happens.
> Everything looks okay, I can locally ping the interface 192.168.0.8.  I
> cannot wicontrol and list the local ap however.  When I type ifconfig
ndis0
> mediaopt adhoc it says ndis0 link up.  I try ifconfig ndis0 media
autoselect
> and link is down.  What's up with that (no pun intended) ?
> 
>  
> 
> Many thanks
> 
> Cheers,
> 
> Jon
> 
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
"freebsd-questions-unsubscribe at freebsd.org"
> 
> 
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
"freebsd-questions-unsubscribe at freebsd.org"
> 
> 
I am using the linksys WPC11 b pccard.
I have never had to mess with anything other then putting one line in
rc.conf:
ifconfig_ndis0="inet  netmask 255.255.255.0 ssid LINKSYS"

It seems to default to autoselect.

try:
#ifconfig ndis0 inet 192.168.0.8 netmask 255.255.255.0 ssid YOURSSID

I know it might be over simplified, but thats all I do and it defaults to
autoselect. 

#ifconfig
...
ndis0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        inet 10.234.23.99 netmask 0xffffff00 broadcast 10.0.0.255
        inet6 fe80::20d:41ff:fa41:5d37%ndis0 prefixlen 64 scopeid 0x5
        ether 00:0d:4f:41:5f:e7
        media: IEEE 802.11 Wireless Ethernet autoselect (DS/11Mbps)
        status: associated
        ssid PUBLIC 1:PUBLIC
        channel 6 authmode OPEN powersavemode OFF powersavesleep 100
        rtsthreshold 2312 protmode CTS
        wepmode OFF weptxkey 1

Not sure if that is any help or not... let me know.
-- 
- James




More information about the freebsd-questions mailing list