Manfid typographical error in hostap_cs.c for Dlink dwl-650p?

re2823 at Safe-mail.net re2823
Sun Dec 24 03:36:41 PST 2006


> Have you started your pcmcia socket driver? Can you paster you dmesg 
> right after boot.

I _think_ the pcmcia socket driver is started, as I can see Yenta
entries in the dmesg output (please excuse me, I don't understand
much about pcmcia/cardbus, other than knowing that this is a 16-bit
pcmcia (isa?) card. The machine/os is just a standard Debian Etch
install on a Thinkpad T21. Here's the dmesg:

# dmesg
Linux version 2.6.18-3-686 (Debian 2.6.18-7) (waldi at debian.org) (gcc version 4.1.2 20061115 (prerelease) (Debian 4.1.1-20)) #1 SMP Mon Dec 4 16:41:14 UTC 2006
BIOS-provided physical RAM map:
 BIOS-e820: 0000000000000000 - 000000000009f800 (usable)
 BIOS-e820: 000000000009f800 - 00000000000a0000 (reserved)
 BIOS-e820: 00000000000e0000 - 0000000000100000 (reserved)
 BIOS-e820: 0000000000100000 - 000000001fff0000 (usable)
 BIOS-e820: 000000001fff0000 - 000000001fffec00 (ACPI data)
 BIOS-e820: 000000001fffec00 - 0000000020000000 (ACPI NVS)
 BIOS-e820: 00000000fff80000 - 0000000100000000 (reserved)
0MB HIGHMEM available.
511MB LOWMEM available.
On node 0 totalpages: 131056
  DMA zone: 4096 pages, LIFO batch:0
  Normal zone: 126960 pages, LIFO batch:31
DMI 2.3 present.
ACPI: RSDP (v000 PTLTD                                 ) @ 0x000f7120
ACPI: RSDT (v001 PTLTD    RSDT   0x06041160  LTP 0x00000000) @ 0x1fff4c5d
ACPI: FADT (v001 IBM    TP-T21   0x06041160  0x00000000) @ 0x1fffeb65
ACPI: BOOT (v001 PTLTD  $SBFTBL$ 0x06041160  LTP 0x00000001) @ 0x1fffebd9
ACPI: DSDT (v001 IBM    TP-T21   0x06041160 MSFT 0x0100000c) @ 0x00000000
ACPI: PM-Timer IO Port: 0x1008
Allocating PCI resources starting at 30000000 (gap: 20000000:dff80000)
Detected 697.041 MHz processor.
Built 1 zonelists.  Total pages: 131056
Kernel command line: root=/dev/hda5 ro vga=0x33c console=ttyS0,115200 console=tty0
Local APIC disabled by BIOS -- you can enable it with "lapic"
mapped APIC to ffffd000 (0140a000)
Enabling fast FPU save and restore... done.
Enabling unmasked SIMD FPU exception support... done.
Initializing CPU#0
PID hash table entries: 2048 (order: 11, 8192 bytes)
Console: colour dummy device 80x25
Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
Memory: 512056k/524224k available (1543k kernel code, 11564k reserved, 574k data, 196k init, 0k highmem)
Checking if this processor honours the WP bit even in supervisor mode... Ok.
Calibrating delay using timer specific routine.. 1395.06 BogoMIPS (lpj=2790125)
Security Framework v1.0.0 initialized
SELinux:  Disabled at boot.
Capability LSM initialized
Mount-cache hash table entries: 512
CPU: After generic identify, caps: 0383f9ff 00000000 00000000 00000000 00000000 00000000 00000000
CPU: After vendor identify, caps: 0383f9ff 00000000 00000000 00000000 00000000 00000000 00000000
CPU: L1 I cache: 16K, L1 D cache: 16K
CPU: L2 cache: 256K
CPU: After all inits, caps: 0383f9ff 00000000 00000000 00000040 00000000 00000000 00000000
Intel machine check architecture supported.
Intel machine check reporting enabled on CPU#0.
Compat vDSO mapped to ffffe000.
Checking 'hlt' instruction... OK.
SMP alternatives: switching to UP code
Freeing SMP alternatives: 16k freed
ACPI: Core revision 20060707
ACPI: setting ELCR to 0200 (from 0800)
CPU0: Intel Pentium III (Coppermine) stepping 06
SMP motherboard not detected.
Local APIC not detected. Using dummy APIC emulation.
Brought up 1 CPUs
migration_cost=0
checking if image is initramfs... it is
Freeing initrd memory: 4388k freed
NET: Registered protocol family 16
ACPI: bus type pci registered
PCI: PCI BIOS revision 2.10 entry at 0xfd94f, last bus=7
PCI: Using configuration type 1
Setting up standard PCI resources
ACPI: Interpreter enabled
ACPI: Using PIC for interrupt routing
ACPI: PCI Interrupt Link [LNKA] (IRQs 3 4 5 6 7 9 10 *11)
ACPI: PCI Interrupt Link [LNKB] (IRQs 3 4 5 6 7 9 10 *11)
ACPI: PCI Interrupt Link [LNKC] (IRQs 3 4 5 6 7 9 10 *11)
ACPI: PCI Interrupt Link [LNKD] (IRQs 3 4 5 6 7 9 10 *11)
ACPI: PCI Root Bridge [PCI0] (0000:00)
PCI: Probing PCI hardware (bus 00)
ACPI: Assume root bridge [\_SB_.PCI0] bus is 0
PCI quirk: region 1000-103f claimed by PIIX4 ACPI
PCI quirk: region 1040-104f claimed by PIIX4 SMB
PIIX4 devres C PIO at 15e8-15ef
PIIX4 devres I PIO at 03f0-03f7
PIIX4 devres J PIO at 002e-002f
Boot video device is 0000:01:00.0
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.AGP_._PRT]
ACPI: Power Resource [PSER] (on)
ACPI: Power Resource [PSIO] (on)
ACPI: Embedded Controller [EC] (gpe 9) interrupt mode.
Linux Plug and Play Support v0.97 (c) Adam Belay
pnp: PnP ACPI init
pnp: PnP ACPI: found 15 devices
PnPBIOS: Disabled by ACPI PNP
PCI: Using ACPI for IRQ routing
PCI: If a device doesn't work, try "pci=routeirq".  If it helps, post a report
pnp: 00:02: ioport range 0x1000-0x103f could not be reserved
pnp: 00:02: ioport range 0x1040-0x104f has been reserved
pnp: 00:02: ioport range 0xfe00-0xfe0f has been reserved
pnp: 00:09: ioport range 0x15e0-0x15ef has been reserved
PCI: Bridge: 0000:00:01.0
  IO window: disabled.
  MEM window: f0000000-f7ffffff
  PREFETCH window: 38000000-380fffff
