Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Dec 2001 21:59:27 -0800
From:      Nick Sayer <nsayer@quack.kfu.com>
To:        jldera@mac.com
Cc:        freebsd-mobile@FreeBSD.ORG
Subject:   Re: Netgear MA401/MA301
Message-ID:  <3C15A0BF.8010603@quack.kfu.com>
References:  <433CBCB2-EC27-11D5-920B-0003931A551A@mac.com>

next in thread | previous in thread | raw e-mail | index | archive | help
I have been told before when I have posted this that I must be high, but 
I swear it's true.

To get a Prism2 card to work in computer-to-computer modes, you do

wicontrol -p 0
wicontrol -C 1
wicontrol -q "name of network"

No other combination has worked for me. With a prism2 card. Orinoco 
cards are another animal altogether.


jldera@mac.com wrote:

> Hello hello. I am trying to setup my FreeBSD box with an 802.11b 
> wireless card. I went out and purchased a Netgear MA401 card, as well as 
> the MA301 PCI adapter. Plugged it into my mobo, recompiled my kernel to 
> include the wi device, rebooted, and now it's showing in an ifconfig. 
> The problem I'm having at this point is I'm trying to set up a computer 
> to computer network between the BSD system and an Apple iBook (2001 
> model) with an Airport card installed. The iBook is running Mac OS X 
> 10.1.1, with all the newest Airport updates and such. Since we're 
> dealing with UNIX in both places, I'm gonna kinda show what's going on, 
> and hopefully you guys can help me out. My BSD box is mojito, the iBook 
> is mog. So, here we go:
> 
> mojito:~# ifconfig wi0
> wi0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
> inet 192.168.1.1 netmask 0xffffff00 broadcast 192.168.1.255
> ether 00:30:ab:09:48:01
> media: IEEE 802.11 Wireless Ethernet autoselect (DS/2Mbps <adhoc>)
> status: associated
> ssid "FreeBSD IBSS"
> stationname artoftech
> channel 11 authmode NONE powersavemode OFF powersavesleep 100
> wepmode OFF weptxkey 1
> mojito:~# mojito:~# wicontrol
> NIC serial number: [ 99SA01000000 ]
> Station name: [ artoftech ]
> SSID for IBSS creation: [ FreeBSD IBSS ]
> Current netname (SSID): [ FreeBSD IBSS ]
> Desired netname (SSID): [ artoftech ]
> Current BSSID: [ 00:00:00:00:00:00 ]
> Channel list: [ 2047 ]
> IBSS channel: [ 11 ]
> Current channel: [ 11 ]
> Comms quality/signal/noise: [ 0 27 27 ]
> Promiscuous mode: [ Off ]
> Port type (1=BSS, 3=ad-hoc): [ 3 ]
> MAC address: [ 00:30:ab:09:48:01 ]
> TX rate (selection): [ 3 ]
> TX rate (actual speed): [ 2 ]
> RTS/CTS handshake threshold: [ 2347 ]
> Create IBSS: [ On ]
> Access point density: [ 1 ]
> Power Mgmt (1=on, 0=off): [ 0 ]
> Max sleep time: [ 100 ]
> WEP encryption: [ Off ]
> TX encryption key: [ 1 ]
> Encryption keys: [ ][ ][ ][ ]
> mojito:~#
> 
> 
> In this state, I have a solid link light on the Netgear card, I've 
> statically assigned it a 192.168.1.1 IP address, and I actually have 
> dhcpd configured to be running on it as well.
> Here's a little my routing table in case it comes up:
> mojito:~# route -nv get 192.168.1.1
> u: inet 192.168.1.1; u: link ; RTM_GET: Report Metrics: len 164, pid: 0, 
> seq 1, errno 0, flags:<UP,GATEWAY,HOST,STATIC>
> locks: inits:
> sockaddrs: <DST,IFP>
> 192.168.1.1
> route to: 192.168.1.1
> destination: 192.168.1.0
> mask: 255.255.255.0
> interface: wi0
> flags: <UP,DONE,CLONING>
> recvpipe sendpipe ssthresh rtt,msec rttvar hopcount mtu expire
> 0 0 0 0 0 0 1500 -1816
> 
> locks: inits:
> sockaddrs: <DST,GATEWAY,NETMASK,IFP,IFA>
> 192.168.1.0 255.255.255.0 wi0:0.30.ab.9.48.1 192.168.1.1
> mojito:~# mojito:/home/musouka# ping 192.168.1.1
> PING 192.168.1.1 (192.168.1.1): 56 data bytes
> 64 bytes from 192.168.1.1: icmp_seq=0 ttl=64 time=0.109 ms
> ^C
> --- 192.168.1.1 ping statistics ---
> 1 packets transmitted, 1 packets received, 0% packet loss
> round-trip min/avg/max/stddev = 0.109/0.109/0.109/0.000 ms
> mojito:/home/musouka# ping 192.168.1.2
> PING 192.168.1.2 (192.168.1.2): 56 data bytes
> ^C
> --- 192.168.1.2 ping statistics ---
> 2 packets transmitted, 0 packets received, 100% packet loss
> mojito:/home/musouka#
> 
> 
> 
> So, based on this, I see the Netgear card is in ad-hoc mode with a 
> network name of "artoftech" right? Let's look at the Mac...
> 
> The Mac is running in "Computer to Computer" mode with a network named 
> "artoftech" and using channel 11. I've statically assigned its IP 
> address to eliminate the possibility of it being an issue with DHCPd. 
> It's IP is 192.168.1.2:
> 
> [mog:/Users/musouka] root# /sbin/ifconfig en1
> en1: flags=8863<UP,BROADCAST,b6,RUNNING,SIMPLEX,MULTICAST> mtu 1500
> inet 192.168.1.2 netmask 0xffffff00 broadcast 192.168.1.255
> ether 00:30:65:09:9b:26
> media: autoselect status: active
> supported media: autoselect
> [mog:/Users/musouka] root# /sbin/route -n get 192.168.1.1
> route to: 192.168.1.1
> destination: 192.168.1.0
> mask: 255.255.255.0
> interface: en1
> flags: <UP,DONE,CLONING>
> recvpipe sendpipe ssthresh rtt,msec rttvar hopcount mtu expire
> 0 0 0 0 0 0 1500 -604
> [mog:/Users/musouka] root#[mog:/Users/musouka] root# ping 192.168.1.1
> PING 192.168.1.1 (192.168.1.1): 56 data bytes
> ^C
> --- 192.168.1.1 ping statistics ---
> 2 packets transmitted, 0 packets received, 100% packet loss
> [mog:/Users/musouka] root# ping 192.168.1.2
> PING 192.168.1.2 (192.168.1.2): 56 data bytes
> 64 bytes from 192.168.1.2: icmp_seq=0 ttl=255 time=1.747 ms
> ^C
> --- 192.168.1.2 ping statistics ---
> 1 packets transmitted, 1 packets received, 0% packet loss
> round-trip min/avg/max = 1.747/1.747/1.747 ms
> [mog:/Users/musouka] root#
> 
> 
> Based on this, I'd think that a ping to 192.168.1.1 would work from the 
> Mac, or a ping to 192.168.1.2 would work from the BSD box. No such love, 
> anyone have any ideas? Your help is much appreciated.
> 
> Jason Deraleau
> jldera@mac.com
> _http://homepage.mac.com/jldera_
> 



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-mobile" in the body of the message




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