Re: CFT: newath hal

From: Yuri Lukin <lists_at_swaggi.com>
Date: Wed, 7 Feb 2007 20:54:25 -0500
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_at_bsdap# ifconfig ath0
ath0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> 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_at_bsdap# wlandebug -i ath0 +scan
net.wlan.0.debug: 0x0 => 0x200000<scan>
root_at_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_at_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_at_bsdap# uname -a
FreeBSD bsdap 7.0-CURRENT FreeBSD 7.0-CURRENT #0: Tue Feb  6 15:08:10 UTC 2007
    swaggy_at_bsdap:/usr/src/sys/i386/compile/BSDAP  i386

root_at_bsdap# dmesg | grep ath
ath_hal: 0.9.30.7 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413)
ath0: <Atheros 5212> 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_at_bsdap# uname -a
FreeBSD bsdap 7.0-CURRENT FreeBSD 7.0-CURRENT #0: Tue Feb  6 15:08:10 UTC 2007
    swaggy_at_bsdap:/usr/src/sys/i386/compile/BSDAP  i386

swaggy_at_bsdap# dmesg | grep ath
ath_hal: 0.9.30.7 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413)
ath0: <Atheros 5212> 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_at_bsdap# ifconfig ath0
ath0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> 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 <hostap>
        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_at_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
Received on Thu Feb 08 2007 - 01:06:45 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:05 UTC