Subject: kern/10719: wi(4): effect of wiconfig does not reflected back to ifmedia interface
To: None <gnats-bugs@gnats.netbsd.org>
From: None <itojun@itojun.org>
List: netbsd-bugs
Date: 07/30/2000 18:08:25
>Number: 10719
>Category: kern
>Synopsis: wi(4): effect of wiconfig does not reflected back to ifmedia interface
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: kern-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Jul 30 18:09:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator: Jun-ichiro itojun Hagino
>Release: 20000728 current
>Organization:
itojun.org
>Environment:
System: NetBSD starfruit.itojun.org 1.5C NetBSD 1.5C (STARFRUIT) #79: Fri Jul 28 17:41:41 JST 2000 itojun@starfruit.itojun.org:/usr/home/itojun/NetBSD/src/sys/arch/i386/compile/STARFRUIT i386
>Description:
we can configure wi(4) interface in two ways - wiconfig(8) and
ifconfig(8). we see some inconsistency in queried configuration
status from those two.
>How-To-Repeat:
# wiconfig wi0 -p 1
# wiconfig wi0 | grep ad-hoc
Port type (1=BSS, 3=ad-hoc): [ 1 ]
# ifconfig wi0 | grep media
media: IEEE802.11 autoselect adhoc
>Fix:
- those two bits should be integrated into one in the driver code.
sc->wi_ptype (1 or 3)
sc->sc_media.ifm_cur->ifm_media & IFM_IEEE80211_ADHOC
- in the far future, wiconfig should be nuked and ifconfig should
always be used? in this case can we query wave strength with
ifconfig?
>Release-Note:
>Audit-Trail:
>Unformatted: