On 12/19/06, Daniel Drake <[EMAIL PROTECTED]> wrote:
> Jon Smirl wrote:
> > ifup eth1
> > [ 1457.671472] SoftMAC: Associate: Scanning for networks first.
> > [ 1457.671487] SoftMAC: Associate: failed to initiate scan. Is device up?
>
> You have some configuration agent running which is screwing things up.
> The driver does *not* do this when you bring the interface up, it just
> sits on the default channel.

I'm using Ubuntu, it may have some agent going that I don't know about.

>From these traces it looks like there is a missing mutex or something
that is needed to keep thing synchronized given the way Ubuntu brings
the network up. When softmac called back into the driver and the
driver wasn't fully initialized, it should have held softmac up
instead of returning an error.


I disabled auto start in /etc/network/interfaces
auto lo
iface lo inet loopback

iface eth0 inet dhcp
auto eth0

iface eth1 inet dhcp
wireless-essid Smirl
wireless-key FFFFFFFFF

When I boot the zd1211rw module was loaded correctly.

Now I type "ifup eth1" and get this trace.

[ 3487.283681] ieee80211_crypt: registered algorithm 'WEP'
[ 3487.326061] zd1211rw 5-3.6:1.0: set_security()
[ 3487.326069] zd1211rw 5-3.6:1.0: set_security()    .active_key = 0
[ 3487.326074] zd1211rw 5-3.6:1.0: set_security()    .level = 1
[ 3487.326078] zd1211rw 5-3.6:1.0: set_security()    .enabled = 1
[ 3487.326082] zd1211rw 5-3.6:1.0: set_security()    .encrypt = 1
[ 3487.330038] SoftMAC: Associate: Scanning for networks first.
[ 3487.330047] SoftMAC: Associate: failed to initiate scan. Is device up?
[ 3487.386892] zd1211rw 5-3.6:1.0: zd_usb_enable_int()
[ 3487.386902] zd1211rw 5-3.6:1.0: zd_usb_enable_int() submit urb cf5696c0
[ 3487.386971] zd1211rw 5-3.6:1.0: zd_chip_set_basic_rates_locked() ff0f
[ 3487.388904] zd1211rw 5-3.6:1.0: zd_chip_lock_phy_regs() CR_REG1: 0xa0 -> 0x20
[ 3487.390900] zd1211rw 5-3.6:1.0: zd_chip_unlock_phy_regs() CR_REG1:
0x20 -> 0xa0
[ 3487.392914] zd1211rw 5-3.6:1.0: zd_chip_lock_phy_regs() CR_REG1: 0xa0 -> 0x20
[ 3487.393571] zd1211rw 5-3.6:1.0: zd_rf_set_channel() channel: 1
[ 3487.398539] zd1211rw 5-3.6:1.0: update_pwr_int() channel 1 pwr_int 0x54
[ 3487.399420] zd1211rw 5-3.6:1.0: update_ofdm_cal() channel 1
ofdm_cal 36M 0xba 48M 0xb2 54M 0xa5
[ 3487.400291] zd1211rw 5-3.6:1.0: update_pwr_cal() channel 1 pwr_cal 0xd7
[ 3487.403893] zd1211rw 5-3.6:1.0: patch_cck_gain() patching value 12
[ 3487.406897] zd1211rw 5-3.6:1.0: zd_chip_unlock_phy_regs() CR_REG1:
0x20 -> 0xa0
[ 3487.408028] zd1211rw 5-3.6:1.0: zd_usb_enable_rx()
[ 3487.409146] zd1211rw 5-3.6:1.0: housekeeping_enable()
[ 3487.409160] zd1211rw 5-3.6:1.0: bssinfo_change() changes: 7
[ 3487.410401] zd1211rw 5-3.6:1.0: zd_chip_set_rts_cts_rate_locked()
rts_rate=0 preamble=0
[ 3487.411017] zd1211rw 5-3.6:1.0: zd_chip_set_basic_rates_locked() ff0f
[ 3487.411647] zd1211rw 5-3.6:1.0: zd_chip_set_multicast_hash() hash l
0x00000000 h 0x80000000
[ 3487.412543] zd1211rw 5-3.6:1.0: zd_mac_set_multicast_list() mc addr
01:00:5e:00:00:01
[ 3487.415497] zd1211rw 5-3.6:1.0: zd_mac_set_multicast_list() mc addr
01:00:5e:00:00:01
[ 3487.415510] zd1211rw 5-3.6:1.0: zd_chip_set_multicast_hash() hash l
0x00000001 h 0x80000000
[ 3487.416969] zd1211rw 5-3.6:1.0: zd_mac_set_multicast_list() mc addr
01:00:5e:00:00:01
[ 3487.416984] zd1211rw 5-3.6:1.0: zd_chip_set_multicast_hash() hash l
0x00000001 h 0x80000000

I wait for DHCP to time out, and type "iwconfig eth1 essid Smirl"

