From owner-freebsd-stable@FreeBSD.ORG Thu Oct 12 12:53:39 2006 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EE32D16A415; Thu, 12 Oct 2006 12:53:38 +0000 (UTC) (envelope-from goran.lowkrantz@ismobile.com) Received: from mail.ismobile.com (tandgrisner.ismobile.com [213.88.244.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id B16AE43D70; Thu, 12 Oct 2006 12:53:36 +0000 (GMT) (envelope-from goran.lowkrantz@ismobile.com) Received: from [172.16.3.218] (viglaf.hq.ismobile.com [172.16.3.218]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.ismobile.com (Postfix) with ESMTP id DCBBC22824; Thu, 12 Oct 2006 14:53:32 +0200 (CEST) Date: Thu, 12 Oct 2006 14:53:32 +0200 From: Goran Lowkrantz To: Max Laier , "Andrew N. Below" Message-ID: <39854B1CC4DAED83B093C729@[172.16.3.218]> In-Reply-To: <200610100504.56088.max@love2party.net> References: <089501c6ebb0$31848e20$970da8c0@jam.zenon.net> <0a2a01c6ebcb$e3d36bd0$970da8c0@jam.zenon.net> <200610092026.58504.max@love2party.net> <200610100504.56088.max@love2party.net> X-Mailer: Mulberry/4.0.6 (Linux/x86) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Cc: sam@freebsd.org, freebsd-stable@freebsd.org Subject: Re: iwi, hidden SSID and wpa_supplicant problem X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Oct 2006 12:53:39 -0000 Hi, Reporting back after a few days with the patch. The connect and switching=20 between accesspoints work but there are still a few down/up events, about=20 once every two hours but that may have somthing to do with the dhcp cleint. = At the moment, the number of lease renewals match the number of link=20 down/up events. I leave this to the clever folks. When running from the em=20 interface, I do not see any down/up at all and thet net uses the same DCHP=20 server etc. iwi0: link state changed to DOWN iwi0: link state changed to UP iwi0: link state changed to DOWN iwi0: link state changed to UP iwi0: link state changed to DOWN iwi0: link state changed to UP iwi0: link state changed to DOWN iwi0: link state changed to UP iwi0: link state changed to DOWN iwi0: scan stuck iwi0: link state changed to UP /glz --On Tuesday, October 10, 2006 05:04:46 +0200 Max Laier=20 wrote: > On Monday 09 October 2006 20:26, Max Laier wrote: >> On Monday 09 October 2006 19:53, Andrew N. Below wrote: >> > Hi. >> > >> > [..] >> > >> > > You can try using ap_scan=3D2 or whatever it is in the >> > > wpa_supplicant.conf file. This causes wpa_supplicant to use >> > > directed broadcasts msgs to each ap listed in the file. >> > >> > In my case setting ap_scan to 2 doesn't help. >> > >> > BTW, I got successfull connection some time ago when I >> > start to use /etc/rc.d/netif start iwi0 instead of manual >> > running of wpa_supplicant: >> > >> > defanbook# ifconfig iwi0 >> > iwi0: flags=3D8843 mtu 1500 >> > inet 213.189.198.75 netmask 0xfffffff0 broadcast >> > 213.189.198.79 ether 00:12:f0:3d:cd:58 >> > media: IEEE 802.11 Wireless Ethernet autoselect mode 11b >> > (DS/11Mbps) status: associated >> > ssid ZENON-RADIO channel 11 bssid 00:07:0e:b8:d8:ee >> > authmode WPA privacy ON deftxkey UNDEF TKIP 2:128-bit TKIP >> > 3:128-bit txpowmax 100 bmiss 10 protmode CTS roaming MANUAL bintval >> > 100 >> > >> > I wrote bssid value to /etc/wpa_supplicant.conf and run >> > /etc/rc.d/netif. >> > >> > Then I drop connection (netif stop iwi0) and tried to start it again. >> > I got "associated" state in 5-6 minutes. >> > >> > In rc.conf I have: >> > >> > ifconfig_iwi0=3D"ssid MY-SSID channel 11 WPA >> > >> > How can I get "-dd" output from wpa_supplicant started with netif? >> > It could be interesting. >> >> No idea, but a bit more stress testing did reveal a similar problem >> here. After I associated with the AP w/ hidden SSID I changed the >> channel via webinterface. The disconnect resulted in the exact problem >> you were having. Only stopping and restarting wpa_supplicant fixed the >> issue and I got associated on the new channel. Not sure what happens >> there yet, but something seems to get stuck in an undefined state. > > Could you try the attached - untested - patch? It seems - from looking > at the linux driver - that we have to remind the firmware of the ESSID > before doing a directed scan. That explains why it would sometimes work > (whenever we are coming straight from iwi_config) and sometimes not. > > Let me know if that improves things for you. Thanks. > > -- > /"\ Best regards, | mlaier@freebsd.org > \ / Max Laier | ICQ #67774661 > X http://pf4freebsd.love2party.net/ | mlaier@EFnet > / \ ASCII Ribbon Campaign | Against HTML Mail and News --=20 ................................................... the future isMobile Goran Lowkrantz System Architect, isMobile, Aurorum 2, S-977 75 Lule=EF=BF=A5, Sweden Phone: +46(0)920-75559 Mobile: +46(0)70-587 87 82 Fax: +46(0)70-615 87 82 http://www.ismobile.com ...............................................