Setting up atheros (168c:001c) wireless NIC in FreeBSD

From: Ashish Shukla आशीष शुक्ल <wahjava.ml_at_gmail.com>
Date: Sat, 20 Sep 2008 03:53:10 +0530
Hi all,

I've just booted with 8.0-CURRENT :) . And expecting my Atheros 802.11
a/b/g Wireless NIC to work with the latest HAL and driver, but to my
surprise it isn't even able to scan :( .

----8<----8<----
% pciconf -l
hostb0_at_pci0:0:0:0:      class=0x060000 card=0x30d9103c chip=0x2a008086 rev=0x03 hdr=0x00
vgapci0_at_pci0:0:2:0:     class=0x030000 card=0x30d9103c chip=0x2a028086 rev=0x03 hdr=0x00
vgapci1_at_pci0:0:2:1:     class=0x038000 card=0x30d9103c chip=0x2a038086 rev=0x03 hdr=0x00
hdac0_at_pci0:0:27:0:      class=0x040300 card=0x505114f1 chip=0x284b8086 rev=0x03 hdr=0x00
pcib1_at_pci0:0:28:0:      class=0x060400 card=0x30d9103c chip=0x283f8086 rev=0x03 hdr=0x01
uhci0_at_pci0:0:29:0:      class=0x0c0300 card=0x30d9103c chip=0x28308086 rev=0x03 hdr=0x00
uhci1_at_pci0:0:29:1:      class=0x0c0300 card=0x30d9103c chip=0x28318086 rev=0x03 hdr=0x00
uhci2_at_pci0:0:29:2:      class=0x0c0300 card=0x30d9103c chip=0x28328086 rev=0x03 hdr=0x00
ehci0_at_pci0:0:29:7:      class=0x0c0320 card=0x30d9103c chip=0x28368086 rev=0x03 hdr=0x00
pcib2_at_pci0:0:30:0:      class=0x060401 card=0x30d9103c chip=0x24488086 rev=0xf3 hdr=0x01
isab0_at_pci0:0:31:0:      class=0x060100 card=0x30d9103c chip=0x28158086 rev=0x03 hdr=0x00
atapci0_at_pci0:0:31:1:    class=0x01018a card=0x30d9103c chip=0x28508086 rev=0x03 hdr=0x00
atapci1_at_pci0:0:31:2:    class=0x010601 card=0x30d9103c chip=0x28298086 rev=0x03 hdr=0x00
none0_at_pci0:0:31:3:      class=0x0c0500 card=0x30d9103c chip=0x283e8086 rev=0x03 hdr=0x00
ath0_at_pci0:1:0:0:        class=0x020000 card=0x137b103c chip=0x001c168c rev=0x01 hdr=0x00
rl0_at_pci0:2:1:0: class=0x020000 card=0x30d9103c chip=0x813910ec rev=0x10 hdr=0x00

% dmesg|tail -11
ath_hal: 0.10.5.6 (AR5210, AR5211, AR5212, AR5416, RF5111, RF5112, RF2413, RF5413, RF2133, RF2425, RF2417)
ath0: <Atheros 5424/2424> mem 0x91300000-0x9130ffff irq 16 at device 0.0 on pci1
ath0: [ITHREAD]
ath0: WARNING: using obsoleted if_watchdog interface
ath0: mac 14.2 phy 7.0 radio 10.2
ath0: detached
ath_hal: 0.10.5.10 (AR5210, AR5211, AR5212, AR5416, RF5111, RF5112, RF2413, RF5413, RF2133, RF2425, RF2417)
ath0: <Atheros 5424/2424> mem 0x91300000-0x9130ffff irq 16 at device 0.0 on pci1
ath0: [ITHREAD]
ath0: WARNING: using obsoleted if_watchdog interface
ath0: mac 14.2 phy 7.0 radio 10.2

% ifconfig ath0
ath0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 2290
        ether 00:1f:3a:1a:50:b3
        media: IEEE 802.11 Wireless Ethernet autoselect (autoselect)
        status: no carrier

% sudo ifconfig ath0 scan
Password:
ifconfig: unable to get scan results

% sudo ifconfig ath0 bgscan
ifconfig: SIOCS80211: Invalid argument

% sudo ifconfig wlan create wlandev ath0
wlan0

% sudo wpa_supplicant -Dbsd -iwlan0 -c/etc/wpa_supplicant.conf
Trying to associate with 00:1e:2a:76:f4:60 (SSID='18-B-PARVATIYA' freq=2437 MHz)
Authentication with 00:1e:2a:76:f4:60 timed out.
Trying to associate with 00:1e:2a:76:f4:60 (SSID='18-B-PARVATIYA' freq=2437 MHz)
Authentication with 00:1e:2a:76:f4:60 timed out.
Trying to associate with 00:1e:2a:76:f4:60 (SSID='18-B-PARVATIYA' freq=2437 MHz)
Authentication with 00:1e:2a:76:f4:60 timed out.
Trying to associate with 00:1e:2a:76:f4:60 (SSID='18-B-PARVATIYA' freq=2437 MHz)
Authentication with 00:1e:2a:76:f4:60 timed out.
Trying to associate with 00:1e:2a:76:f4:60 (SSID='18-B-PARVATIYA' freq=2437 MHz)
Authentication with 00:1e:2a:76:f4:60 timed out.
---->8---->8----

I've tested my wireless NIC working fine in Gentoo GNU/Linux with
ath_hal 0.10.5.6. And in FreeBSD 8.0-CURRENT, I've tried both versions
of ath_hal (i.e. 0.10.5.6 and 0.10.5.10), but no success. BtW, I've
loaded wlan_tkip, wlan_ccmp, and wlan_wep kernel modules.

Any ideas how to get this wireless NIC working in FreeBSD 8-CURRENT ?

TIA
Ashish
-- 
·-- ·- ···· ·--- ·- ···- ·- ·--·-· --· -- ·- ·· ·-·· ·-·-·- -·-· --- --
()  ascii ribbon campaign - against HTML e-mail
/\  www.asciiribbon.org   - against proprietary attachments

Received on Fri Sep 19 2008 - 20:23:07 UTC

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