Re: ar5212 wireless in a soekris 4801 debug question

2006-02-22 Thread b h
--- Johan Torin <[EMAIL PROTECTED]> wrote:

> On Wednesday 22 February 2006 03:07, b h wrote:
> > Hi
> >
> > I have a (slightly older, but still snazzy)
> generic
> > acting as my gateway - see dmesg at bottom
> >
> > my laptop internal wired NIC was acting funny, so
> I
> > thought I'd try wireless to network through my
> net4801
> > gateway.  Never using my wireless card before on
> the
> > soekris (sat in the machine dormant for a year
> never
> > configured), I thought I'd finally try out the
> > excellent wireless support in OpenBSD.
> >
> > Following the man page, I have
> >
> > # cat /etc/hostname.ath0
> > inet 10.0.1.1 255.255.255.0 NONE media autoselect
> > mediaopt hostap nwid my_net chan 11
> [...]
> 
> Yes, this is a gotcha the man-page doesn't mention.
> The ath driver is only capable of using 11b, so add
> 'mode 11b' to your hostname.ath/ifconfig line and it
> should work.
> 
> /Johan
> 

Thank you, that seemed to work for connecting at "b". 
Although you kind of mentioned it, I'd like to
increase support for the fact that someone with more
diff/man page skills than me *should really update
that*.  It is very misleading (and disappointing) - as
the manpage is seems very clear in describing support
for all three of a/b/g for 5212.  Or mention it in the
bugs section.  If it's relevant, the distributor of my
minipci card was netgate.

I know I'm running an older system, but I tried
looking through cvsweb, and I didn't think I saw any
driver changes since my system was installed, but
apologies if its been fixed since.

Also, don't know whether I can support it, but just
curious what would it require to fix this?  Reyk must
already have a card with the chipset since it works a
little bit right?

thanks
b
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



Re: ar5212 wireless in a soekris 4801 debug question

2006-02-22 Thread Thomas Börnert
5212 will not work, i've spend hours on hours
only 5213 will work. I've talked to Reyk ... and it is strange.

Thomas

On Wed, 2006-02-22 at 07:22 +0100, Johan Torin wrote:
> On Wednesday 22 February 2006 03:07, b h wrote:
> > Hi
> >
> > I have a (slightly older, but still snazzy) generic
> > acting as my gateway - see dmesg at bottom
> >
> > my laptop internal wired NIC was acting funny, so I
> > thought I'd try wireless to network through my net4801
> > gateway.  Never using my wireless card before on the
> > soekris (sat in the machine dormant for a year never
> > configured), I thought I'd finally try out the
> > excellent wireless support in OpenBSD.
> >
> > Following the man page, I have
> >
> > # cat /etc/hostname.ath0
> > inet 10.0.1.1 255.255.255.0 NONE media autoselect
> > mediaopt hostap nwid my_net chan 11
> [...]
> 
> Yes, this is a gotcha the man-page doesn't mention.
> The ath driver is only capable of using 11b, so add
> 'mode 11b' to your hostname.ath/ifconfig line and it
> should work.
> 
> /Johan



Re: ar5212 wireless in a soekris 4801 debug question

2006-02-21 Thread Johan Torin
On Wednesday 22 February 2006 03:07, b h wrote:
> Hi
>
> I have a (slightly older, but still snazzy) generic
> acting as my gateway - see dmesg at bottom
>
> my laptop internal wired NIC was acting funny, so I
> thought I'd try wireless to network through my net4801
> gateway.  Never using my wireless card before on the
> soekris (sat in the machine dormant for a year never
> configured), I thought I'd finally try out the
> excellent wireless support in OpenBSD.
>
> Following the man page, I have
>
> # cat /etc/hostname.ath0
> inet 10.0.1.1 255.255.255.0 NONE media autoselect
> mediaopt hostap nwid my_net chan 11
[...]

Yes, this is a gotcha the man-page doesn't mention.
The ath driver is only capable of using 11b, so add
'mode 11b' to your hostname.ath/ifconfig line and it
should work.

/Johan



ar5212 wireless in a soekris 4801 debug question

2006-02-21 Thread b h
Hi

I have a (slightly older, but still snazzy) generic
acting as my gateway - see dmesg at bottom 

my laptop internal wired NIC was acting funny, so I
thought I'd try wireless to network through my net4801
gateway.  Never using my wireless card before on the
soekris (sat in the machine dormant for a year never
configured), I thought I'd finally try out the
excellent wireless support in OpenBSD.

Following the man page, I have

# cat /etc/hostname.ath0
inet 10.0.1.1 255.255.255.0 NONE media autoselect
mediaopt hostap nwid my_net chan 11

Rebooted...
I think it looks okay:

