From owner-freebsd-questions@FreeBSD.ORG Wed Jul 21 14:59:55 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E29201065686 for ; Wed, 21 Jul 2010 14:59:55 +0000 (UTC) (envelope-from onemda@gmail.com) Received: from mail-ew0-f54.google.com (mail-ew0-f54.google.com [209.85.215.54]) by mx1.freebsd.org (Postfix) with ESMTP id 725228FC1D for ; Wed, 21 Jul 2010 14:59:55 +0000 (UTC) Received: by ewy26 with SMTP id 26so2630099ewy.13 for ; Wed, 21 Jul 2010 07:59:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=lfFxQUPZXwbn6Vy8EBQdyUIWuo6UR5+21ZnakRa2tOE=; b=t5t7hv3uQtJM9NIdPwQNIRmvjRo5GTpLJFbUtddg2OPH1BGlacdhkjXsnTuaXY0bPB zpAqy4TnWamZizxxRj7gsR4StqPpeUXRNA/PwbzTJSaFTjLUxDbnt1Yn2E+r+fZpjMjp tF0fTsZrwX76OXrmEQEPKoMAWaLIRNaIceU8k= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=ndsCUa/isklEFl5nParukbo47Sa+PKRA94L3f4wKWonDx7uyRFdXZmzULF2uMQ0Z9Y kuKsDLweRPL1GwDL63jmOTC/HfLkiCdr+7nj2Oqz8w1uIAhEgweEZLAcqM4qOZxRq2b0 PdxYvoULQXKqK058/v8LFd6LPET/kCck0+59s= Received: by 10.216.47.140 with SMTP id t12mr229911web.102.1279724391257; Wed, 21 Jul 2010 07:59:51 -0700 (PDT) MIME-Version: 1.0 Received: by 10.216.235.200 with HTTP; Wed, 21 Jul 2010 07:59:31 -0700 (PDT) In-Reply-To: <30910.84956.qm@web113503.mail.gq1.yahoo.com> References: <30910.84956.qm@web113503.mail.gq1.yahoo.com> From: Paul B Mahol Date: Wed, 21 Jul 2010 14:59:31 +0000 Message-ID: To: =?ISO-8859-1?Q?Leonardo_M=2E_Ram=E9?= Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-questions@freebsd.org Subject: Re: WLAN stops working when idle X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Jul 2010 14:59:56 -0000 On Mon, Jul 19, 2010 at 11:12 PM, Leonardo M. Ram=E9 = wrote: > I have noted that my wlan stops responding when the O.S. does not use the= network for a while (10 minutes aprox), and I have to do "ifconfig wlan0 d= own && ifconfig wlan0 up && dhclient wlan0" to reconnect. > > The network card is the internal Wi-Fi from my Dell Inspiron 1525, and us= es ndis to wrap the WinXp driver. > > /etc/rc.conf: > ... > wlans_ndis0=3D"wlan0" > ifconfig_wlan0=3D"WPA SYNCDHCP" > wpa_supplicant_enable=3D"YES" > ... > > /etc/wpa_supplicant.conf > > ctrl_interface=3D/var/run/wpa_supplicant > ctrl_interface_group=3Dwheel > ap_scan=3D1 > network=3D{ > =A0 =A0 =A0 =A0ssid=3D"strada" > =A0 =A0 =A0 =A0key_mgmt=3DWPA-PSK > =A0 =A0 =A0 =A0psk=3D"martin13" > } > > uname -a: > > FreeBSD inspiron-1521 8.1-RC2 FreeBSD 8.1-RC2 #0: Tue Jun 29 20:42:40 UTC= 2010 =A0 =A0 root@almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC =A0= i386 > > > Any hint? You got any output from wpa_supplicant and console? You could check this NDISulator code: http;//gitorious.org/NDISulator I did some work on new state switching on net80211 layer, so if connection get lost for any reason it will try to reassociate (code on HEAD fails badly in this scenario almost always). I also did support for wep and wpa(2) via bsd driver (you can still use ndis driver - I'm talking about wpa_supplicant _drivers_) but I did not tested it much. You should also run ndis_events(8) so that events from ndis driver are passed to wpa_supplicant(8). What version of driver are you using? Newest ones (<=3D5.1 API) I tested exibit at least one bug in NDISuator which I did not resolved yet.