PCI: Bus 2, cardbus bridge: 0000:00:02.0
  IO window: 00001400-000014ff
  IO window: 00001800-000018ff
  PREFETCH window: 30000000-31ffffff
  MEM window: 32000000-33ffffff
PCI: Bus 6, cardbus bridge: 0000:00:02.1
  IO window: 00002400-000024ff
  IO window: 00002800-000028ff
  PREFETCH window: 34000000-35ffffff
  MEM window: 36000000-37ffffff
ACPI: PCI Interrupt Link [LNKA] enabled at IRQ 11
PCI: setting IRQ 11 as level-triggered
ACPI: PCI Interrupt 0000:00:02.0[A] -> Link [LNKA] -> GSI 11 (level, low) -> IRQ 11
ACPI: PCI Interrupt Link [LNKB] enabled at IRQ 11
ACPI: PCI Interrupt 0000:00:02.1[B] -> Link [LNKB] -> GSI 11 (level, low) -> IRQ 11
NET: Registered protocol family 2
IP route cache hash table entries: 4096 (order: 2, 16384 bytes)
TCP established hash table entries: 16384 (order: 5, 131072 bytes)
TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
TCP: Hash tables configured (established 16384 bind 8192)
TCP reno registered
Simple Boot Flag at 0x35 set to 0x1
audit: initializing netlink socket (disabled)
audit(1166951974.720:1): initialized
VFS: Disk quotas dquot_6.5.1
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
Initializing Cryptographic API
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
Limiting direct PCI/PCI transfers.
vesafb: framebuffer at 0xf0000000, mapped to 0xe0880000, using 5742k, total 8192k
vesafb: mode is 1400x1050x16, linelength=2800, pages=1
vesafb: protected mode interface info at c000:882d
vesafb: pmi: set display start = c00c888d, set palette = c00c88d6
vesafb: scrolling: redraw
vesafb: Truecolor: size=0:5:6:5, shift=0:11:5:0
Console: switching to colour frame buffer device 175x65
fb0: VESA VGA frame buffer device
isapnp: Scanning for PnP cards...
isapnp: No Plug & Play device found
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing enabled
serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
00:0c: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
RAMDISK driver initialized: 16 RAM disks of 8192K size 1024 blocksize
PNP: PS/2 Controller [PNP0303:KBD,PNP0f13:MOU] at 0x60,0x64 irq 1,12
serio: i8042 AUX port at 0x60,0x64 irq 12
serio: i8042 KBD port at 0x60,0x64 irq 1
mice: PS/2 mouse device common for all mice
TCP bic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
NET: Registered protocol family 8
NET: Registered protocol family 20
Using IPI No-Shortcut mode
ACPI: (supports S0<6>Time: tsc clocksource has been installed.
 S1 S3 S4 S5)
