Subject: kern/32410: wiconfig(8): "SIOCGWAVELAN: Operation not supported" message
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: None <igor@string1.ciencias.uniovi.es>
List: netbsd-bugs
Date: 12/29/2005 09:10:01
>Number: 32410
>Category: kern
>Synopsis: wiconfig(8): "SIOCGWAVELAN: Operation not supported" message
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: kern-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Dec 29 09:10:00 +0000 2005
>Originator: Igor Sobrado
>Release: NetBSD 3.0
>Organization:
University of Oviedo
>Environment:
NetBSD ws-05 3.0 NetBSD 3.0 (GENERIC_LAPTOP) #0: Mon Dec 19 01:08:52 UTC 2005 builds@works.netbsd.org:/home/builds/ab/netbsd-3-0-RELEASE/i386/200512182024Z-obj/home/builds/ab/netbsd-3-0-RELEASE/src/sys/arch/i386/compile/GENERIC_LAPTOP i386
>Description:
wiconfig(8) returns a "SIOCGWAVELAN: Operation not supported" message
each time it is executed either as root or normal user:
$ wiconfig wi0
NIC serial number: [ 99UT10444368 ]
Station name: [ ]
SSID for IBSS creation: [ educacion-wlan ]
Current netname (SSID): [ educacion-wlan ]
Desired netname (SSID): [ educacion-wlan ]
Current BSSID: [ 00:c0:49:d9:fa:90 ]
Channel list: [ 1 2 3 4 5 6 7 8 9 10 11 12 13 ]
IBSS channel: [ 3 ]
Current channel: [ 1 ]
Comms quality/signal/noise: [ 31 89 58 ]
Promiscuous mode: [ Off ]
Port type: [ 1 ]
MAC address: [ 00:60:1d:1e:2b:b2 ]
TX rate (selection): [ 0 ]
TX rate (actual speed): [ 11 ]
Beacon Interval (current) [msec]: [ 100 ]
Maximum data length: [ 2304 ]
RTS/CTS handshake threshold: [ 2347 ]
fragmentation threshold: [ 2346 ]
RSSI -> dBm adjustment: [ 149 ]
Create IBSS: [ Off ]
Microwave oven robustness: [ 0 ]
Roaming mode(1:firm,3:disable): [ 1 ]
Access point density: [ 1 ]
Power Mgmt (1=on, 0=off): [ 1 ]
Max sleep time (msec): [ 750 ]
Vendor info: [ Lucent ID: 31 version: 8.72 ]
WEP encryption: [ On ]
wiconfig: SIOCGWAVELAN: Operation not supported
The wireless adapter on the laptop is a Lucent Technologies WaveLAN card:
wi0 at pcmcia1 function 0: <Lucent Technologies, WaveLAN/IEEE, Version 01.01, >
wi0: 802.11 address 00:60:1d:1e:2b:b2
wi0: using Lucent Technologies, WaveLAN/IEEE
wi0: Lucent Firmware: Station (8.72.1)
wi0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
This is a trace of wiconfig(8).
815 ktruss emul(netbsd)
815 ktruss execve("/home/sobrado/bin/wiconfig", 0xbfbfe9f8, 0xbfbfea04) Err#2 ENOENT
815 ktruss execve("/bin/wiconfig", 0xbfbfe9f8, 0xbfbfea04) Err#2 ENOENT
815 ktruss execve("/sbin/wiconfig", 0xbfbfe9f8, 0xbfbfea04) Err#2 ENOENT
815 ktruss execve("/usr/bin/wiconfig", 0xbfbfe9f8, 0xbfbfea04) Err#2 ENOENT
815 wiconfig emul(netbsd)
815 wiconfig execve("/usr/sbin/wiconfig", 0xbfbfe9f8, 0xbfbfea04) JUSTRETURN
815 wiconfig mmap(0, 0x8000, 0x3, 0x1002, 0xffffffff, 0, 0, 0) = 0xbdbeb000
815 wiconfig open("/etc/ld.so.conf", 0, 0) = 3
815 wiconfig __fstat13(0x3, 0xbfbfe908) = 0
815 wiconfig mmap(0, 0x37, 0x1, 0x1, 0x3, 0, 0, 0) = 0xbdbea000
815 wiconfig close(0x3) = 0
815 wiconfig munmap(0xbdbea000, 0x37) = 0
815 wiconfig open("/usr/lib/libc.so.12", 0, 0) = 3
815 wiconfig __fstat13(0x3, 0xbfbfe608) = 0
815 wiconfig mmap(0, 0x1000, 0x1, 0x1, 0x3, 0, 0, 0) = 0xbdbea000
815 wiconfig munmap(0xbdbea000, 0x1000) = 0
815 wiconfig mmap(0, 0xc2000, 0x5, 0x2, 0x3, 0, 0, 0) = 0xbdb29000
815 wiconfig mmap(0xbdbd5000, 0x7000, 0x3, 0x12, 0x3, 0, 0xab000, 0) = 0xbdbd5000
815 wiconfig mmap(0xbdbdc000, 0xf000, 0x3, 0x1012, 0xffffffff, 0, 0, 0) = 0xbdbdc000
815 wiconfig close(0x3) = 0
815 wiconfig socket(0x2, 0x2, 0) = 3
815 wiconfig ioctl(0x3, SIOCGIFGENERIC, 0xbfbfe4e0) = 0
"wi0\0\0\0\0\0\0\0\0\0\0\0\0\0000\M-e\M-?\M-?\0\0\0\0\0\0\0\0\0\0\0\0"
815 wiconfig close(0x3) = 0
815 wiconfig socket(0x2, 0x2, 0) = 3
815 wiconfig ioctl(0x3, SIOCGIFGENERIC, 0xbfbfe4e0) = 0
"wi0\0\0\0\0\0\0\0\0\0\0\0\0\0000\M-e\M-?\M-?\0\0\0\0\0\0\0\0\0\0\0\0"
815 wiconfig close(0x3) = 0
815 wiconfig __fstat13(0x1, 0xbfbfe100) = 0
815 wiconfig __sysctl(0xbfbfe078, 0x2, 0xbfbfe070, 0xbfbfe074, 0, 0) = 0
815 wiconfig readlink("/etc/malloc.conf", 0xbfbfe0f0, 0x3f) Err#2 ENOENT
815 wiconfig mmap(0, 0x1000, 0x3, 0x1002, 0xffffffff, 0, 0, 0) = 0xbdb28000
815 wiconfig break(0x804beb4) = 0
815 wiconfig break(0x804ceb4) = 0
815 wiconfig break(0x804d000) = 0
815 wiconfig break(0x805d000) = 0
815 wiconfig ioctl(0x1, TIOCGETA, 0xbfbfe140) = 0
"\0\^C\0\0\^C\0\0\0\0[\0\0\M-O\^E\0 \^D\M^?\M^?\b\^W\^U\^R\0\^C\^\\^Z"
815 wiconfig write(0x1, 0x804d000, 0x26) = 38
"NIC serial number:\t\t\t[ 99UT10444368 ]\n"
815 wiconfig socket(0x2, 0x2, 0) = 3
815 wiconfig ioctl(0x3, SIOCGIFGENERIC, 0xbfbfe4e0) = 0
"wi0\0\0\0\0\0\0\0\0\0\0\0\0\0000\M-e\M-?\M-?\0\0\0\0\0\0\0\0\0\0\0\0"
815 wiconfig close(0x3) = 0
815 wiconfig write(0x1, 0x804d000, 0x16) = 22
"Station name:\t\t\t\t[ ]\n"
815 wiconfig socket(0x2, 0x2, 0) = 3
815 wiconfig ioctl(0x3, SIOCGIFGENERIC, 0xbfbfe4e0) = 0
"wi0\0\0\0\0\0\0\0\0\0\0\0\0\0000\M-e\M-?\M-?\0\0\0\0\0\0\0\0\0\0\0\0"
815 wiconfig close(0x3) = 0
815 wiconfig write(0x1, 0x804d000, 0x2d) = 45
"SSID for IBSS creation:\t\t\t[ educacion-wlan ]\n"
815 wiconfig socket(0x2, 0x2, 0) = 3
815 wiconfig ioctl(0x3, SIOCGIFGENERIC, 0xbfbfe4e0) = 0
"wi0\0\0\0\0\0\0\0\0\0\0\0\0\0000\M-e\M-?\M-?\0\0\0\0\0\0\0\0\0\0\0\0"
815 wiconfig close(0x3) = 0
815 wiconfig write(0x1, 0x804d000, 0x2d) = 45
"Current netname (SSID):\t\t\t[ educacion-wlan ]\n"
815 wiconfig socket(0x2, 0x2, 0) = 3
815 wiconfig ioctl(0x3, SIOCGIFGENERIC, 0xbfbfe4e0) = 0
"wi0\0\0\0\0\0\0\0\0\0\0\0\0\0000\M-e\M-?\M-?\0\0\0\0\0\0\0\0\0\0\0\0"
815 wiconfig close(0x3) = 0
815 wiconfig write(0x1, 0x804d000, 0x2d) = 45
"Desired netname (SSID):\t\t\t[ educacion-wlan ]\n"
815 wiconfig socket(0x2, 0x2, 0) = 3
815 wiconfig ioctl(0x3, SIOCGIFGENERIC, 0xbfbfe4e0) = 0
"wi0\0\0\0\0\0\0\0\0\0\0\0\0\0000\M-e\M-?\M-?\0\0\0\0\0\0\0\0\0\0\0\0"
815 wiconfig close(0x3) = 0
815 wiconfig write(0x1, 0x804d000, 0x28) = 40
"Current BSSID:\t\t\t\t[ 00:c0:49:d9:fa:90 ]\n"
815 wiconfig socket(0x2, 0x2, 0) = 3
815 wiconfig ioctl(0x3, SIOCGIFGENERIC, 0xbfbfe4e0) = 0
"wi0\0\0\0\0\0\0\0\0\0\0\0\0\0000\M-e\M-?\M-?\0\0\0\0\0\0\0\0\0\0\0\0"
815 wiconfig close(0x3) = 0
815 wiconfig write(0x1, 0x804d000, 0x33) = 51
"Channel list:\t\t\t\t[ 1 2 3 4 5 6 7 8 9 10 11 12 13 ]\n"
815 wiconfig socket(0x2, 0x2, 0) = 3
815 wiconfig ioctl(0x3, SIOCGIFGENERIC, 0xbfbfe4e0) = 0
"wi0\0\0\0\0\0\0\0\0\0\0\0\0\0000\M-e\M-?\M-?\0\0\0\0\0\0\0\0\0\0\0\0"
815 wiconfig close(0x3) = 0
815 wiconfig write(0x1, 0x804d000, 0x17) = 23
"IBSS channel:\t\t\t\t[ 3 ]\n"
815 wiconfig socket(0x2, 0x2, 0) = 3
815 wiconfig ioctl(0x3, SIOCGIFGENERIC, 0xbfbfe4e0) = 0
"wi0\0\0\0\0\0\0\0\0\0\0\0\0\0000\M-e\M-?\M-?\0\0\0\0\0\0\0\0\0\0\0\0"
815 wiconfig close(0x3) = 0
815 wiconfig write(0x1, 0x804d000, 0x19) = 25
"Current channel:\t\t\t[ 1 ]\n"
815 wiconfig socket(0x2, 0x2, 0) = 3
815 wiconfig ioctl(0x3, SIOCGIFGENERIC, 0xbfbfe4e0) = 0
"wi0\0\0\0\0\0\0\0\0\0\0\0\0\0000\M-e\M-?\M-?\0\0\0\0\0\0\0\0\0\0\0\0"
815 wiconfig close(0x3) = 0
815 wiconfig write(0x1, 0x804d000, 0x2a) = 42
"Comms quality/signal/noise:\t\t[ 32 90 58 ]\n"
815 wiconfig socket(0x2, 0x2, 0) = 3
815 wiconfig ioctl(0x3, SIOCGIFGENERIC, 0xbfbfe4e0) = 0
"wi0\0\0\0\0\0\0\0\0\0\0\0\0\0000\M-e\M-?\M-?\0\0\0\0\0\0\0\0\0\0\0\0"
815 wiconfig close(0x3) = 0
815 wiconfig write(0x1, 0x804d000, 0x1c) = 28
"Promiscuous mode:\t\t\t[ Off ]\n"
815 wiconfig socket(0x2, 0x2, 0) = 3
815 wiconfig ioctl(0x3, SIOCGIFGENERIC, 0xbfbfe4e0) = 0
"wi0\0\0\0\0\0\0\0\0\0\0\0\0\0000\M-e\M-?\M-?\0\0\0\0\0\0\0\0\0\0\0\0"
815 wiconfig close(0x3) = 0
815 wiconfig write(0x1, 0x804d000, 0x14) = 20
"Port type:\t\t\t\t[ 1 ]\n"
815 wiconfig socket(0x2, 0x2, 0) = 3
815 wiconfig ioctl(0x3, SIOCGIFGENERIC, 0xbfbfe4e0) = 0
"wi0\0\0\0\0\0\0\0\0\0\0\0\0\0000\M-e\M-?\M-?\0\0\0\0\0\0\0\0\0\0\0\0"
815 wiconfig close(0x3) = 0
815 wiconfig write(0x1, 0x804d000, 0x26) = 38
"MAC address:\t\t\t\t[ 00:60:1d:1e:2b:b2 ]\n"
815 wiconfig socket(0x2, 0x2, 0) = 3
815 wiconfig ioctl(0x3, SIOCGIFGENERIC, 0xbfbfe4e0) = 0
"wi0\0\0\0\0\0\0\0\0\0\0\0\0\0000\M-e\M-?\M-?\0\0\0\0\0\0\0\0\0\0\0\0"
815 wiconfig close(0x3) = 0
815 wiconfig write(0x1, 0x804d000, 0x1d) = 29
"TX rate (selection):\t\t\t[ 0 ]\n"
815 wiconfig socket(0x2, 0x2, 0) = 3
815 wiconfig ioctl(0x3, SIOCGIFGENERIC, 0xbfbfe4e0) = 0
"wi0\0\0\0\0\0\0\0\0\0\0\0\0\0000\M-e\M-?\M-?\0\0\0\0\0\0\0\0\0\0\0\0"
815 wiconfig close(0x3) = 0
815 wiconfig write(0x1, 0x804d000, 0x21) = 33
"TX rate (actual speed):\t\t\t[ 11 ]\n"
815 wiconfig socket(0x2, 0x2, 0) = 3
815 wiconfig ioctl(0x3, SIOCGIFGENERIC, 0xbfbfe4e0) = 0
"wi0\0\0\0\0\0\0\0\0\0\0\0\0\0000\M-e\M-?\M-?\0\0\0\0\0\0\0\0\0\0\0\0"
815 wiconfig close(0x3) = 0
815 wiconfig write(0x1, 0x804d000, 0x2a) = 42
"Beacon Interval (current) [msec]:\t[ 100 ]\n"
815 wiconfig socket(0x2, 0x2, 0) = 3
815 wiconfig ioctl(0x3, SIOCGIFGENERIC, 0xbfbfe4e0) = 0
"wi0\0\0\0\0\0\0\0\0\0\0\0\0\0000\M-e\M-?\M-?\0\0\0\0\0\0\0\0\0\0\0\0"
815 wiconfig close(0x3) = 0
815 wiconfig write(0x1, 0x804d000, 0x20) = 32
"Maximum data length:\t\t\t[ 2304 ]\n"
815 wiconfig socket(0x2, 0x2, 0) = 3
815 wiconfig ioctl(0x3, SIOCGIFGENERIC, 0xbfbfe4e0) = 0
"wi0\0\0\0\0\0\0\0\0\0\0\0\0\0000\M-e\M-?\M-?\0\0\0\0\0\0\0\0\0\0\0\0"
815 wiconfig close(0x3) = 0
815 wiconfig write(0x1, 0x804d000, 0x27) = 39
"RTS/CTS handshake threshold:\t\t[ 2347 ]\n"
815 wiconfig socket(0x2, 0x2, 0) = 3
815 wiconfig ioctl(0x3, SIOCGIFGENERIC, 0xbfbfe4e0) = 0
"wi0\0\0\0\0\0\0\0\0\0\0\0\0\0000\M-e\M-?\M-?\0\0\0\0\0\0\0\0\0\0\0\0"
815 wiconfig close(0x3) = 0
815 wiconfig write(0x1, 0x804d000, 0x23) = 35
"fragmentation threshold:\t\t[ 2346 ]\n"
815 wiconfig socket(0x2, 0x2, 0) = 3
815 wiconfig ioctl(0x3, SIOCGIFGENERIC, 0xbfbfe4e0) = 0
"wi0\0\0\0\0\0\0\0\0\0\0\0\0\0000\M-e\M-?\M-?\0\0\0\0\0\0\0\0\0\0\0\0"
815 wiconfig close(0x3) = 0
815 wiconfig write(0x1, 0x804d000, 0x22) = 34
"RSSI -> dBm adjustment:\t\t\t[ 149 ]\n"
815 wiconfig socket(0x2, 0x2, 0) = 3
815 wiconfig ioctl(0x3, SIOCGIFGENERIC, 0xbfbfe4e0) = 0
"wi0\0\0\0\0\0\0\0\0\0\0\0\0\0000\M-e\M-?\M-?\0\0\0\0\0\0\0\0\0\0\0\0"
815 wiconfig close(0x3) = 0
815 wiconfig write(0x1, 0x804d000, 0x18) = 24
"Create IBSS:\t\t\t\t[ Off ]\n"
815 wiconfig socket(0x2, 0x2, 0) = 3
815 wiconfig ioctl(0x3, SIOCGIFGENERIC, 0xbfbfe4e0) = 0
"wi0\0\0\0\0\0\0\0\0\0\0\0\0\0000\M-e\M-?\M-?\0\0\0\0\0\0\0\0\0\0\0\0"
815 wiconfig close(0x3) = 0
815 wiconfig write(0x1, 0x804d000, 0x22) = 34
"Microwave oven robustness:\t\t[ 0 ]\n"
815 wiconfig socket(0x2, 0x2, 0) = 3
815 wiconfig ioctl(0x3, SIOCGIFGENERIC, 0xbfbfe4e0) = 0
"wi0\0\0\0\0\0\0\0\0\0\0\0\0\0000\M-e\M-?\M-?\0\0\0\0\0\0\0\0\0\0\0\0"
815 wiconfig close(0x3) = 0
815 wiconfig write(0x1, 0x804d000, 0x27) = 39
"Roaming mode(1:firm,3:disable):\t\t[ 1 ]\n"
815 wiconfig socket(0x2, 0x2, 0) = 3
815 wiconfig ioctl(0x3, SIOCGIFGENERIC, 0xbfbfe4e0) = 0
"wi0\0\0\0\0\0\0\0\0\0\0\0\0\0000\M-e\M-?\M-?\0\0\0\0\0\0\0\0\0\0\0\0"
815 wiconfig close(0x3) = 0
815 wiconfig write(0x1, 0x804d000, 0x1e) = 30
"Access point density:\t\t\t[ 1 ]\n"
815 wiconfig socket(0x2, 0x2, 0) = 3
815 wiconfig ioctl(0x3, SIOCGIFGENERIC, 0xbfbfe4e0) = 0
"wi0\0\0\0\0\0\0\0\0\0\0\0\0\0000\M-e\M-?\M-?\0\0\0\0\0\0\0\0\0\0\0\0"
815 wiconfig close(0x3) = 0
815 wiconfig write(0x1, 0x804d000, 0x21) = 33
"Power Mgmt (1=on, 0=off):\t\t[ 1 ]\n"
815 wiconfig socket(0x2, 0x2, 0) = 3
815 wiconfig ioctl(0x3, SIOCGIFGENERIC, 0xbfbfe4e0) = 0
"wi0\0\0\0\0\0\0\0\0\0\0\0\0\0000\M-e\M-?\M-?\0\0\0\0\0\0\0\0\0\0\0\0"
815 wiconfig close(0x3) = 0
815 wiconfig write(0x1, 0x804d000, 0x21) = 33
"Max sleep time (msec):\t\t\t[ 750 ]\n"
815 wiconfig socket(0x2, 0x2, 0) = 3
815 wiconfig ioctl(0x3, SIOCGIFGENERIC, 0xbfbfe4e0) = 0
"wi0\0\0\0\0\0\0\0\0\0\0\0\0\0000\M-e\M-?\M-?\0\0\0\0\0\0\0\0\0\0\0\0"
815 wiconfig close(0x3) = 0
815 wiconfig write(0x1, 0x804d000, 0x30) = 48
"Vendor info:\t\t\t\t[ Lucent ID: 31 version: 8.72 ]\n"
815 wiconfig socket(0x2, 0x2, 0) = 3
815 wiconfig ioctl(0x3, SIOCGIFGENERIC, 0xbfbfe4e0) = 0
"wi0\0\0\0\0\0\0\0\0\0\0\0\0\0000\M-e\M-?\M-?\0\0\0\0\0\0\0\0\0\0\0\0"
815 wiconfig close(0x3) = 0
815 wiconfig write(0x1, 0x804d000, 0x1a) = 26
"WEP encryption:\t\t\t\t[ On ]\n"
815 wiconfig socket(0x2, 0x2, 0) = 3
815 wiconfig ioctl(0x3, SIOCGIFGENERIC, 0xbfbfe4e0) Err#45 EOPNOTSUPP
"wi0\0\0\0\0\0\0\0\0\0\0\0\0\0000\M-e\M-?\M-?\0\0\0\0\0\0\0\0\0\0\0\0"
815 wiconfig write(0x2, 0xbfbfdb70, 0xa) = 10
"wiconfig: "
815 wiconfig write(0x2, 0xbfbfdb90, 0xc) = 12
"SIOCGWAVELAN"
815 wiconfig write(0x2, 0xbdbcc9f2, 0x2) = 2
": "
815 wiconfig issetugid() = 0
815 wiconfig issetugid() = 0
815 wiconfig break(0x805e000) = 0
815 wiconfig open("/usr/share/nls/nls.alias.db", 0, 0xbfbfd6a4) Err#2 ENOENT
815 wiconfig open("/usr/share/nls/nls.alias", 0, 0xbfbfdad8) = 4
815 wiconfig fcntl(0x4, 0x2, 0x1) = 0
815 wiconfig __fstat13(0x4, 0xbfbfdab0) = 0
815 wiconfig mmap(0, 0x5f0, 0x1, 0x2, 0x4, 0, 0, 0) = 0xbdb27000
815 wiconfig close(0x4) = 0
815 wiconfig break(0x805f000) = 0
815 wiconfig munmap(0xbdb27000, 0x5f0) = 0
815 wiconfig open("/usr/share/nls/C/libc.cat", 0, 0xbfbfdb58) = 4
815 wiconfig __fstat13(0x4, 0xbfbfdb40) = 0
815 wiconfig mmap(0, 0x105b, 0x1, 0x1, 0x4, 0, 0, 0) = 0xbdb26000
815 wiconfig close(0x4) = 0
815 wiconfig munmap(0xbdb26000, 0x105b) = 0
815 wiconfig write(0x2, 0xbfbfdb70, 0x18) = 24
"Operation not supported\n"
815 wiconfig exit(0x1)
>How-To-Repeat:
The message appears each time wiconfig(8) is executed on the WaveLAN
wireless adapter. I have not tried other adapters supported by wiconfig(8).
This problem did not happen with previous NetBSD releases (at least until NetBSD 2.0.2, I chosed not upgrading the laptop to 2.1).
>Fix:
None, sorry.