From owner-freebsd-wireless@FreeBSD.ORG Fri Nov 1 20:35:25 2013 Return-Path: Delivered-To: freebsd-wireless@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 ESMTP id 6C9BAF59 for ; Fri, 1 Nov 2013 20:35:25 +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 4CFEA26D9 for ; Fri, 1 Nov 2013 20:35:25 +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=okgLWDWGdY23Ji4BSDdroac0KgAwrRW5RRGzuzTax3pATOw4rR0ZkxdbJ9XR13IN5BZbOLiNDMdn esw2CZvmQ3++Vdo7h/6/eihIs4OIc80u7SHZGIbun7Tnm/hHP+pV Received: from [192.168.11.5] (213.111.120.236 [213.111.120.236]) by mx.zohomail.com with SMTPS id 1383338123828350.2742818311242; Fri, 1 Nov 2013 13:35: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> Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-NQHgN4Pcp74HmTBjL43n" Date: Fri, 01 Nov 2013 22:35:17 +0200 Message-ID: <1383338117.13657.53.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_57 X-ZohoMail-Owner: <1383338117.13657.53.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: Fri, 01 Nov 2013 20:35:25 -0000 --=-NQHgN4Pcp74HmTBjL43n Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, 2013-11-01 at 13:02 -0700, Adrian Chadd wrote: > What's running the other copy? >=20 >=20 >=20 > Adrian >=20 > 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 > =20 > 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"; }; --=-NQHgN4Pcp74HmTBjL43n 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) iQIcBAABAgAGBQJSdBCFAAoJECNkWbjnbjuiJIwP/RBQ24CvGWA+SjWe8qvrNY7J TUWfmZYYEQwJYHFC5p4sZ77ZEgR+9vc95CxaXKQbCp3mN8Hdh5Uz5PqSzrRAX5Lg 1ZzSa95Zhk5+MPYzb2G9SCCdBFFDQrSlQ3r0+gMJnE7zgLmCIcdzoOiVmAWtnUWI CoC5lZERERBenh4oPM6YcAahzLfElu+Wgsn/VYTolkLhcHuFf7Vx4Ja+b3SvE5SZ /czngCEkFBoUFWgf0/pXHzVk6i26Ir3FmaHGoV5bavTAtJm9aBoXpUpzXAshBlVj qh9kioqFyT9BsK20kTMV55Ut2DmsHpQ2fAnP80XgtSjUTbnxuLspQHG2FhQeedFT aiX++hH3r9KJjbRF/hf+7B7GOVdtO1YGUjceA8pzch1cGpvNn/wtRAXXJtDG8/dS H0oUwdBxzCfEtYeDjlOp9FH3o88NnRkaDe3ZuWYKyeOCF740dg9AHswrc4s4/XEe b4yreqCDc6Czxdt2S4UQYq3tA9poKEO9GzeVrGYJAOxS+UosT2H275rKSODN0UXl imeQ+FS/PgmUJWyRNcewOht/B4lY4wGtDmAHBwhKw1fL2YR1uTCvPju01kHqQFGL +aXxUA4VBiLKS15XqyDp6JEfXG+93CIi5Nvq6+13Us8EzpgWyP61nc5R5UAJrj6q 39x/lMApYQ//UdIV45Mq =oOj/ -----END PGP SIGNATURE----- --=-NQHgN4Pcp74HmTBjL43n--