From owner-freebsd-wireless@FreeBSD.ORG Sat Nov 2 09:00:27 2013 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 23427CF7 for ; Sat, 2 Nov 2013 09:00:27 +0000 (UTC) (envelope-from clutton@zoho.com) Received: from sender1.zohomail.com (sender1.zohomail.com [72.5.230.95]) by mx1.freebsd.org (Postfix) with ESMTP id 031D029C0 for ; Sat, 2 Nov 2013 09:00:26 +0000 (UTC) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=zapps768; d=zoho.com; h=subject:from:to:cc:in-reply-to:references:content-type:date:message-id:mime-version; b=KzBygMjaMeF+z5BW2kYq5IDdfBFUapu/5ECDeUS5v3QRtZmVomC7Al3r63QtP61XVfN2CeDrdb28 Ol0RFVADqio5479WMaqyLmlzR6dbxSJqzZ58ca1t/NznX4lnU0dQ Received: from [192.168.11.5] (213.111.120.236 [213.111.120.236]) by mx.zohomail.com with SMTPS id 1383382823874327.74719553782086; Sat, 2 Nov 2013 02:00:23 -0700 (PDT) Subject: Re: service netif restart [iface] runs a wpa_supplicant twice From: clutton To: freebsd-wireless@freebsd.org In-Reply-To: References: <1382572583.1862.39.camel@eva02.mbsd> <1382589020.1846.36.camel@eva02.mbsd> <1383331203.12614.1.camel@eva02.mbsd> <1383336004.13657.18.camel@eva02.mbsd> <1383338117.13657.53.camel@eva02.mbsd> Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-qx3f4/weV05ByAUrxLbl" Date: Sat, 02 Nov 2013 11:00:15 +0200 Message-ID: <1383382815.31973.1.camel@eva02.mbsd> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port X-Zoho-Virus-Status: 1 X-ZohoMail: Ss SS_10 UW UB UW UB SGR3_1_25103_62 X-ZohoMail-Owner: <1383382815.31973.1.camel@eva02.mbsd>+zmo_0_ X-ZohoMail-Sender: 213.111.120.236 X-ZohoMailClient: External X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Nov 2013 09:00:27 -0000 --=-qx3f4/weV05ByAUrxLbl Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, 2013-11-01 at 23:50 -0700, Adrian Chadd wrote: > OK, so where's the other path for invoking wpa_supplicant? >=20 >=20 > -a >=20 > On 1 November 2013 13:35, clutton wrote: > > On Fri, 2013-11-01 at 13:02 -0700, Adrian Chadd wrote: > >> What's running the other copy? > >> > >> > >> > >> Adrian > >> > >> On Nov 1, 2013 4:00 PM, "clutton" wrote: > >> On Fri, 2013-11-01 at 12:33 -0700, Adrian Chadd wrote: > >> > On 1 November 2013 12:16, Bernhard Schmidt > >> wrote: > >> > > >> > > That actually is a design question I once wrapped my head > >> around > >> > > unsuccessfully. The lines above are responsible for > >> configuring wlan0 > >> > > if it is created, eg. > >> > > ifconfig wlan0 destroy > >> > > ifconfig wlan0 create wlandev ath0 > >> > > will invoke above code which will then invoke > >> pccard_ether. Changing > >> > > the code as you intent to will prevent this. > >> > > > >> > > Someone should step up an decide what is supposed to > >> happen, should > >> > > wlan0 in that case be configured as stated in rc.conf, or > >> not? > >> > > > >> > > The actual issue though, is in wpa_supplicant itself. It > >> has code to > >> > > prevent it being started twice, but that doesn't kick in > >> because the > >> > > instances are started to fast and we loose (have not yet > >> setup enough) > >> > > information in our net code. > >> > > >> > Uhm, I'm confused by this. Would you mind explaining it in a > >> bit more detail? > >> > > >> > > >> > -a > >> > >> The devd runs a pccard_ether script when the IFNET interface > >> appears. > >> In some rare cases you can see two copies of the > >> wpa_sopplicant. > > > > devd: > > > > notify 0 { > > match "system" "IFNET"; > > match "subsystem" "!usbus[0-9]+"; > > match "type" "ATTACH"; > > action "/etc/pccard_ether $subsystem start"; > > }; > > What do you mean? --=-qx3f4/weV05ByAUrxLbl Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (FreeBSD) iQIcBAABAgAGBQJSdL8fAAoJECNkWbjnbjuilEUP/0Z1sLs9vsCvspr/zUm1qAxF xpDJEwZ3k8C2xrm2o8D3CnUVSe3A4/xzK9NBEWgZczZcZYRF4Heo1cil3Gch5R9p xeCGfj7gax2wc45Bn0ZnBr8xm+oygN7zmAXW6lYbJ6qQMKvhFzapfsR6wxviti0S smkqLIA3QeseeN4DVWrk83g2mmitynvGqY6tHvcHlokxt70AZXIfcwV5GlvAdk4D o+WAti6hqXwgqSt3YLfOTAaQEzHC1gTB1wmJwXsOA0AYi7JumnDP93tjn168h0Oz W222OcozdQdUnv7krov6t8pbHjVyTcHZnjTBfRUfXzOLYo0/eUElJWXsLioAm2Bo uzyO3xMLwtzoMQSLvAxZMQFOdlLq5ssIlNEowC7/xD4lNVQeCFshHm0DUDjc6I/Z LefRgeHX5jrfDmfraTdwNievHAMKuRE/ko0afpHy7QODaNd/8R+Jbxj1jnileZyt INm+qzGOZ9ok8gGk7yGCyteuWnkuHBktNC9V+Y7poisdGnZUlE1uwf+e7Ra8iekW NsaLxlNn609pADsYVSsZI6Cu6UfXOdtQdoy+gfkHZu9Oyvf0jnY3OGCKSEWmhecg DVwvFS9OuKYROZVPmSTZXBEVWEnwGSqHQKTiW++TN+07uvDstajpm6s2orTzgYB5 i1cNAB598v+eA7ty/ntt =ZX/W -----END PGP SIGNATURE----- --=-qx3f4/weV05ByAUrxLbl--