Re: error: unable to ioctl device socket

[email protected] Mon, 22 Jul 2002 14:15:09 -0700
Newsgroups gmane.network.wireless.bsd.airtools
Message-ID <[email protected]>
                                                                                                                    
                    Louis Bertrand                                                                                  
                    <louis@bertrandtech        To:     <[email protected]>                                    
                    .on.ca>                    cc:                                                                  
                    Sent by:                   Subject:     [BAT] error: unable to ioctl device socket              
                    [email protected]                                                                             
                    hb0den.com                                                                                      
                    No Phone Info                                                                                   
                    Available                                                                                       
                                                                                                                    
                    07/20/02 05:25 PM                                                                               
                    Please respond to                                                                               
                    bat                                                                                             
                                                                                                                    
                                                                                                                    








Hi,

Two problems, possibly related:

 1) When I quit dstumbler I get an error message at the
bottom of the screen:
 "error: unable to ioctl device socket: Invalid argument"

 2) I can't seem to detect a simple WLAN consisting of two
PCs in Ad-Hoc mode, with 40-bit WEP. The dstumbler screen
stays blank. Yes, I understand that dstumbler relies on AP
broadcasts and Station discovery requests, but should it not
see some sort of activity?  (tcpdump works)

Where do I start digging?

IBM thinkpad A21e,
OpenBSD 3.1-current GENERIC (dmesg below)
BAT built from ports.
DLINK DWL-650
wi0 at pcmcia0 function 0 "D, Link DWL-650 11Mbps WLAN Card, Version 01.02"
port 0xa000/64
wi0: PRISM 2.5 ISL3873, Firmware 1.0.7 (primary), 1.3.5 (station), address
00:05:XX:XX:XX:XX

(Note: same behaviour with older Linksys WPC-11)

Thanks
 --Louis  <[email protected]>

dmesg
=====
OpenBSD 3.1-current (GENERIC) #1: Sat Jul 20 15:28:35 EDT 2002
    [email protected]:/usr/sys/kernel/GENERIC
cpu0: Intel Pentium III (Coppermine) ("GenuineIntel" 686-class, 128KB L2
cache) 199 MHz
cpu0:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SYS,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SIMD

real mem  = 267956224 (261676K)
avail mem = 242593792 (236908K)
using 3296 buffers containing 13500416 bytes (13184K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(a5) BIOS, date 08/01/01, BIOS32 rev. 0 @ 0xfd880
apm0 at bios0: Power Management spec V1.2
apm0: battery life expectancy 80%
apm0: AC off, battery charge high, estimated 1:27 hours
pcibios0 at bios0: rev. 2.1 @ 0xfd810/0x7f0
pcibios0: PCI IRQ Routing Table rev. 1.0 @ 0xfdf40/112 (5 entries)
pcibios0: PCI Interrupt Router at 000:07:0 ("Intel 82371FB PCI-ISA" rev
0x00)
pcibios0: PCI bus #1 is the last bus
bios0: ROM list: 0xc0000/0x10000 0xe0000/0x10000
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 "Intel 82440MX Host" rev 0x01
auich0 at pci0 dev 0 function 1 "Intel 82440MX AC97 Audio" rev 0x00: irq
11, 440MX AC97
ac97: codec id 0x43525935 (Cirrus Logic CS4299 rev 5)
ac97: codec features headphone, 20 bit DAC, 18 bit ADC, Crystal Semi 3D
audio0 at auich0
cbb0 at pci0 dev 2 function 0 "Texas Instruments PCI1410 PCI-CardBus" rev
0x01: irq 11
"AT&T/Lucent Win Modem V.90" rev 0x01 at pci0 dev 3 function 0 not
configured
vga1 at pci0 dev 4 function 0 "ATI Rage P/M" rev 0x64
wsdisplay0 at vga1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
"Intel 82440MX PCI-ISA" rev 0x01 at pci0 dev 7 function 0 not configured
pciide0 at pci0 dev 7 function 1 "Intel 82440MX IDE" rev 0x00: DMA, channel
0 wired to compatibility, channel 1 wired to compatibility
wd0 at pciide0 channel 0 drive 0: <FUJITSU MHM2200AT>
wd0: 16-sector PIO, LBA, 19077MB, 16383 cyl, 16 head, 63 sec, 39070080
sectors
atapiscsi0 at pciide0 channel 0 drive 1
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: <TEAC, CD-224E, 2.7B> SCSI0 5/cdrom removable
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
cd0(pciide0:0:1): using PIO mode 4, Ultra-DMA mode 2
pciide0: channel 1 ignored (disabled)
uhci0 at pci0 dev 7 function 2 "Intel 82440MX USB" rev 0x00: irq 11
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: vendor 0x0000 UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
"Intel 82440MX Power Mgmt" rev 0x00 at pci0 dev 7 function 3 not configured
cardslot0 at cbb0 slot 0 flags 0
cardbus0 at cardslot0: bus 1 device 0 cacheline 0x8, lattimer 0xb0
pcmcia0 at cardslot0
isa0 at mainbus0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
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
midi0 at pcppi0: <PC speaker>
sysbeep0 at pcppi0
lpt2 at isa0 port 0x3bc/4: polled
npx0 at isa0 port 0xf0/16: using exception 16
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
biomask 4840 netmask 4840 ttymask 5842
pctr: 686-class user-level performance counters enabled
mtrr: Pentium Pro MTRR support
dkcsum: wd0 matched BIOS disk 80
root on wd0a
rootdev=0x0 rrootdev=0x300 rawdev=0x302
wi0 at pcmcia0 function 0 "D, Link DWL-650 11Mbps WLAN Card, Version 01.02"
port 0xa000/64
wi0: PRISM 2.5 ISL3873, Firmware 1.0.7 (primary), 1.3.5 (station), address
00:05:XX:XX:XX:XX



_______________________________________________




[Ben Writes]
Hi Louis,
On the first count - I don't know.
Second count:
Make sure you've made prism2ctl and issued the -m switch on your wireless
card.