From owner-freebsd-mobile Sun May 19 21:32:55 2002 Delivered-To: freebsd-mobile@freebsd.org Received: from mta5.snfc21.pbi.net (mta5.snfc21.pbi.net [206.13.28.241]) by hub.freebsd.org (Postfix) with ESMTP id 3DE5937B404 for ; Sun, 19 May 2002 21:32:50 -0700 (PDT) Received: from pacbell.net ([63.193.114.253]) by mta5.snfc21.pbi.net (iPlanet Messaging Server 5.1 (built May 7 2001)) with ESMTP id <0GWE003LX7APEY@mta5.snfc21.pbi.net> for freebsd-mobile@freebsd.org; Sun, 19 May 2002 21:32:50 -0700 (PDT) Date: Sun, 19 May 2002 21:32:15 -0700 From: Thomas Skibo Subject: Re: Small problem with host-ap To: Nick Sayer Cc: freebsd-mobile@freebsd.org Message-id: <3CE87C4F.D9146566@pacbell.net> Organization: College Avenue Surf Shop MIME-version: 1.0 X-Mailer: Mozilla 4.79 [en] (X11; U; Linux 2.4.2 i386) Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT X-Accept-Language: en References: <3CE84C16.7080904@quack.kfu.com> Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Nick Sayer wrote: > > Machine 1 has a Netgear MA401 and is running FreeBSD and is in host-ap mode. > > Machine 2 has an orinoco gold card and is running Windows XP. > > The symptom is that if about 30 seconds go by without any traffic going > across the link, the XP machine will report that the wireless network > has gone away. It will then immediately rediscover it, but in the mean > time, any open TCP connections will be dropped. What is supposed to happen is that after 2 minutes of inactivity, a station is dis-associated. Some changes made to the host ap code incorrectly changed the time to 24 seconds (I submitted some fixes for that). Still, I haven't seen the behavior you describe with Windows XP. Perhaps it's driver related. My windows XP machine keeps itself associated by sending occasional do-nothing LLC frames. Maybe if the inactivity time-out value were larger (like 5 minutes), the LLC frames will come often enough to keep it from being timed out. (?) My freebsd client doesn't send LLC frames but it doesn't care if it gets dis-associated: it just reassociates without flapping the interface. Try the following change to wi_hostap.h: 120,121c122 < #define WIHAP_INTERVAL 5 < #define WIHAP_DFLT_INACTIVITY_TIME (120/WIHAP_INTERVAL) /* 2 minutes */ --- > #define WIHAP_DFLT_INACTIVITY_TIME 120 /* 2 minutes */ If that doesn't work, maybe I need to rethink how this disassociation stuff works. -- ------------------------------------------------------------------------ skibo@ Thomas pacbell.net Skibo To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message