Subject: bin/10424: wiconfig and ifconfig disagree about adhoc-ness
To: None <gnats-bugs@gnats.netbsd.org>
From: Johnny C. Lam <lamj@stat.cmu.edu>
List: netbsd-bugs
Date: 06/22/2000 22:26:14
>Number:         10424
>Category:       bin
>Synopsis:       wiconfig and ifconfig disagree about adhoc-ness
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jun 22 22:27:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Johnny C. Lam
>Release:        NetBSD-current compiled from 20000621 sources
>Organization:
	Department of Statistics, Carnegie Mellon University
>Environment:
System: NetBSD mariposa.home.net 1.5A NetBSD 1.5A (MARIPOSA) #0: Thu Jun 22 02:39:02 EDT 2000 jlam@mariposa.home.net:/usr/src/sys/arch/i386/compile/MARIPOSA i386


>Description:
	`wiconfig wi0' and `ifconfig wi0' disagree about whether the wi0
	interface is in ad-hoc mode or not.  I have a Lucent WaveLAN Silver
	that sucessfully connects to the CMU Wireless Andrew network.
	In the output below, note that wiconfig reports the port type is
	1=BSS while ifconfig reports that the interface media is adhoc.

mariposa [jlam] -> wiconfig wi0
NIC serial number:			[ 00UT01456305 ]
Station name:				[ NetBSD WaveLAN/IEEE node ]
SSID for IBSS creation:			[ NetBSD IBSS ]
Current netname (SSID):			[ CMU ]
Desired netname (SSID):			[ CMU ]
Current BSSID:				[ 00:60:1d:04:80:72 ]
Channel list:				[ 2047 ]
IBSS channel:				[ 3 ]
Current channel:			[ 6 ]
Comms quality/signal/noise:		[ 14 70 57 ]
Promiscuous mode:			[ Off ]
Port type (1=BSS, 3=ad-hoc):		[ 1 ]
MAC address:				[ 00:60:1d:1f:18:84 ]
TX rate (selection):			[ 3 ]
TX rate (actual speed):			[ 2 ]
RTS/CTS handshake threshold:		[ 2347 ]
Create IBSS:				[ Off ]
Access point density:			[ 1 ]
Power Mgmt (1=on, 0=off):		[ 0 ]
Max sleep time:				[ 100 ]
WEP encryption:				[ Off ]
TX encryption key:			[ 1 ]
Encryption keys:			[  ][  ][  ][  ]

mariposa [jlam] -> ifconfig wi0
wi0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
	nwid CMU
	media: IEEE802.11 autoselect adhoc
	status: active
	inet 128.2.67.50 netmask 0xfffff800 broadcast 128.2.71.255
	inet6 fe80::260:1dff:fe1f:1884%wi0 prefixlen 64 scopeid 0xf

>How-To-Repeat:
	> wiconfig wi0 -p 1; wiconfig wi0 -n CMU
	> dhclient wi0
	> wiconfig wi0
	> ifconfig wi0
	Note problem above.
>Fix:
	Unknown.
>Release-Note:
>Audit-Trail:
>Unformatted: