Subject: Re: atu0 doesn't work
To: None <current-users@NetBSD.org>
From: David Young <dyoung@pobox.com>
List: current-users
Date: 07/19/2005 12:55:02
On Tue, Jul 19, 2005 at 08:49:23PM +0300, Jarkko Teppo wrote:
> 
> Hi,
> 
> I have an SMC EZ Connect 11Mbps wireless USB adapter (SMC2662W-AR)
> which I tried with current. It's possible to config ssid:s and 
> other similar things (channel etc.) but the machine panics 
> when the interface is brought up (either manually or by dhclient):
> 
> # ifconfig atu0 192.168.1.2
> uvm_fault(0xc085b9c0, 0xc1370000, 0, 1) -> 0xe
> kernel: page fault trap, code=0
> Stopped in pid 573.1 (ifconfig) at netbsd:atu_initial_config+0x100:
> m
> ovzbl 0x934(%ebx,%eax,4),%eax
> db> bt
> atu_initial_config()

Maybe it is here,

        switch (ic->ic_nw_keys[ic->ic_def_txkey].wk_keylen) {
        case 5:
                cmd.EncryptionType = ATU_WEP_40BITS;
                break;

since we have initialized ic->ic_def_txkey in this way (ieee80211_crypto_attach),

        cs->cs_def_txkey = IEEE80211_KEYIX_NONE;

and IEEE80211_KEYIX_NONE == (uint16_t) -1.

Dave

-- 
David Young             OJC Technologies
dyoung@ojctech.com      Urbana, IL * (217) 278-3933