Re: WEP does not work? (was Re: HEADSUP: ath updates)

From: Sam Leffler <sam_at_errno.com>
Date: Wed, 8 Dec 2004 17:44:27 -0800
On Wednesday 08 December 2004 05:00 pm, Hideyuki KURASHINA wrote:
> Hi,
>
> First of all, I would like to thank your hard work.  That's great!
> I decided to track HEAD rather than RELENG_5 with my new laptop.
> Here is my environment:
>
>   Access Point:  PRISM3 on NetBSD 2.0 box
>   Client:        Atheros 5212 on FreeBSD 6.0 laptop
>
> >>> On Wed, 8 Dec 2004 11:09:43 -0800, Sam Leffler <sam_at_errno.com> said:
> >
> > I just committed updates for the ath driver and the ath hal.  There are
> > many changes to this code including a split of the tx rate control
> > algorithm into a separate module.  This means that when statically
> > configuring the driver you now need to specify:
> >
> > device	ath
> > device	ath_hal
> > device	ath_rate_onoe
>
> I compiled kernel including above devices and with
>
>   device        wlan
>   device        wlan_wep
>
> then installed new kernel and ifconfig (dmesg from boot -v is attached).
>
> After rebooting, I set IPv4 and IPv6 addresses and those routes. Because
> access point supports only 802.11b, I configured my wireless network
> by 128bit WEP as follows
>
>   /sbin/ifconfig ath0 nwid MY-SSID nwkey 0x01234567890123456789012345 media
> autoselect mode 11b
>
> then I got following error:
>
>   ath0: ath_chan_set: unable to reset channel 8 (2447 Mhz)
>   ath0: ath_chan_set: unable to reset channel 8 (2447 Mhz)
>   ath0: ath_chan_set: unable to reset channel 8 (2447 Mhz)
>   ath0: ath_chan_set: unable to reset channel 12 (2467 Mhz)

Weird, can you send me the regdomain and country code: e.g. the output of 
sysctl dev.ath.0.

>
> It seems that ath0 failed to reset channel.  I manually specified channel,
> then ifconfig shows:
>
>   # ifconfig -v ath0
>   ath0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
>   	inet 192.168.1.11 netmask 0xffffff00 broadcast 192.168.1.255
>   	inet6 fe80::20e:XXXX:XXXX:XXXX%ath0 prefixlen 64 scopeid 0x2
>   	inet6 2001:3e0:XX:X::XX prefixlen 64
>   	ether 00:0e:9b:XX:XX:XX
>   	media: IEEE 802.11 Wireless Ethernet autoselect mode 11b (DS/11Mbps)
>   	status: associated
>   	ssid MY-SSID channel 3 (2422) bssid 00:90:cc:XX:XX:XX
>   	authmode OPEN privacy ON deftxkey 1 powersavemode OFF
>   	powersavesleep 100 txpowmax 14 txpower 60 rtsthreshold 2312 protmode CTS
>   	wme roaming AUTO bintval 100
>   	AC_BE cwmin  5 cwmax 10 aifs  3 txopLimit   0 -acm ack
>   	      cwmin  5 cwmax 10 aifs  3 txopLimit   0 -acm
>   	AC_BK cwmin  5 cwmax 10 aifs  7 txopLimit   0 -acm ack
>   	      cwmin  5 cwmax 10 aifs  7 txopLimit   0 -acm
>   	AC_VI cwmin  4 cwmax  5 aifs  2 txopLimit 188 -acm ack
>   	      cwmin  4 cwmax  5 aifs  2 txopLimit 188 -acm
>   	AC_VO cwmin  3 cwmax  4 aifs  2 txopLimit 102 -acm ack
>   	      cwmin  3 cwmax  4 aifs  2 txopLimit 102 -acm

This doesn't show a key installed.  I don't typically use nwkey; I'll have to 
check it.

>
>   # ifconfig ath0 list chan
>   Channel   1 : 2412* Mhz 11g          Channel  11 : 2462* Mhz 11g
>   Channel   2 : 2417* Mhz 11g          Channel  12 : 2467* Mhz 11a 11g
>   Channel   3 : 2422* Mhz 11g          Channel  13 : 2472* Mhz 11g
>   Channel   4 : 2427* Mhz 11g          Channel  14 : 2484* Mhz 11b
>   Channel   5 : 2432* Mhz 11g          Channel  16 : 5080* Mhz 11a
>   Channel   6 : 2437* Mhz 11g          Channel  34 : 5170* Mhz 11a
>   Channel   7 : 2442* Mhz 11g          Channel  38 : 5190* Mhz 11a
>   Channel   8 : 2447* Mhz 11a 11g      Channel  42 : 5210* Mhz 11a
>   Channel   9 : 2452* Mhz 11g          Channel  46 : 5230* Mhz 11a
>   Channel  10 : 2457* Mhz 11g
>

So it seems channels 8 and 12 are supposedly available.

>   # ifconfig ath0 list scan
>   SSID            BSSID              CHAN RATE  S:N   INT CAPS
>   MY-SSID         00:90:cc:XX:XX:XX    3   11M 43:0   100 EP
>
> Unfortunately, this does not work (default router is not reachable).
>
>   # ping -n 192.168.1.254
>   PING 192.168.1.254 (192.168.1.254): 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
>   ping: sendto: Host is down
>   ^C
>   --- 192.168.1.254 ping statistics ---
>   14 packets transmitted, 0 packets received, 100% packet loss
>
> Disabling WEP on both access point and client is OK:
>
>   # ping -n 192.168.1.254
>   PING 192.168.1.254 (192.168.1.254): 56 data bytes
>   64 bytes from 192.168.1.254: icmp_seq=0 ttl=255 time=3.773 ms
>   64 bytes from 192.168.1.254: icmp_seq=1 ttl=255 time=1.513 ms
>   64 bytes from 192.168.1.254: icmp_seq=2 ttl=255 time=1.362 ms
>   64 bytes from 192.168.1.254: icmp_seq=3 ttl=255 time=1.774 ms
>   ^C
>   --- 192.168.1.254 ping statistics ---
>   4 packets transmitted, 4 packets received, 0% packet loss
>   round-trip min/avg/max/stddev = 1.362/2.106/3.773/0.974 ms
>
> Am I missing something?  Same configuration worked file with FreeBSD
> 5.3-RELEASE on this laptop.

	<...stuff deleted...>

Try using wepkey instead of nwkey.

	Sam
Received on Thu Dec 09 2004 - 00:35:57 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:24 UTC