From owner-freebsd-current@FreeBSD.ORG Thu Dec 9 13:51:28 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 359AB16A4CE for ; Thu, 9 Dec 2004 13:51:28 +0000 (GMT) Received: from wasley.bl.mmtr.or.jp (wasley.bl.mmtr.or.jp [210.228.173.142]) by mx1.FreeBSD.org (Postfix) with SMTP id AC77B43D39 for ; Thu, 9 Dec 2004 13:51:25 +0000 (GMT) (envelope-from rushani@bl.mmtr.or.jp) Received: (qmail 9890 invoked from network); 9 Dec 2004 22:51:19 +0900 Received: from unknown (HELO localhost) (210.165.212.57) by wasley.bl.mmtr.or.jp with SMTP; 9 Dec 2004 22:51:19 +0900 Date: Thu, 09 Dec 2004 22:50:41 +0900 (JST) Message-Id: <20041209.225041.63112571.rushani@bl.mmtr.or.jp> To: sam@errno.com From: Hideyuki KURASHINA In-Reply-To: <200412081744.27539.sam@errno.com> References: <200412081109.43840.sam@errno.com> <20041209.100008.21874313.rushani@bl.mmtr.or.jp> <200412081744.27539.sam@errno.com> X-URL: http://www.rushani.jp/ X-PGP-Public-Key: http://www.rushani.jp/rushani.asc X-PGP-Fingerprint: A052 6F98 6146 6FE3 91E2 DA6B F2FA 2088 439A DC57 X-RC5-72-Stats: http://stats.distributed.net/participant/psummary.php?project_id=8&id=432320 X-Mailer: Mew version 4.1.52 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit cc: freebsd-current@freebsd.org Subject: Re: WEP does not work? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Dec 2004 13:51:28 -0000 Hi, >>> On Wed, 8 Dec 2004 17:44:27 -0800, Sam Leffler said: > On Wednesday 08 December 2004 05:00 pm, Hideyuki KURASHINA wrote: > > 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. Sure. # sysctl dev.ath.0 dev.ath.0.%desc: Atheros 5212 dev.ath.0.%driver: ath dev.ath.0.%location: slot=2 function=0 dev.ath.0.%pnpinfo: vendor=0x168c device=0x1014 subvendor=0x1014 subdevice=0x057e class=0x020000 dev.ath.0.%parent: pci2 dev.ath.0.countrycode: 395 dev.ath.0.regdomain: 67 dev.ath.0.debug: 0 dev.ath.0.slottime: 20 dev.ath.0.acktimeout: 48 dev.ath.0.ctstimeout: 48 dev.ath.0.softled: 1 dev.ath.0.ledpin: 0 dev.ath.0.txantenna: 0 dev.ath.0.rxantenna: 1 dev.ath.0.txintrperiod: 5 dev.ath.0.diag: 0 dev.ath.0.tpscale: 0 dev.ath.0.rate_interval: 1000 dev.ath.0.rate_raise: 10 dev.ath.0.rate_raise_threshold: 10 Just curiosity, `hw' MIBs print both regdomain and countrycode are 0. # sysctl hw.ath hw.ath.hal.swba_backoff: 0 hw.ath.hal.sw_brt: 10 hw.ath.hal.dma_brt: 2 hw.ath.hal.version: 0.9.14.9 hw.ath.debug: 0 hw.ath.regdomain: 0 hw.ath.countrycode: 0 hw.ath.xchanmode: 1 hw.ath.outdoor: 1 hw.ath.calibrate: 30 hw.ath.dwell: 200 > > # 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. Actually, no. I'll show you my AP side wireless network setting. % dmesg | grep wi0 wi0 at pcmcia0 function 0: PLANEX, GW-NS11H Wireless LAN PC Card, wi0: 802.11 address 00:90:cc:XX:XX:XX wi0: using RF:PRISM3 MAC:ISL3871(PCMCIA) wi0: Intersil Firmware: Primary (1.0.7), Station (1.3.5) wi0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps % ifconfig wi0 wi0: flags=8863 mtu 1500 ssid MY-SSID nwkey ***** powersave off bssid 00:90:cc:XX:XX:XX chan 3 address: 00:90:cc:XX:XX:XX media: IEEE802.11 autoselect mode 11b hostap (DS2 hostap) status: active inet 192.168.1.7 netmask 0xffffff00 broadcast 192.168.1.255 inet alias 192.168.1.254 netmask 0xffffffff broadcast 192.168.1.254 inet6 fe80::290:XXXX:XXXX:XXXX%wi0 prefixlen 64 scopeid 0x4 inet6 2001:3e0:XXX:X::X prefixlen 64 % sudo wiconfig wi0 NIC serial number: [ 99SA01XXXXXX ] Station name: [ ] SSID for IBSS creation: [ MY-SSID ] Current netname (SSID): [ MY-SSID ] Desired netname (SSID): [ MY-SSID ] Current BSSID: [ 00:90:cc:XX:XX:XX ] Channel list: [ 1 2 3 4 5 6 7 8 9 10 11 12 13 14 ] IBSS channel: [ 3 ] Current channel: [ 3 ] Comms quality/signal/noise: [ 0 81 27 ] Promiscuous mode: [ Off ] Port type: [ 6 ] MAC address: [ 00:90:cc:XX:XX:XX ] TX rate (selection): [ 0 ] TX rate (actual speed): [ 2 ] Beacon Interval (current) [msec]: [ 100 ] Maximum data length: [ 2304 ] RTS/CTS handshake threshold: [ 2347 ] fragmentation threshold: [ 2346 ] RSSI -> dBm adjustment: [ 100 ] Create IBSS: [ Off ] Microwave oven robustness: [ 0 ] Roaming mode(1:firm,3:disable): [ 1 ] Access point density: [ 1 ] Power Mgmt (1=on, 0=off): [ 0 ] Max sleep time (msec): [ 100 ] Vendor info: [ Unknown ID: 31 version: 1.3 ] WEP encryption: [ On ] Authentication type (1=OpenSys, 2=Shared Key): [ 1 ] TX encryption key: [ 1 ] Encryption keys: [ 0x01234567890123456789012345 ][ ][ ][ ] > > It seems that ath0 failed to reset channel. I manually specified channel, > > then ifconfig shows: > > > > # ifconfig -v ath0 > > ath0: flags=8843 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. I tried # /sbin/ifconfig ath0 ssid MY-SSID wepmode on weptxkey 1 wepkey 1:0x01234567890123456789012345 wepkey 2:- wepkey 3:- wepkey 4:- media autoselect mode 11b but nothing changed (default router is still not reachable). The card in question is labeled ``Atheros AR5BMB-44''. http://www.rushani.jp/photo/20041209/12090019.jpg -- rushani