Subject: Cisco Wlan 340 Problems
To: None <tech-net@netbsd.org>
From: Michael Eberle <m_eberle@arcor.de>
List: tech-net
Date: 06/30/2005 23:12:03
Hello,

i have a problem to setup a Cisco wlan pcmcia Card 340
on a ibm Thinkpad R40e with NetBSD 2.0.
I am able to configure the interface an0.
ifconfig an0 inet 192.168.0.14 nwid ssid-name netmask 255.255.255.0
The printout of ifconfig an0:

an0: flags=8a63<UP,BROADCAST,NOTRAILERS,RUNNING,ALLMULTI,SIMPLEX,MULTICAST> mtu 1500
	ssid ssid-name
	powersave off
	bssid 00:40:96:37:fe:b2 chan 7
	address: 00:40:96:38:b8:a0
	media: IEEE802.11 DS11
	status: active
	inet 192.168.0.14 netmask 0xffffff00 broadcast 192.168.0.255
	inet6 fe80::240:96ff:fe38:b8a0%an0 prefixlen 64 scopeid 0x9

Then i test the connection, for example: ping 192.168.0.1
no answer!
tcpdump on the notebook says:

01:05:42.735840 0:40:96:37:fe:b2 > 1:40:96:0:0:0 snap ui/C len=37
01:05:45.445304 arp who-has 192.168.0.1 tell 192.168.0.14
01:05:45.448161 0:80:5f:3e:b6:78 > 0:40:96:38:b8:a0 null I (s=4,r=0,R) len=48
01:05:46.450065 arp who-has 192.168.0.1 tell 192.168.0.14
01:05:46.452557 0:80:5f:3e:b6:78 > 0:40:96:38:b8:a0 null I (s=4,r=0,R) len=48
01:05:47.159264 CDP v2, ttl=180s DevID '00409637feb2' Addr (1): IPv4 192.168.0.10 PortID 'awc0' CAP 0x00[|cdp]
01:05:47.460035 arp who-has 192.168.0.1 tell 192.168.0.14
01:05:47.462509 0:80:5f:3e:b6:78 > 0:40:96:38:b8:a0 null I (s=4,r=0,R) len=48

The AP list the Clients Mac Address as well athenticated and
established... For testing reasons, WEB and other "security" features
are deactivated!

Here the dmesg of the notebook:

NetBSD 2.0 (GENERIC_LAPTOP) #0: Wed Dec  1 11:01:08 UTC 2004
	builds@build:/big/builds/ab/netbsd-2-0-RELEASE/i386/200411300000Z-obj/big/builds/ab/netbsd-2-0-RELEASE/src/sys/arch/i386/compile/GENERIC_LAPTOP
total memory = 239 MB
avail memory = 228 MB
BIOS32 rev. 0 found at 0xfd6e0
PCI BIOS rev. 2.1 found at 0xfd84c
pcibios: config mechanism [1][x], special cycles [x][x], last bus 4
PCI IRQ Routing Table rev. 1.0 found at 0xfdef0, size 192 bytes (10 entries)
PCI Interrupt Router at 000:07:0 (Acer Labs M1543 PCI-ISA Bridge compatible)
------------------------------------------
  device vendor product pin PIRQ IRQ stage
------------------------------------------
000:03:0 0x10b9 0x5457   A  0x06  11  0    already assigned
000:04:0 0x10b9 0x5451   A  0x07  11  0    already assigned
000:11:0 0x14e4 0x170d   A  0x02  11  0    already assigned
000:12:0 0x104c 0xac56   A  0x01  11  0    already assigned
001:05:0 0x1002 0x4337   A  0x00  11  0    already assigned
------------------------------------------
PCI fixup examining 1002:cab2
PCI fixup examining 1002:7010
PCI fixup examining 1002:4337
PCI bridge 0: primary 0, secondary 1, subordinate 1
PCI fixup examining 10b9:5237
PCI fixup examining 10b9:5457
PCI fixup examining 10b9:5451
PCI fixup examining 10b9:7101
PCI fixup examining 10b9:1533
PCI fixup examining 14e4:170d
PCI fixup examining 104c:ac56
PCI bridge 1: primary 0, secondary 2, subordinate 2
PCI fixup examining 10b9:5229
PCI bus #2 is the last bus
[System BIOS Setting]-----------------------
  device vendor product
  register space address    size
--------------------------------------------
000:00:0 0x1002 0xcab2 
	10h mem  0xec000000 0x04000000
	14h mem  0xe8013000 0x00001000
		[OK]
000:01:0 0x1002 0x7010 
		[OK]
000:02:0 0x10b9 0x5237 
	10h mem  0xe8010000 0x00001000
		[OK]
000:03:0 0x10b9 0x5457 
	10h mem  0xe8011000 0x00001000
	14h port 0x00008400 0x00000100
		[OK]
000:04:0 0x10b9 0x5451 
	10h port 0x00008800 0x00000100
	14h mem  0xe8012000 0x00001000
		[OK]
000:06:0 0x10b9 0x7101 
		[OK]
000:07:0 0x10b9 0x1533 
		[OK]
000:11:0 0x14e4 0x170d 
	10h mem  0xe8000000 0x00010000
		[OK]
000:12:0 0x104c 0xac56 
	10h mem  0x50000000 0x00001000
		[OK]
000:15:0 0x10b9 0x5229 
	20h port 0x00008080 0x00000010
		[OK]
001:05:0 0x1002 0x4337 
	10h mem  0xf8000000 0x04000000
	14h port 0x0000d000 0x00000100
	18h mem  0xe8100000 0x00010000
		[OK]
--------------------------[  0 devices bogus]
 Physical memory end: 0x0ef6c000
 PCI memory mapped I/O space start: 0x0f000000