Freeing unused kernel memory: 196k freed
input: AT Translated Set 2 keyboard as /class/input/input0
ACPI: Processor [CPU] (supports 8 throttling states)
ACPI: Thermal Zone [THM0] (30 C)
PCI: Enabling device 0000:00:03.0 (0000 -> 0003)
ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 11
ACPI: PCI Interrupt 0000:00:03.0[A] -> Link [LNKC] -> GSI 11 (level, low) -> IRQ 11
3c59x: Donald Becker and others. www.scyld.com/network/vortex.html
0000:00:03.0: 3Com PCI 3c556B Laptop Hurricane at e0826000.
PCI: Setting latency timer of device 0000:00:03.0 to 64
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
PIIX4: IDE controller at PCI slot 0000:00:07.1
PIIX4: chipset revision 1
PIIX4: not 100% native mode: will probe irqs later
    ide0: BM-DMA at 0x1c00-0x1c07, BIOS settings: hda:DMA, hdb:pio
    ide1: BM-DMA at 0x1c08-0x1c0f, BIOS settings: hdc:DMA, hdd:pio
Probing IDE interface ide0...
usbcore: registered new driver usbfs
usbcore: registered new driver hub
USB Universal Host Controller Interface driver v3.0
hda: IBM-DJSA-232, ATA DISK drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
Probing IDE interface ide1...
hdc: MATSHITADVD-ROM SR-8175, ATAPI CD/DVD-ROM drive
ide1 at 0x170-0x177,0x376 on irq 15
ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 11
ACPI: PCI Interrupt 0000:00:07.2[D] -> Link [LNKD] -> GSI 11 (level, low) -> IRQ 11
uhci_hcd 0000:00:07.2: UHCI Host Controller
uhci_hcd 0000:00:07.2: new USB bus registered, assigned bus number 1
uhci_hcd 0000:00:07.2: irq 11, io base 0x00001c20
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
hda: max request size: 128KiB
hda: 62506080 sectors (32003 MB) w/1874KiB Cache, CHS=65535/15/63, UDMA(33)
hda: cache flushes not supported
 hda: hda1 hda2 hda3 hda4 < hda5 hda6 hda7 >
