here is how to enable Dlink DWL-AG530

AT Matik asstec at matik.com.br
Sat Oct 22 10:45:32 PDT 2005


Hi
I brought the ATH DWL-AG530 card to work and who is interested can take this 
steps, I got the idea from madwifi linux driver:

You need to copy this

http://sourceforge.net/mailarchive/message.php?msg_id=8966525

and compile, it worked for me on 5.4 and 6.0-RC1

gcc ar5k.c -o ar5k 


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 the 
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ão





On Thursday 20 October 2005 23:25, AT Matik wrote:
> Hi
>
> anybody knows a solution to this:
>
> ath0: <Atheros 5212> 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 at pci0:10:0: class=0x020000 card=0x3a141186 chip=0x0013168c rev=0x01
> hdr=0x00
>     vendor   = 'Atheros Communications Inc.'
>     device   = 'AR5212, AR5213 802.11a/b/g Wireless Adapter'
>     class    = network
>     subclass = ethernet
>
>
> thank's
> João
>
>
>
>
>
>







A mensagem foi scaneada pelo sistema de e-mail e pode ser considerada segura.
Service fornecido pelo Datacenter Matik  https://datacenter.matik.com.br


More information about the freebsd-mobile mailing list