Re: iwi0: iwi_cmd: cmd 6 not sent, busy && freezing soemtimes

Matthias Apitz <[email protected]>
Newsgroups gmane.os.freebsd.devel.mobile
Message-ID <[email protected]>
El día Tuesday, May 22, 2007 a las 01:27:20PM -0400, David Gilbert escribió:

> >>>>> "Matthias" == Matthias Apitz <[email protected]> writes:
> 
> Matthias> I've updated one of my laptops to FreeBSD-6.2R, using for
> Matthias> the Intel(R) PRO/Wireless 2200BG the firmware from the ports
> Matthias> /usr/ports/net/iwi-firmware-kmod;
> 
> [...]
> 
> Matthias> but the link comes up, if the boot not freezes;
> 
> I also see it freeze if I set the ssid and the wep key at the same
> time.  If I set the wep key with one ifconfig and then the ssid with
> another, everything works.

I've had a look into the more recent version of if_iwi.c in
CVS and applied only this change to the original 6.2R version
of if_iwi.c (1.8.2.10 2006/10/29) which was made by Luigi in
the version 1.8.2.13:


*** if_iwi.c	Wed May 23 07:45:32 2007
--- if_iwi.c.orig	Sun Oct 29 09:29:31 2006
***************
*** 2059,2073 ****
  
  	IWI_LOCK(sc);
  
- 	/*
- 	 * wait until pending iwi_cmd() are completed, to avoid races
- 	 * that could cause problems.   
- 	 */
- 	while (sc->flags & IWI_FLAG_BUSY) {
- 		printf("%s: waiting until pending iwi_cmd() are completed\n", __func__);
- 		msleep(sc, &sc->sc_mtx, 0, "iwiioctl", hz);
- 	}
- 
  	switch (cmd) {
  	case SIOCSIFFLAGS:
  		if (ifp->if_flags & IFF_UP) {
--- 2059,2064 ----

and during every reboot, exactly where the systems got frozen before, it
now printf 10 times the above message 'waiting until pending iwi_cmd'
but all is fine now;

Maybe you could try it as well or someone of the if_iwi.c
commiters could comment on it; or even it is worth to file a
bug report and close it with this patch so that people in trouble
have a chance to see it; thx

	matthias
-- 
Matthias Apitz
Manager Technical Support - OCLC PICA GmbH
Gruenwalder Weg 28g - 82041 Oberhaching - Germany
t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211
e <[email protected]> - w http://www.oclcpica.org/ http://guru.UnixLand.de/
b http://gurucubano.blogspot.com/
OCLC PICA GmbH, Geschaeftsfuehrer: Christine Magin-Weeger, Norbert Weinberger
Sitz der Gesellschaft: Oberhaching, HRB Muenchen: 113261
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-mobile
To unsubscribe, send any mail to "[email protected]"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.