From owner-freebsd-arch@FreeBSD.ORG Wed Jun 18 23:13:20 2014 Return-Path: Delivered-To: arch@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 14621E32 for ; Wed, 18 Jun 2014 23:13:20 +0000 (UTC) Received: from h2.funkthat.com (gate2.funkthat.com [208.87.223.18]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "funkthat.com", Issuer "funkthat.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id DE0AC2BC0 for ; Wed, 18 Jun 2014 23:13:19 +0000 (UTC) Received: from h2.funkthat.com (localhost [127.0.0.1]) by h2.funkthat.com (8.14.3/8.14.3) with ESMTP id s5INDIZL041270 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 18 Jun 2014 16:13:19 -0700 (PDT) (envelope-from jmg@h2.funkthat.com) Received: (from jmg@localhost) by h2.funkthat.com (8.14.3/8.14.3/Submit) id s5INDItB041269 for arch@FreeBSD.org; Wed, 18 Jun 2014 16:13:18 -0700 (PDT) (envelope-from jmg) Date: Wed, 18 Jun 2014 16:13:18 -0700 From: John-Mark Gurney To: arch@FreeBSD.org Subject: conflict between netif and pccard_ether... Message-ID: <20140618231318.GH31367@funkthat.com> Mail-Followup-To: arch@FreeBSD.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.3i X-Operating-System: FreeBSD 7.2-RELEASE i386 X-PGP-Fingerprint: 54BA 873B 6515 3F10 9E88 9322 9CB1 8F74 6D3F A396 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html X-TipJar: bitcoin:13Qmb6AeTgQecazTWph4XasEsP7nGRbAPE X-to-the-FBI-CIA-and-NSA: HI! HOW YA DOIN? can i haz chizburger? X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.2.2 (h2.funkthat.com [127.0.0.1]); Wed, 18 Jun 2014 16:13:19 -0700 (PDT) X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Jun 2014 23:13:20 -0000 So, I recently was trying to figure out why wireless on my notebook wouldn't work.. I would boot up the machine w/o the wireless configured, uncomment the lines in rc.conf, and then run "service netif start"... Wireless would associate, but when disconnect... After some investigation, it turns out that two copies of wpa_supplicant are being launched... I believe one from netif, and another from pccard_ether launched by devd... The issue is that both netif and pccard_ether "claim" ownership of them. pccard_ether will ignore the ifconfig_ line if NOAUTO is specified. IMO, we need to make one or the other "own" configuring and launching the interface... There is also the issue that wpa_sup doesn't use proper locking on the pidfile and allows two copies to be launched... My thoughts is to convert it to pidfile to fix this issue the easiest... Comments? Suggestions? -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not."