From owner-freebsd-current@FreeBSD.ORG Thu Feb 8 02:06:45 2007 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E255616A402 for ; Thu, 8 Feb 2007 02:06:43 +0000 (UTC) (envelope-from lists@swaggi.com) Received: from rusty.swaggy.net (rusty.swaggy.net [66.103.13.18]) by mx1.freebsd.org (Postfix) with ESMTP id B6F0113C49D for ; Thu, 8 Feb 2007 02:06:43 +0000 (UTC) (envelope-from lists@swaggi.com) Received: from [127.0.0.1] (helo=swaggi.com) by rusty.swaggy.net with esmtp (Exim 4.63 (FreeBSD)) (envelope-from ) id 1HEyUT-000MSG-IG; Wed, 07 Feb 2007 20:54:34 -0500 From: "Yuri Lukin" To: Sam Leffler Date: Wed, 7 Feb 2007 20:54:25 -0500 Message-Id: <20070208014148.M69004@swaggi.com> In-Reply-To: <45C2A9AC.10909@errno.com> References: <45C2A9AC.10909@errno.com> X-Mailer: swaggi.com MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Cc: freebsd-current@freebsd.org Subject: Re: CFT: newath hal X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 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, 08 Feb 2007 02:06:45 -0000 On Thu, 01 Feb 2007 19:02:04 -0800, Sam Leffler wrote > You can find hal version 0.9.30.7 here: > > http://people.freebsd.org/~sam/ath_hal-20070201.tgz > I am having a hard time getting two SR9s to work together. I have two Soekris boxes with an SR9 in each side by side (literally 5 inches away from each other) and I keep seeing "status: no carrier" on the client side: root@bsdap# ifconfig ath0 ath0: flags=8843 mtu 1500 inet 192.168.0.2 netmask 0xffffff00 broadcast 192.168.0.255 ether 00:15:6d:90:03:b4 media: IEEE8802.11 Wireless Ethernet autoselect mode 11g status: no carrier ssid test channel 33 authmode OPEN privacy OFF txpowmax 33 bmiss 7 burst bintval 100 If I let it scan and enable debugging, it will scan through all the available channels (I did set countrycode to 843 in order to use the 900Mhz band) and come up with nothing: root@bsdap# wlandebug -i ath0 +scan net.wlan.0.debug: 0x0 => 0x200000 root@bsdap# ath0: ieee80211_cancel_scan: end passive scan ath0: notify scan done ath0: ieee80211_end_scan: no scan candidate ieee80211_reset_scan: scan set: 3, 4, 13, 14, 16, 23, 24, 26, 33, 34 start chan 4 ath0: ieee80211_next_scan: chan 4->13 ath0: ieee80211_next_scan: chan 13->14 ath0: ieee80211_next_scan: chan 14->16 ath0: ieee80211_next_scan: chan 16->23 ath0: ieee80211_next_scan: chan 23->24 ath0: ieee80211_next_scan: chan 24->26 ath0: ieee80211_next_scan: chan 26->33 ath0: ieee80211_next_scan: chan 33->34 ath0: ieee80211_next_scan: chan 34->3 ath0: ieee80211_next_scan: chan 3->4 ath0: ieee80211_cancel_scan: end passive scan ath0: notify scan done ath0: ieee80211_end_scan: no scan candidate This doesn't look right to me: root@bsdap# athstats 0M current transmit rate -80 rx noise floor Antenna profile: I am using the same image (read-only on a Compact Flash card) on both client and host sides: root@bsdap# uname -a FreeBSD bsdap 7.0-CURRENT FreeBSD 7.0-CURRENT #0: Tue Feb 6 15:08:10 UTC 2007 swaggy@bsdap:/usr/src/sys/i386/compile/BSDAP i386 root@bsdap# dmesg | grep ath ath_hal: 0.9.30.7 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413) ath0: mem 0xa0000000-0xa000ffff irq 10 at device 16.0 on pci0 ath0: using obsolete if_watchdog interface ath0: Ethernet address: 00:15:6d:90:03:b4 ath0: mac 5.9 phy 4.3 radio 4.6 ..and host side: swaggy@bsdap# uname -a FreeBSD bsdap 7.0-CURRENT FreeBSD 7.0-CURRENT #0: Tue Feb 6 15:08:10 UTC 2007 swaggy@bsdap:/usr/src/sys/i386/compile/BSDAP i386 swaggy@bsdap# dmesg | grep ath ath_hal: 0.9.30.7 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413) ath0: mem 0xa0000000-0xa000ffff irq 10 at device 16.0 on pci0 ath0: using obsoleted if_watchdog interface ath0: Ethernet address: 00:15:6d:90:03:a7 ath0: mac 5.9 phy 4.3 radio 4.6 The host side interface looks like this: swaggy@bsdap# ifconfig ath0 ath0: flags=8843 mtu 1500 inet 192.168.0.1 netmask 0xffffff00 broadcast 192.168.0.255 ether 00:15:6d:90:03:a7 media: IEEE 802.11 Wireless Ethernet autoselect mode 11g status: associated ssid test channel 33 bssid 00:15:6d:90:03:a7 authmode OPEN privacy OFF txpowmax 33 bmiss 7 burst dtimperiod 1 bintval 100 swaggy@bsdap# athstats 1 data frames transmit 0M current transmit rate 1 tx frames with no ack marked 15636 rx failed 'cuz of PHY err 15636 CCK timing 3788 beacons transmitted 66 periodic calibrations 1 rfgain value change -96 rx noise floor Antenna profile: [1] tx 1 rx 0 Enabling any kind of debugging on the host side produces no output. I must be missing something here because if I put two regular a/b/g cards (CM9 and Senao NMP-8602+) into these boxes, then I have no problems connecting them together with the same drivers (0.9.30.7 hal on 7.0-CURRENT). I even tried hooking up a pigtail to each card since I don't have any 900mhz antennas but to no avail. However, the a/b/g cards work without pigtail/antenna. The SR9s have been recently tested with latest madwifi-ng under Linux so it's unlikely this is a hardware problem but not completely impossible. I did try switching the cards around but that didn't help either. Looking for some help here on how to troubleshoot this.... Thanks. Yuri