Date: Wed, 21 Jul 2010 14:59:31 +0000 From: Paul B Mahol <onemda@gmail.com> To: =?ISO-8859-1?Q?Leonardo_M=2E_Ram=E9?= <martinrame@yahoo.com> Cc: freebsd-questions@freebsd.org Subject: Re: WLAN stops working when idle Message-ID: <AANLkTil3iWZxldwQlN01Cap2K0LvcVEtD-9stReTJJ-G@mail.gmail.com> In-Reply-To: <30910.84956.qm@web113503.mail.gq1.yahoo.com> References: <30910.84956.qm@web113503.mail.gq1.yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Jul 19, 2010 at 11:12 PM, Leonardo M. Ram=E9 <martinrame@yahoo.com>= 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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTil3iWZxldwQlN01Cap2K0LvcVEtD-9stReTJJ-G>