From owner-freebsd-wireless@FreeBSD.ORG Thu Oct 24 04:30:26 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 5ED91B56 for ; Thu, 24 Oct 2013 04:30:26 +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 428F827A3 for ; Thu, 24 Oct 2013 04:30:25 +0000 (UTC) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=zapps768; d=zoho.com; h=subject:from:to:in-reply-to:references:content-type:date:message-id:mime-version; b=AllV5uMV+X1mP7wZtkRdDR7kWspsi0mi9Ckk/IGi0VDjn990zzzm7V9tXLjis4KL5OL097sY11mz HK3zhdIyVeJ5XUpN/Htr2trMqkgG7pbc1Kf3J32x6P82p+fdh6lq Received: from [192.168.11.5] (213.111.120.236 [213.111.120.236]) by mx.zohomail.com with SMTPS id 1382589023914991.3337685167688; Wed, 23 Oct 2013 21:30: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> Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-PWaL94nvI2eFkBhZ/5OV" Date: Thu, 24 Oct 2013 07:30:20 +0300 Message-ID: <1382589020.1846.36.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_17103_262 X-ZohoMail-Owner: <1382589020.1846.36.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: Thu, 24 Oct 2013 04:30:26 -0000 --=-PWaL94nvI2eFkBhZ/5OV Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Indeed. I have looked at a sys/net80211 and at a sys/dev/ath. But I still have no idea which one triggers rc script and how on the earth it can be done. On Wed, 2013-10-23 at 16:57 -0700, Adrian Chadd wrote: > . that needs to be fixed. It definitely shouldn't be started twice! >=20 >=20 >=20 > -adrian >=20 >=20 >=20 > On 23 October 2013 16:56, clutton wrote: >=20 > > What is the best way to restart a wireless stack? > > > > A command "ifconfig wlan0 create wlandev ath0" starts the wpa_supplican= t > > by itself. It means that the netif script runs the wpa_supplicant twice= , > > always. Is it ok? > > > > There is my debug during booting: > > > > [netif.network_common()] START: > > [netif.network_common()] ITERATION: > > [wpa_supplicant] SUPPID=3D30067 > > [wpa_supplicant] SUPPID=3D30067 > > [netif.network_common()] STOP: > > > > It means that during running a network_common() from the /etc/rc.d/neti= f > > the /etc/rc.d/wpa_supplicant was called twice. > > > > /etc/rc.conf > > wlans_ath0=3D"wlan0" > > ifconfig_wlan0=3D"WPA DHCP" > > ifconfig_em0=3D"DHCP" > > ipsec_enable=3D"YES" > > > > /etc/wpa_supplicant.conf > > network=3D{ > > ssid=3D"ssid" > > psk=3D"psk" > > } > > > > 11.0-CURRENT > > > _______________________________________________ > freebsd-wireless@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-wireless > To unsubscribe, send any mail to "freebsd-wireless-unsubscribe@freebsd.or= g" --=-PWaL94nvI2eFkBhZ/5OV 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) iQIcBAABAgAGBQJSaKJbAAoJECNkWbjnbjuiWGkP/i0MfEd9P+WoZgebKJzFEpFI 0vkjvFrAybtzCzq3ulWjNZIukfXSB2IqrMhQgEwWazlsR5VUTHinQ87YG29kSAtE PpNkhWYCGRot5k3X2kf7aqeRSeLL1RdB5V7PliHGtpkOtsjMy7HgxkafLSedxduE TUpk4ftnBmaoL3O09XsPS1UInS7VcUf3MLUACywhPg7CqfFqx/OzOo+kpnSiLzU5 wPg/6EcXtw5srXhR1LMVDpTNHkWyjtIyQNI97Ukk0BE+/azebT1CrNJQe/H7NumY YyFjp8kUr4RQzcS3mob053JAG0yuZU9D7oA5vPP+gusYl4ssteLSsDBoaA1zuaGz t9RrOsOBr6OVBLZwikgm3Zd6mUahrVQMK93/xIas36VI8Qr3kSeKBlYxl4HwrXJQ JCovv0hG8ZTqAXal7jsYq46Pp6RIBSqCUsZR/XN5WLQMbeiRX3As3DGPf/YKKUN6 i6lN+m6Ce9mIVJoNia54ENNv29xdLEp1anOYoxUQiY4cCn4cbKX7odhmjqO9MbuV rp/derIMZrizoXFI+yh8mQSExx04J4/IaO/503raCBKSr5Ws70AxYTiP6k+QAN4W 4t9mMmjtNObHXntYLWdKAyOhUH5wbnpqERhtH4c1TjfbJ7a84Mn6rBBgxMQbed68 c9HmJ9qex/KR3PJbcQQs =tQf5 -----END PGP SIGNATURE----- --=-PWaL94nvI2eFkBhZ/5OV--