From owner-freebsd-mobile@FreeBSD.ORG Sat Oct 22 17:45:32 2005 Return-Path: X-Original-To: freebsd-mobile@freebsd.org Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 39A9E16A41F for ; Sat, 22 Oct 2005 17:45:32 +0000 (GMT) (envelope-from asstec@matik.com.br) Received: from msrv.matik.com.br (msrv.matik.com.br [200.152.83.14]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8A8EB43D45 for ; Sat, 22 Oct 2005 17:45:29 +0000 (GMT) (envelope-from asstec@matik.com.br) Received: from [192.168.2.2] (nbc.matik.com.br [200.152.83.36]) by msrv.matik.com.br (8.13.3/8.13.1) with ESMTP id j9MHjSla097631 for ; Sat, 22 Oct 2005 14:45:29 -0300 (BRST) (envelope-from asstec@matik.com.br) From: AT Matik Organization: Infomatik To: freebsd-mobile@freebsd.org Date: Sat, 22 Oct 2005 15:45:22 -0300 User-Agent: KMail/1.8.2 References: <200510202325.40995.asstec@matik.com.br> In-Reply-To: <200510202325.40995.asstec@matik.com.br> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200510221545.23407.asstec@matik.com.br> X-Filter-Version: 1.11a (msrv.matik.com.br) X-Virus-Scanned: ClamAV version 0.86.2, clamav-milter version 0.86 on msrv.matik.com.br X-Virus-Status: Clean Subject: here is how to enable Dlink DWL-AG530 X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 22 Oct 2005 17:45:32 -0000 Hi I brought the ATH DWL-AG530 card to work and who is interested can take thi= s=20 steps, I got the idea from madwifi linux driver: You need to copy this http://sourceforge.net/mailarchive/message.php?msg_id=3D8966525 and compile, it worked for me on 5.4 and 6.0-RC1 gcc ar5k.c -o ar5k=20 then you need to change a line in /usr/src/sys/dev/ath/if_ath.c look for: if (!ath_hal_init_channels(ah, chans, IEEE80211_CHAN_MAX, &nchan, cc, HAL_MODE_ALL, outdoor, xchanmode)) { u_int32_t rd; ath_hal_getregdomain(ah, &rd); if_printf(ifp, "unable to collect channel list from hal; " "regdomain likely %u country code %u\n", rd, cc); free(chans, M_TEMP); return EINVAL; } and change return EINVAL; into return 0; compile the kernel or the module then reboot or load the module you should see ath0 but still not usable, now query your messages to find t= he=20 card's mem and then run ark5k on it as ark5k 0xe1800000 0x10 after a new module reload or reboot you can fully use the card as usual ath Jo=E3o On Thursday 20 October 2005 23:25, AT Matik wrote: > Hi > > anybody knows a solution to this: > > ath0: mem 0xe1800000-0xe180ffff irq 12 at device 10.0 on > pci0 ath0: unable to collect channel list from hal; regdomain likely 18 > country code 0 > device_attach: ath0 attach returned 22 > > > It is a DLink DWL-AG530 Pci card > > ath0@pci0:10:0: class=3D0x020000 card=3D0x3a141186 chip=3D0x0013168c rev= =3D0x01 > hdr=3D0x00 > vendor =3D 'Atheros Communications Inc.' > device =3D 'AR5212, AR5213 802.11a/b/g Wireless Adapter' > class =3D network > subclass =3D ethernet > > > thank's > Jo=E3o > > > > > > A mensagem foi scaneada pelo sistema de e-mail e pode ser considerada segura. Service fornecido pelo Datacenter Matik https://datacenter.matik.com.br