Subject: Getting awi running [was Re: ifconfig ep0 hang in -current]
To: Atsushi Onoe <onoe@sm.sony.co.jp>
From: Allen Briggs <briggs@ninthwonder.com>
List: current-users
Date: 06/23/2000 09:50:37
> The awi driver is running with infrastructure mode as default.
> If you'd like to talk to other cards directly, i.e. without access points,
> you need a "ifconfig awi0 mediaopt adhoc,flag0" or "wiconfig awi0 -p 3"
> to enter adhoc mode just as same as WaveLAN does.

Yes.  I did:

machA# ifconfig awi0 nwid 1 10.0.0.1 netmask 0xffffff00 mediaopt adhoc,flag0
machB# ifconfig awi0 nwid 1 10.0.0.2 netmask 0xffffff00 mediaopt adhoc,flag0

After which I get a line in the log:
on machA:
Jun 23 09:38:07 machA /netbsd: awi0: synced with 00:00:00:00:00:00 ssid "1" at chanset 1

on machB:
Jun 23 09:38:10 machB /netbsd: awi0: synced with 00:00:00:00:00:00 ssid "1" at chanset 1

machA# ifconfig awi0
awi0: flags=8863<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        nwid 1
        media: IEEE802.11 FH1 flag0,adhoc
        status: active
        inet 10.0.0.1 netmask 0xffffff00 broadcast 10.0.0.255
        inet6 fe80::220:d8ff:fe00:f2d8%awi0 prefixlen 64 scopeid 0x12

...and the same (minus IPV6 stuff and w/ 10.0.0.2) on machB.

But I get:
machA# ping 10.0.0.2
PING 10.0.0.2 (10.0.0.2): 56 data bytes
ping: sendto: Host is down
ping: sendto: Host is down
ping: sendto: Host is down
ping: sendto: Host is down
ping: sendto: Host is down
ping: sendto: Host is down
ping: sendto: Host is down
^C
----10.0.0.2 PING Statistics----
13 packets transmitted, 0 packets received, 100.0% packet loss

The cards have two leds on them.  The exterior green one is pulsing
steadily on about a 2sec. interval.  I just noticed that the other
light is also active:  The interior amber one is kind of flickering
a little on one and it looks like it's flashing at high rate of
speed on the other--it's almost solid.  These cards came with no
documentation, so any information would be helpful...  :-)

-allen