Subject: Re: CVS commit: syssrc/sys
To: None <perry@wasabisystems.com>
From: Atsushi Onoe <onoe@sm.sony.co.jp>
List: source-changes
Date: 09/19/2001 08:20:36
> You broke my awi card. It won't talk to the network at all any
> longer, and I have no good way to debug the problem. :(

Hmm.
Could you please elaborate more details or send-pr?

> May I back out your changes?

Please don't.

I've tested the driver in most of environment.
For all cards listed in HARDWARE except Nokia and Farallon:
	Mode			ifconfig options
	DS Infrastructure	media auto/DS2/DS1
	DS Adhoc		media auto/DS2/DS1 mediaopt adhoc
	DS WaveLAN Adhoc	media auto/DS2/DS1 mediaopt adhoc,flag0
	DS old Melco AP		media auto/DS2/DS1 mediaopt flag0 (New feature)
	FH Adhoc		media auto/FH1

So possible supported environment I've not covered may be FH infrastructure,
because I don't have an access to FH AP.
Perhaps you are using BayStack 650 card to connect to Access Point?

There may be several debugging way.
	- ifconfig awi0 debug
		show management frame sent/received
	- ifconfig awi0 debug link2
		dump all packets sent/received (XXX via printf)
	- awi_debug (via DDB or gdb), only available with "options AWI_DEBUG"
		1	information of state change
		2	verbose information include interrupt status
	- ieee80211_debug (via DDB or gdb), only available with
	  "options IEEE80211_DEBUG"
		1	information of state change

Oh, I've now found a typo in awi driver to specify SYNC_SET parameter for
FH phy.  This may be a reason of unavailability if you are using FH card
in infrastructure mode.  Try rev. 1.38 of awi.c

Regards,

Atsushi Onoe

> 
> 
> Perry
> 
> Atsushi Onoe <onoe@netbsd.org> writes:
> > Module Name:	syssrc
> > Committed By:	onoe
> > Date:		Tue Sep 18 09:10:01 UTC 2001
> > 
> > Modified Files:
> > 	syssrc/sys/conf: files
> > 	syssrc/sys/dev/ic: awi.c awireg.h awivar.h
> > 	syssrc/sys/dev/pcmcia: if_awi_pcmcia.c
> > 	syssrc/sys/net: if_ieee80211.h
> > Added Files:
> > 	syssrc/sys/net: if_ieee80211subr.c
> > Removed Files:
> > 	syssrc/sys/dev/ic: awi_wep.c awi_wicfg.c
> > 
> > Log Message:
> > Move IEEE 802.11 MAC management functions from awi driver to
> > if_ieee80211subr.c, which can be shared between any IEEE 802.11
> > drivers.
> > However, most of current working IEEE 802.11b wireless LAN cards
> > have rich firmware and we cannot have a control to management frames
> > for such cards.
> > 
> > IBSS creation is now supported for the awi driver.
> > 
> > 
> > To generate a diff of this commit:
> > cvs rdiff -r1.462 -r1.463 syssrc/sys/conf/files
> > cvs rdiff -r1.36 -r1.37 syssrc/sys/dev/ic/awi.c
> > cvs rdiff -r1.9 -r0 syssrc/sys/dev/ic/awi_wep.c
> > cvs rdiff -r1.7 -r0 syssrc/sys/dev/ic/awi_wicfg.c
> > cvs rdiff -r1.4 -r1.5 syssrc/sys/dev/ic/awireg.h
> > cvs rdiff -r1.14 -r1.15 syssrc/sys/dev/ic/awivar.h
> > cvs rdiff -r1.19 -r1.20 syssrc/sys/dev/pcmcia/if_awi_pcmcia.c
> > cvs rdiff -r1.10 -r1.11 syssrc/sys/net/if_ieee80211.h
> > cvs rdiff -r0 -r1.1 syssrc/sys/net/if_ieee80211subr.c
> > 
> > Please note that diffs are not public domain; they are subject to the
> > copyright notices on the relevant files.
> > 
> > 
> 
> --
> Perry E. Metzger		perry@wasabisystems.com
> --
> NetBSD Development, Support & CDs. http://www.wasabisystems.com/
>