From owner-freebsd-current@FreeBSD.ORG Thu Sep 8 17:24:17 2005 Return-Path: X-Original-To: current@freebsd.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F3F1416A41F for ; Thu, 8 Sep 2005 17:24:16 +0000 (GMT) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id 991D743D45 for ; Thu, 8 Sep 2005 17:24:16 +0000 (GMT) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (localhost.localdomain [127.0.0.1]) by odin.ac.hmc.edu (8.13.0/8.13.0) with ESMTP id j88HOCtV024976; Thu, 8 Sep 2005 10:24:12 -0700 Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.13.0/8.13.0/Submit) id j88HOCq0024975; Thu, 8 Sep 2005 10:24:12 -0700 Date: Thu, 8 Sep 2005 10:24:12 -0700 From: Brooks Davis To: Kevin Oberman Message-ID: <20050908172412.GF31354@odin.ac.hmc.edu> References: <20050908155730.D6D4E5D08@ptavv.es.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="dWYAkE0V1FpFQHQ3" Content-Disposition: inline In-Reply-To: <20050908155730.D6D4E5D08@ptavv.es.net> User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new X-Spam-Status: No, hits=0.0 required=8.0 tests=none autolearn=no version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on odin.ac.hmc.edu Cc: current@freebsd.org Subject: Re: Still roaming issues with new dhclient and if_wi X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Sep 2005 17:24:17 -0000 --dWYAkE0V1FpFQHQ3 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Sep 08, 2005 at 08:57:30AM -0700, Kevin Oberman wrote: > I have a ThinkPad with a Prism2.5 wireless card and use the wi > driver. Since the change to the OpenBSD dhclient I am no longer able to > roam from our conference room to my office. Before the dhclient change, > I would lose association as I walked up two floors and from one end of > the building to the other, associate again in my office (or while > walking down the corridor) and, after a short wait for the bridge to > figure out where my MAC was coming from and update its forwarding > tables, I was up and running including my ssh sessions. >=20 > I previously complained that dhclient was exiting when the card lost > association and had to be restarted. That's been fixed (Thanks, Sam), > but the problem is now even more annoying. I now get to my office and > dhclient is still running and the interface is associated, but the > interface no longer has an IP address. It is possible that it would > eventually get one, but I have never been willing to wait for more than > a few minutes. I can "fix" it by killing dhclient and re-starting it. I > get an address (same one I had in the conference room) immediately and > I'm back to normal. >=20 > I think the issue is that the SSID changes between my office and the > conference room. lbnl_wlan45 in the conf. room and lbnl_wlan46 in my > office, but if dhclient lives on, why doesn't it request an IP when the > SSID changes or simply exit? If I forget to kick it immediately, I lose > my ssh sessions. Your nic (actually its driver) is apparently failing to generate a link down event when it looses association. If it did this dhclient would die and then restart when you reacquire association. > Don't you get tired of hearing that "it used to work with the old > dhclient"? :-) Yes. :-) > Any suggestions? In a very brief check it looks to me like there is not a code path in the wi(4) driver that leads to a call to ieee80211_notify_node_join or ieee80211_notify_node_leave which means that it won't generate the routing messages it needs to. I don't have time to look at this in depth, but that looks like one avenue to pursue. -- Brooks --=20 Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4 --dWYAkE0V1FpFQHQ3 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFDIHO7XY6L6fI4GtQRAnMhAJ4/JfzYWDnAfdaaKFhRCNOuvKKdrQCg4zpR sQGV3LzE+B5gF2gmfbcTfu4= =Uu5o -----END PGP SIGNATURE----- --dWYAkE0V1FpFQHQ3--