hdc: ATAPI 24X DVD-ROM drive, 512kB Cache, UDMA(33)
Uniform CD-ROM driver Revision: 3.20
Attempting manual resume
kjournald starting.  Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
Yenta: CardBus bridge found at 0000:00:02.0 [1014:0130]
Yenta: Using INTVAL to route CSC interrupts to PCI
Yenta: Routing CardBus interrupts to PCI
Yenta TI: socket 0000:00:02.0, mfunc 0x00001000, devctl 0x66
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
Yenta: ISA IRQ mask 0x04b8, PCI irq 11
Socket status: 30000010
Yenta: CardBus bridge found at 0000:00:02.1 [1014:0130]
Yenta: Using INTVAL to route CSC interrupts to PCI
Yenta: Routing CardBus interrupts to PCI
Yenta TI: socket 0000:00:02.1, mfunc 0x00001000, devctl 0x66
Linux agpgart interface v0.101 (c) Dave Jones
input: PC Speaker as /class/input/input1
Yenta: ISA IRQ mask 0x04b8, PCI irq 11
Socket status: 30000006
shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
agpgart: Detected an Intel 440BX Chipset.
agpgart: AGP aperture is 64M @ 0xf8000000
piix4_smbus 0000:00:07.3: Found 0000:00:07.3 device
piix4_smbus 0000:00:07.3: IBM system detected; this module may corrupt your serial eeprom! Refusing to load module!
piix4_smbus: probe of 0000:00:07.3 failed with error -1
ACPI: PCI Interrupt 0000:00:05.0[A] -> Link [LNKA] -> GSI 11 (level, low) -> IRQ 11
pccard: PCMCIA card inserted into slot 0
gameport: CS46xx Gameport is pci0000:00:05.0/gameport0, speed 1807kHz
ACPI: PCI Interrupt 0000:01:00.0[A] -> Link [LNKA] -> GSI 11 (level, low) -> IRQ 11
PCI: Unable to reserve mem region #1:8000000 at f0000000 for device 0000:01:00.0
cannot request PCI regions
savagefb: probe of 0000:01:00.0 failed with error -16
input: ImPS/2 Logitech Wheel Mouse as /class/input/input2
irda_init()
NET: Registered protocol family 23
parport: PnPBIOS parport detected.
parport0: PC-style at 0x3bc, irq 7 [PCSPP,TRISTATE]
ts: Compaq touchscreen protocol output
pnp: Device 00:0e activated.
nsc_ircc_pnp_probe() : From PnP, found firbase 0x2F8 ; irq 3 ; dma 1.
nsc-ircc, chip->init
nsc-ircc, Found chip at base=0x02e
nsc-ircc, driver loaded (Dag Brattli)
IrDA: Registered device irda0
nsc-ircc, Found dongle: Sharp RY5HD01
cs: IO port probe 0x100-0x3af: clean.
cs: IO port probe 0x100-0x3af: clean.
cs: IO port probe 0x3e0-0x4ff: excluding 0x4d0-0x4d7
cs: IO port probe 0x820-0x8ff: clean.
cs: IO port probe 0xc00-0xcf7: clean.
cs: IO port probe 0xa00-0xaff: clean.
cs: memory probe 0xa0000000-0xa0ffffff: clean.
pcmcia: registering new device pcmcia0.0
cs: IO port probe 0x3e0-0x4ff: excluding 0x4d0-0x4d7
cs: IO port probe 0x820-0x8ff: clean.
cs: IO port probe 0xc00-0xcf7: clean.
cs: IO port probe 0xa00-0xaff: clean.
Adding 982760k swap on /dev/hda7.  Priority:-1 extents:1 across:982760k
EXT3 FS on hda5, internal journal
loop: loaded (max 8 devices)
ndiswrapper version 1.32rc2 loaded (preempt=no,smp=yes)
usbcore: registered new driver ndiswrapper
device-mapper: ioctl: 4.7.0-ioctl (2006-06-24) initialised: dm-devel at redhat.com
ACPI: Battery Slot [BAT0] (battery absent)
ACPI: AC Adapter [AC] (on-line)
ACPI: Power Button (FF) [PWRF]
ACPI: Lid Switch [LID]
ACPI: Sleep Button (CM) [SLPB]
NET: Registered protocol family 10
lo: Disabled Privacy Extensions
IPv6 over IPv4 tunneling driver
eth0:  setting full-duplex.
eth0: no IPv6 routers present

> 
> You should not need to modprobe anything. Pcmciautils package should be 
> installed. Udev should load the module and bring the interface up 
> automatically.

Cool - in that case, something is definitely broken :)

I'm using the standard 686 debian kernel (linux-image-2.6.18-3-686 version
2.6.18-7) and I do have pcmciautils installed (version 014-3). I also note
that pcmcia-cs (version 3.2.8-9) is installed as standard, but the
description for the package says that it's deprecated (I don't know if this
could be causing problems).

