From owner-freebsd-mobile@FreeBSD.ORG Tue Mar 4 12:56:58 2008 Return-Path: Delivered-To: mobile@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DCC641065670 for ; Tue, 4 Mar 2008 12:56:58 +0000 (UTC) (envelope-from freebsd.lists@fsck.ch) Received: from secure.socket.ch (secure.socket.ch [212.103.70.36]) by mx1.freebsd.org (Postfix) with ESMTP id 913A58FC14 for ; Tue, 4 Mar 2008 12:56:58 +0000 (UTC) (envelope-from freebsd.lists@fsck.ch) Received: from bl04svfw01.bns-group.com ([62.2.233.2] helo=default.fsck.ch) by secure.socket.ch with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69 (FreeBSD)) (envelope-from ) id 1JWWOD-0000nC-Qp; Tue, 04 Mar 2008 13:37:08 +0100 Message-ID: <47CD423C.5070509@fsck.ch> Date: Tue, 04 Mar 2008 13:36:12 +0100 From: Tobias Roth User-Agent: Thunderbird 2.0.0.12 (X11/20080229) MIME-Version: 1.0 To: Kevin Oberman References: <20080227221124.A630D4500E@ptavv.es.net> In-Reply-To: <20080227221124.A630D4500E@ptavv.es.net> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Spam-Score: -4.4 (----) X-Spam-Report: Spam detection software, running on the system "secure.socket.ch", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see The administrator of that system for details. Content preview: Kevin Oberman wrote: >> 1) what is causing these deassociate/scan/reassociate cycles? > Background scans are causing it. They should not, but I have seen it a > lot. I only see it when I travel and am in a location where there are > multiple APs. [...] Content analysis details: (-4.4 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.8 ALL_TRUSTED Passed through trusted hosts only via SMTP -2.6 BAYES_00 BODY: Bayesian spam probability is 0 to 1% [score: 0.0000] X-SA-Exim-Connect-IP: 62.2.233.2 X-SA-Exim-Mail-From: freebsd.lists@fsck.ch X-SA-Exim-Scanned: No (on secure.socket.ch); SAEximRunCond expanded to false Cc: mobile@freebsd.org Subject: Re: wpa_supplicant keeps de- and reassociating X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Mar 2008 12:56:59 -0000 Kevin Oberman wrote: >> 1) what is causing these deassociate/scan/reassociate cycles? > Background scans are causing it. They should not, but I have seen it a > lot. I only see it when I travel and am in a location where there are > multiple APs. That's what must be happening here, there are plenty of APs around for my SSID. >> 2) why is it unsetting the ssid, when I explicitly set it in wpa_conf? > I suspect that it is if the BG scan completes and did not see the > current AP, even if the current AP is active. It may also be that a > different AP is stronger when the scan takes place. Hmm, this sounds unlikely for my case. APs and my laptop didn't move, yet my laptop is doing this very frequently. >> 2) how can I stop this (i.e. keep the current connection after initial >> association? > > ifconfig ath0 -bgscan (as superuser) after the initial association has > completed successfully. (I could probably do it by putting "-bgscan" im > the ifconfig_ath0 line in my rc.conf.local. This would have a negative > impact on roaming, though, so it is not the ideal solution, just one > that works fairly well. This doesn't work for me every time. Sometimes, it seems to, sometimes not. Very weird. > Something is simply interacting badly between the wpa_supplicant and the > background scans, but tracking it down will be a real pain! > > Still using profile.sh! Nice to hear! Every now and then, I'll think about redoing it completely and adapting it more to the current situation, where profile changes don't just happen at boot and resume, but much more dynamically. But then of course real life intervenes and I feel like I won't have enough time even before I started doing anything... Thanks, Tobias