From owner-freebsd-wireless@FreeBSD.ORG Mon Jun 10 00:21:47 2013 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id CA0A310C; Mon, 10 Jun 2013 00:21:47 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-qa0-x232.google.com (mail-qa0-x232.google.com [IPv6:2607:f8b0:400d:c00::232]) by mx1.freebsd.org (Postfix) with ESMTP id 819EF10D2; Mon, 10 Jun 2013 00:21:47 +0000 (UTC) Received: by mail-qa0-f50.google.com with SMTP id l18so1993208qak.2 for ; Sun, 09 Jun 2013 17:21:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=AWopmOixK22q9MMKzhBqo+X3BVP177yqKbnTFmKoDpo=; b=I3F5mxx7xdweua2cJLTECyEPf6ns740IkQ/CJEj3ttc3BsFZZZaTNeNgVKkuh0T4B+ g/tOV5LAnD2EbGPPk0Vz9l95tSDxxQLJ8t85BsxjekeFW88I+eAD7Ivubyod1yAdh8IB AlG0Xb2ea3FrMzBws0JCMSs77hTZU8ymNP+QgPVtNCzzrvhRsuRYaNC3+DsarKYU6xKb FDxlod1C9jz2GzUv9yz1fd9wyhLPjClS5wNavtNlcHjtXdcdJuy9xeQqW9PiabUf92yz iEOHNpuz/6zICKGjIhFZNMt5nCSXrgkwuSb4RHXETFm9xgoachs1AC69lv6PjKown10j giuA== MIME-Version: 1.0 X-Received: by 10.224.184.196 with SMTP id cl4mr11716630qab.65.1370823706866; Sun, 09 Jun 2013 17:21:46 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.224.5.65 with HTTP; Sun, 9 Jun 2013 17:21:46 -0700 (PDT) In-Reply-To: <51B4C433.9010702@gmail.com> References: <51B4C433.9010702@gmail.com> Date: Sun, 9 Jun 2013 17:21:46 -0700 X-Google-Sender-Auth: T1a9S4xdEVwYkKQiNImG_7qQzW0 Message-ID: Subject: Re: kldstat doesn't show ath_hal [AR2425] From: Adrian Chadd To: Alexander Kapshuk Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-net@freebsd.org, freebsd-wireless@freebsd.org X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Jun 2013 00:21:47 -0000 Hi, The ath driver right doesn't (currently!) build a separate HAL and ath driver module. It's something I plan on doing sometime soon as part of the embedded MIPS board support though. Anyway, it probed/attached. The AR2425 is just a different bus variant of the AR2424. So it's detected fine. Now, why it isn't working - I'm not sure. Compile it up with ATH_DEBUG, AH_DEBUG nad ATH_DIAGAPI in your kernel config file, then compile up tools/ath/ath/athstats/ and run it for me. Adrian On 9 June 2013 11:06, Alexander Kapshuk wrote: > I've got an Atheros card, AR2425, which is supposed to be supported by > ath_hal(4), according to the man page. > > dmesg|grep -i Ath > ath0: mem 0xd6000000-0xd600ffff irq 16 at device 0.0 on > pci2 > ath0: AR2425 mac 14.2 RF5424 phy 7.0 > > I can see that ath_hal is listed in the kernel config file: > > egrep 'ath_|wlan_' GENERIC > device wlan_wep # 802.11 WEP support > device wlan_ccmp # 802.11 CCMP support > device wlan_tkip # 802.11 TKIP support > device wlan_amrr # AMRR transmit rate control algorithm > device ath_pci # Atheros pci/cardbus glue > device ath_hal # pci/cardbus chip support > device ath_rate_sample # SampleRate tx rate control for ath > > kldstat doesn't show ath_hal as having been loaded. Is that normal? > > kldstat -v|egrep 'wlan|ath_' > 98 pci/ath_pci > 434 wlan > 433 wlan_wep > 432 wlan_tkip > 431 wlan_ccmp > 430 wlan_amrr > 436 wlan_sta 435 wlan_ratectl_none > > Long story short, I can't seem to be able to configure my wireless, despite > following the instructions given in the handbook. > > Here's my /etc/rc.conf: > cat /etc/rc.conf > hostname="box0" > sshd_enable="YES" > moused_enable="YES" > ntpd_enable="YES" > powerd_enable="YES" > # Set dumpdev to "AUTO" to enable crash dumps, "NO" to disable > dumpdev="AUTO" > wlans_ath0="wlan0" > ifconfig_wlan0="ssid plan9 WPA DHCP" > hald_enable="YES" > dbus_enable="YES" > linux_enable="YES" > ifconfig_re0="DHCP" > > And my /etc/wpa_supplicant.conf: > cat /etc/wpa_supplicant.conf > ctrl_interface=/var/run/wpa_supplicant > eapol_version=2 > ap_scan=1 > fast_reauth=1 > > network={ > ssid="plan9" > psk=wpa_passphrase-generated psk > } > ifconfig -a > ath0: flags=8843 metric 0 mtu 2290 > ether 00:24:2c:5e:06:f2 > nd6 options=29 > media: IEEE 802.11 Wireless Ethernet autoselect mode 11g > status: associated > re0: flags=8843 metric 0 mtu 1500 > options=8209b > ether 00:23:8b:b2:e5:1f > inet 192.168.1.3 netmask 0xffffff00 broadcast 192.168.1.255 > nd6 options=29 > media: Ethernet autoselect (100baseTX ) > status: active > lo0: flags=8049 metric 0 mtu 16384 > options=600003 > inet6 ::1 prefixlen 128 > inet6 fe80::1%lo0 prefixlen 64 scopeid 0xb > inet 127.0.0.1 netmask 0xff000000 > nd6 options=21 > wlan0: flags=8843 metric 0 mtu 1500 > ether 00:24:2c:5e:06:f2 > nd6 options=29 > media: IEEE 802.11 Wireless Ethernet autoselect (autoselect) > status: no carrier > ssid plan9 channel 1 (2412 MHz 11g) > regdomain 103 indoor ecm authmode WPA1+WPA2/802.11i privacy OFF > txpower 20 bmiss 7 scanvalid 450 bgscan bgscanintvl 300 bgscanidle > 250 > roam:rssi 7 roam:rate 5 protmode CTS wme burst roaming MANUAL > > 'ifconfig wlan0 list scan' returns nothing. > uname -a > FreeBSD box0 9.1-RELEASE-p3 FreeBSD 9.1-RELEASE-p3 #0: Mon Apr 29 18:11:52 > UTC 2013 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC > i386 > > I've tried everything I could think of, still no luck. > > Any pointers would be appreciated. > > Alexander Kapshuk. > > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"