"pccardctl ident" returns:
Socket 0:
  product info: "D-Link", "DWL-650 Wireless PC Card RevP", "ISL37101P-10", "A3"
  manfid: 0x000b, 0x7110
  function: 6 (network)
Socket 1:
  no product info available

Removing/plugging the card adds the following lines to /var/sys/syslog:

Dec 24 11:26:56 t21jt kernel: pccard: card ejected from slot 0
Dec 24 11:27:06 t21jt kernel: pccard: PCMCIA card inserted into slot 0
Dec 24 11:27:06 t21jt kernel: pcmcia: registering new device pcmcia0.0


After reading http://article.gmane.org/gmane.linux.drivers.hostap/7384
I also added the following to /etc/pcmcia/hostap_cs.conf:

card "Dlink Weird Card"
  manfid 0x000b, 0x7110
  bind "hostap_cs"

(This might be a mistake). Finally, currently loaded modules are:

lsmod | sort
3c59x                  40360  0
ac                      5188  0
agpgart                29896  1 intel_agp
battery                 9636  0
button                  6672  0
cdrom                  32544  1 ide_cd
crc_ccitt               2240  1 irda
dm_mirror              19152  0
dm_mod                 50232  2 dm_snapshot,dm_mirror
dm_snapshot            15520  0
evdev                   9088  1
ext3                  119208  1
fan                     4804  0
firmware_class          9600  1 pcmcia
gameport               14632  2 snd_cs46xx
generic                 5028  0 [permanent]
i2c_algo_bit            8424  1 savagefb
i2c_core               19680  3 savagefb,i2c_algo_bit,i2c_piix4
i2c_piix4               8140  0
ide_cd                 36064  0
ide_core              110504  4 ide_cd,ide_disk,piix,generic
ide_disk               14848  3
intel_agp              21148  1
ipv6                  226016  10
irda                  162588  1 nsc_ircc
jbd                    52456  1 ext3
loop                   15048  0
mbcache                 8356  1 ext3
mii                     5344  1 3c59x
Module                  Size  Used by
ndiswrapper           158996  0
nsc_ircc               20912  0
parport                33256  1 parport_pc
parport_pc             32164  0
pci_hotplug            28704  1 shpchp
pcmcia                 34108  0
pcmcia_core            36852  3 pcmcia,yenta_socket,rsrc_nonstatic
pcspkr                  3072  0
piix                    9444  0 [permanent]
processor              28840  1 thermal
psmouse                35016  0
rsrc_nonstatic         11840  1 yenta_socket
savagefb               26276  0
serio_raw               6660  0
shpchp                 33024  0
snd                    47012  6 snd_cs46xx,snd_rawmidi,snd_seq_device,snd_ac97_codec,snd_pcm,snd_timer
snd_ac97_bus            2400  1 snd_ac97_codec
snd_ac97_codec         83104  1 snd_cs46xx
snd_cs46xx             76360  0
snd_page_alloc          9640  2 snd_cs46xx,snd_pcm
snd_pcm                68644  2 snd_cs46xx,snd_ac97_codec
snd_rawmidi            22560  1 snd_cs46xx
snd_seq_device          7820  1 snd_rawmidi
snd_timer              20996  1 snd_pcm
soundcore               9248  1 snd
thermal                13608  0
tsdev                   7520  0
uhci_hcd               21032  0
usbcore               112676  3 ndiswrapper,uhci_hcd
yenta_socket           24460  4

and "ifconfig -a" returns:
eth0      Link encap:Ethernet  HWaddr 00:00:86:4B:62:EA
          inet addr:192.168.0.3  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::200:86ff:fe4b:62ea/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:9527 errors:0 dropped:0 overruns:0 frame:0
          TX packets:9610 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:7213540 (6.8 MiB)  TX bytes:1384311 (1.3 MiB)
          Interrupt:11 Base address:0x6000

irda0     Link encap:IrLAP  HWaddr 00:00:00:00
          NOARP  MTU:2048  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:8
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

sit0      Link encap:IPv6-in-IPv4
          NOARP  MTU:1480  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)


If there's anything else I can do to help
(including a fresh install), please let me know.

Thank you (and Happy Xmas!)




More information about the Hostap mailing list