[ 3688.373698] SoftMAC: Canceling existing associate request!
[ 3688.373725] SoftMAC: Associate: Scanning for networks first.
[ 3688.373737] zd1211rw 5-3.6:1.0: set_channel() channel 1
[ 3688.374837] zd1211rw 5-3.6:1.0: zd_chip_lock_phy_regs() CR_REG1: 0xa0 -> 0x20
[ 3688.375479] zd1211rw 5-3.6:1.0: zd_rf_set_channel() channel: 1
[ 3688.379454] zd1211rw 5-3.6:1.0: update_pwr_int() channel 1 pwr_int 0x54
[ 3688.380079] zd1211rw 5-3.6:1.0: update_ofdm_cal() channel 1
ofdm_cal 36M 0xba 48M 0xb2 54M 0xa5
[ 3688.380711] zd1211rw 5-3.6:1.0: update_pwr_cal() channel 1 pwr_cal 0xd7
[ 3688.383818] zd1211rw 5-3.6:1.0: patch_cck_gain() patching value 12
[ 3688.385805] zd1211rw 5-3.6:1.0: zd_chip_unlock_phy_regs() CR_REG1:
0x20 -> 0xa0
[ 3688.406540] zd1211rw 5-3.6:1.0: set_channel() channel 2
[ 3688.409770] zd1211rw 5-3.6:1.0: zd_chip_lock_phy_regs() CR_REG1: 0xa0 -> 0x20
[ 3688.410275] zd1211rw 5-3.6:1.0: zd_rf_set_channel() channel: 2
[ 3688.414158] zd1211rw 5-3.6:1.0: update_pwr_int() channel 2 pwr_int 0x5c
...
[ 3688.668910] zd1211rw 5-3.6:1.0: update_pwr_cal() channel 10 pwr_cal 0xd7
[ 3688.671264] zd1211rw 5-3.6:1.0: patch_cck_gain() patching value 12
[ 3688.673261] zd1211rw 5-3.6:1.0: zd_chip_unlock_phy_regs() CR_REG1:
0x20 -> 0xa0
[ 3688.694038] zd1211rw 5-3.6:1.0: set_channel() channel 11
[ 3688.695222] zd1211rw 5-3.6:1.0: zd_chip_lock_phy_regs() CR_REG1: 0xa0 -> 0x20
[ 3688.695858] zd1211rw 5-3.6:1.0: zd_rf_set_channel() channel: 11
[ 3688.699599] zd1211rw 5-3.6:1.0: update_pwr_int() channel 11 pwr_int 0x5c
[ 3688.700224] zd1211rw 5-3.6:1.0: update_ofdm_cal() channel 11
ofdm_cal 36M 0xba 48M 0xb2 54M 0xa5
[ 3688.700853] zd1211rw 5-3.6:1.0: update_pwr_cal() channel 11 pwr_cal 0xd7
[ 3688.703204] zd1211rw 5-3.6:1.0: patch_cck_gain() patching value 12
[ 3688.705201] zd1211rw 5-3.6:1.0: zd_chip_unlock_phy_regs() CR_REG1:
0x20 -> 0xa0
[ 3688.725982] SoftMAC: Scanning finished: scanned 11 channels
starting with channel 1
[ 3688.726010] SoftMAC: Queueing Authentication Request to 00:09:5b:24:77:f6
[ 3688.726015] SoftMAC: Cannot associate without being authenticated,
requested authentication
[ 3688.726021] SoftMAC: Already requested authentication, waiting...
[ 3688.726026] zd1211rw 5-3.6:1.0: set_channel() channel 8
[ 3688.727164] zd1211rw 5-3.6:1.0: zd_chip_lock_phy_regs() CR_REG1: 0xa0 -> 0x20
[ 3688.727807] zd1211rw 5-3.6:1.0: zd_rf_set_channel() channel: 8
[ 3688.731538] zd1211rw 5-3.6:1.0: update_pwr_int() channel 8 pwr_int 0x5c
[ 3688.732162] zd1211rw 5-3.6:1.0: update_ofdm_cal() channel 8
ofdm_cal 36M 0xba 48M 0xb2 54M 0xa5
[ 3688.732789] zd1211rw 5-3.6:1.0: update_pwr_cal() channel 8 pwr_cal 0xd7
[ 3688.735144] zd1211rw 5-3.6:1.0: patch_cck_gain() patching value 12
[ 3688.737140] zd1211rw 5-3.6:1.0: zd_chip_unlock_phy_regs() CR_REG1:
0x20 -> 0xa0
[ 3688.737676] SoftMAC: Sent Authentication Request to 00:09:5b:24:77:f6.
[ 3688.740134] SoftMAC: Open Authentication completed with 00:09:5b:24:77:f6
[ 3688.740153] zd1211rw 5-3.6:1.0: set_channel() channel 8
[ 3688.741134] zd1211rw 5-3.6:1.0: zd_chip_lock_phy_regs() CR_REG1: 0xa0 -> 0x20
[ 3688.741774] zd1211rw 5-3.6:1.0: zd_rf_set_channel() channel: 8
[ 3688.745763] zd1211rw 5-3.6:1.0: update_pwr_int() channel 8 pwr_int 0x5c
[ 3688.746386] zd1211rw 5-3.6:1.0: update_ofdm_cal() channel 8
ofdm_cal 36M 0xba 48M 0xb2 54M 0xa5
[ 3688.747017] zd1211rw 5-3.6:1.0: update_pwr_cal() channel 8 pwr_cal 0xd7
[ 3688.750115] zd1211rw 5-3.6:1.0: patch_cck_gain() patching value 12
[ 3688.752110] zd1211rw 5-3.6:1.0: zd_chip_unlock_phy_regs() CR_REG1:
0x20 -> 0xa0
[ 3688.752756] SoftMAC: sent association request!
[ 3688.755975] SoftMAC: associated!

-- 
Jon Smirl
[EMAIL PROTECTED]

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Zd1211-devs mailing list - http://zd1211.ath.cx/
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/zd1211-devs

Reply via email to