Date: Wed, 23 May 2007 08:13:05 +0200 From: Matthias Apitz <m.apitz@oclcpica.org> To: David Gilbert <dgilbert@dclg.ca> Cc: Luigi Rizzo <rizzo@icir.org>, freebsd-mobile@freebsd.org Subject: Re: iwi0: iwi_cmd: cmd 6 not sent, busy && freezing soemtimes Message-ID: <20070523061305.GA2095@rebelion.Sisis.de> In-Reply-To: <18003.10232.379541.836357@canoe.dclg.ca> References: <20070519142607.GA9776@rebelion.Sisis.de> <18003.10232.379541.836357@canoe.dclg.ca>
next in thread | previous in thread | raw e-mail | index | archive | help
El día Tuesday, May 22, 2007 a las 01:27:20PM -0400, David Gilbert escribió: > >>>>> "Matthias" == Matthias Apitz <m.apitz@oclcpica.org> 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 <m.apitz@oclcpica.org> - 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070523061305.GA2095>