mainbus0 (root)
cpu0 at mainbus0: (uniprocessor)
cpu0: Intel Mobile Pentium 4 (686-class), 1196.30 MHz, id 0xf27
cpu0: features bfebf9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR>
cpu0: features bfebf9ff<PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX>
cpu0: features bfebf9ff<FXSR,SSE,SSE2,SS,HTT,TM,SBF>
cpu0: I-cache 12K uOp cache 8-way, D-cache 8 KB 64B/line 4-way
cpu0: L2 cache 512 KB 64B/line 8-way
cpu0: ITLB 4K/4M: 128 entries
cpu0: DTLB 4K/4M: 64 entries
cpu0: 16 page colors
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
pchb0 at pci0 dev 0 function 0
pchb0: ATI Technologies product 0xcab2 (rev. 0x02)
agp at pchb0 not configured
ppb0 at pci0 dev 1 function 0: ATI Technologies product 0x7010 (rev. 0x00)
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled
vga1 at pci1 dev 5 function 0: ATI Technologies Radeon Mobility M6 (rev. 0x00)
wsdisplay0 at vga1 kbdmux 1: console (80x25, vt100 emulation)
wsmux1: connecting to wsdisplay0
ohci0 at pci0 dev 2 function 0: Acer Labs M5237 USB Host Controller (rev. 0x03)
ohci0: interrupting at irq 11
ohci0: OHCI version 1.0, legacy support
usb0 at ohci0: USB revision 1.0
uhub0 at usb0
uhub0: Acer Labs OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
Acer Labs product 0x5457 (modem communications) at pci0 dev 3 function 0 not configured
autri0 at pci0 dev 4 function 0: Acer Labs M5451 AC-Link Controller Audio Device (rev. 0x02)
autri0: interrupting at irq 11
autri0: ac97: Analog Devices AD1981B codec; headphone, 20 bit DAC, no 3D stereo
audio0 at autri0: full duplex, mmap, independent
midi0 at autri0: 4DWAVE MIDI UART
Acer Labs M7101 Power Management Controller (miscellaneous bridge) at pci0 dev 6 function 0 not configured
pcib0 at pci0 dev 7 function 0
pcib0: Acer Labs M1543 PCI-ISA Bridge (rev. 0x00)
bge0 at pci0 dev 11 function 0: Broadcom BCM5901 Fast Ethernet
bge0: interrupting at irq 11
bge0: ASIC BCM5705 A1 (0x3001), Ethernet address 00:06:1b:d0:5a:bb
brgphy0 at bge0 phy 1: BCM5705 1000BASE-T media interface, rev. 1
brgphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
cbb0 at pci0 dev 12 function 0: Texas Instruments PCI1510 PCI-CardBus Bridge (rev. 0x00)
aceride0 at pci0 dev 15 function 0
aceride0: Acer Labs M5229 UDMA IDE Controller (rev. 0xc4)
aceride0: bus-master DMA support present
aceride0: primary channel configured to compatibility mode
aceride0: primary channel interrupting at irq 14
atabus0 at aceride0 channel 0
aceride0: secondary channel configured to compatibility mode
aceride0: secondary channel interrupting at irq 15
atabus1 at aceride0 channel 1
isa0 at pcib0
lpt2 at isa0 port 0x3bc-0x3bf irq : polled
pckbc0 at isa0 port 0x60-0x64
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
pcppi0 at isa0 port 0x61
midi1 at pcppi0: PC speaker
sysbeep0 at pcppi0
isapnp0 at isa0 port 0x279: ISA Plug 'n Play device support
npx0 at isa0 port 0xf0-0xff: using exception 16
isapnp0: no ISA Plug 'n Play devices found
cbb0: interrupting at irq 11
cardslot0 at cbb0 slot 0 flags 0
cardbus0 at cardslot0: bus 2 device 0
pcmcia0 at cardslot0
apm0 at mainbus0: bogus 32-bit code segment start
apm0: kernel APM support disabled
Kernelized RAIDframe activated
an0 at pcmcia0 function 0: Cisco Systems, 340 Series Wireless LAN Adapter
an0: Cisco Systems 340 Series (firmware 5.30.17)
an0: 802.11 address: 00:40:96:38:b8:a0, channel: 1-13
an0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
wd0 at atabus0 drive 0: <HITACHI_DK23EA-30B>
wd0: drive supports 16-sector PIO transfers, LBA addressing
wd0: 25628 MB, 55542 cyl, 15 head, 63 sec, 512 bytes/sect x 52487989 sectors
wd0: 32-bit data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
wd0(aceride0:0:0): using PIO mode 4, Ultra-DMA mode 5 (Ultra/100) (using DMA data transfers)
atapibus0 at atabus1: 2 targets
cd0 at atapibus0 drive 0: <HL-DT-STDVD-ROM GDR8081N, , 0012> cdrom removable
cd0: 32-bit data port
cd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)
cd0(aceride0:1:0): using PIO mode 4, Ultra-DMA mode 2 (Ultra/33) (using DMA data transfers)
boot device: wd0
root on wd0a dumps on wd0b
root file system type: ffs
wsdisplay0: screen 1 added (80x25, vt100 emulation)
wsdisplay0: screen 2 added (80x25, vt100 emulation)
wsdisplay0: screen 3 added (80x25, vt100 emulation)
wsdisplay0: screen 4 added (80x25, vt100 emulation)

Regards
Michael


-- 
* Michael Eberle
* Barkauer Str. 16
* 24145 Kronsburg
* Tel.:   0431/7098740
* Mobil : 0173/4196243
* no HTML in Mails
* NetBSD: Free AND Open !