# ifconfig -a
lo0: flags=8049 mtu
33224
groups: lo
inet 127.0.0.1 netmask 0xff00
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x8
sis0:
flags=8843 mtu
1500
lladdr 00:00:24:c2:41:3c
groups: egress
media: Ethernet autoselect (10baseT)
status: active
inet6 fe80::200:24ff:fec2:413c%sis0 prefixlen
64 scopeid 0x1
inet my.cable.ip.here netmask 0xf000
broadcast 255.255.255.255
sis1:
flags=8843 mtu
1500
lladdr 00:00:24:c2:41:3d
media: Ethernet autoselect (100baseTX
full-duplex)
status: active
inet 10.0.0.1 netmask 0xff00 broadcast
10.0.0.255
inet6 fe80::200:24ff:fec2:413d%sis1 prefixlen
64 scopeid 0x2
sis2: flags=8802 mtu 1500
lladdr 00:00:24:c2:41:3e
media: Ethernet autoselect (none)
status: no carrier
ath0:
flags=8863
mtu 1500
lladdr 00:02:6f:20:f5:99
media: IEEE802.11 autoselect hostap
(autoselect mode 11a hostap)
status: active
ieee80211: nwid my_net chan 11 bssid
00:02:6f:20:f5:99
inet 10.0.1.1 netmask 0xff00 broadcast
10.0.1.255
inet6 fe80::202:6fff:fe20:f599%ath0 prefixlen
64 scopeid 0x4
pflog0: flags=141 mtu 33224
pfsync0: flags=0<> mtu 1348
enc0: flags=0<> mtu 1536


and I had also changed my pf.conf to add the new
interface as seen here:

# cat /etc/pf.conf
#   $OpenBSD: pf.conf,v 1.28 2004/04/29 21:03:09
frantzen Exp $
#
# See pf.conf(5) and /usr/share/pf for syntax and
examples.
# Remember to set net.inet.ip.forwarding=1 and/or
net.inet6.ip6.forwarding=1
# in /etc/sysctl.conf if packets are to be forwarded
between interfaces.

ext_if="sis0"
int_if="sis1"
wireless_if="ath0"

set block-policy return
set loginterface $ext_if
scrub in all

nat on $ext_if from !($ext_if) -> ($ext_if:0)
rdr pass on $ext_if proto tcp to port 22 -> 10.0.0.2
port 22
rdr pass on $ext_if proto tcp to port 23 -> 10.0.0.2
port 80

block log all
block drop in quick log on $ext_if proto { tcp, udp }
from any os Linux to any port ssh
pass quick on { lo0 $int_if $wireless_if } all
pass out on $ext_if proto tcp all flags S/SA keep
state
pass out on $ext_if proto { udp, icmp } all keep state
#


Yet, my WinXP with Intel 2915a/b/g can't find it when
scanning for networks to connect to.

Following the manpage again, setting a WEP key, just
in case..

# ifconfig ath0 nwkey 0x1deadbeef1
# ifconfig -a
lo0: flags=8049 mtu
33224
groups: lo
inet 127.0.0.1 netmask 0xff00
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x8
sis0:
flags=8843 mtu
1500
lladdr 00:00:24:c2:41:3c
groups: egress
media: Ethernet autoselect (10baseT)
status: active
inet6 fe80::200:24ff:fec2:413c%sis0 prefixlen
64 scopeid 0x1
inet my.cable.ip.here netmask 0xf000
broadcast 255.255.255.255
sis1:
flags=8843 mtu
1500
lladdr 00:00:24:c2:41:3d
media: Ethernet autoselect (100baseTX
full-duplex)
status: active
inet 10.0.0.1 netmask 0xff00 broadcast
10.0.0.255
inet6 fe80::200:24ff:fec2:413d%sis1 prefixlen
64 scopeid 0x2
sis2: flags=8842
mtu 1500
lladdr 00:00:24:c2:41:3e
media: Ethernet autoselect (none)
status: no carrier
ath0:
flags=8863
mtu 1500
lladdr 00:02:6f:20:f5:99
media: IEEE802.11 autoselect hostap
(autoselect mode 11a hostap)
status: active
ieee80211: nwid my_net chan 11 bssid
00:02:6f:20:f5:99 nwkey 0x1deadbeef1
inet 10.0.1.1 netmask 0xff00 broadcast
10.0.1.255
inet6 fe80::202:6fff:fe20:f599%ath0 prefixlen
64 scopeid 0x4
pflog0: flags=141 mtu 33224
pfsync0: flags=0<> mtu 1348
enc0: flags=0<> mtu 1536
#

Still looks okay, yet, can't seem to find it (sitting
five feet away.)

I only have this one internal miniPCI 2915 to try
scanning it.

Did I miss a step?  or any recommendations on how to
debug this?  Any fancy trick I can try?

much thanks
b



dmesg:
===
OpenBSD 3.7-current (GENERIC) #1: Sun Aug  7 10:21:03
EDT 2005
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Geode(TM) Integrated Processor by National Semi
("Geode by NSC" 586-class) 267 MHz
cpu0: FPU,TSC,MSR,CX8,CMOV,MMX
cpu0: TSC disabled
real mem  = 133799936 (130664K)
avail mem = 115503104 (112796K)
using 1658 buffers containing 6791168 bytes (6632K) of
memory
mainbus0 (root