From owner-freebsd-wireless@FreeBSD.ORG Thu Oct 24 04:43:40 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 B3DA1BC for ; Thu, 24 Oct 2013 04:43:40 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-qe0-x22e.google.com (mail-qe0-x22e.google.com [IPv6:2607:f8b0:400d:c02::22e]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 74253283D for ; Thu, 24 Oct 2013 04:43:40 +0000 (UTC) Received: by mail-qe0-f46.google.com with SMTP id s14so1107387qeb.5 for ; Wed, 23 Oct 2013 21:43:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=fZdcpPW2/pYFYyt84HaqHYOWkImT2kQ/oDs8eXevrJs=; b=wNIRUZ0SycdEp4QNuP9JxY+XCnrswobpEUZ6JwqQdmXig6smQNww9Q9hE12bGFGPPJ NO9xWvNWzcOhq+Nz3vD6an9Zd3fWLa8DpmRzdS4RHw7dtcH3QJVDlTLiExzDOsBfCCy6 T2tOlWi+LTTP/gYvvrRb8smziYs3t3LCQkb3UmA8V4qnpw6XvLFw+cflZ4vuHUCpIyW/ jKyETycGavVEKL7UjL5fOcHOZnvKIn9yVwcGNHrC2tCiD07cDi4kXpOt3ld6iU6Ko5Zs NM1RZyPNaIxtKUuUpdsN048a2M1tiCJPW4JsdcgnNGPfkt0wkwTLLrAdpny4owuwDu62 qtmQ== MIME-Version: 1.0 X-Received: by 10.49.24.202 with SMTP id w10mr1025925qef.12.1382589819672; Wed, 23 Oct 2013 21:43:39 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.224.207.66 with HTTP; Wed, 23 Oct 2013 21:43:39 -0700 (PDT) In-Reply-To: <1382589020.1846.36.camel@eva02.mbsd> References: <1382572583.1862.39.camel@eva02.mbsd> <1382589020.1846.36.camel@eva02.mbsd> Date: Wed, 23 Oct 2013 21:43:39 -0700 X-Google-Sender-Auth: 5FwkgWsqsCKzuI4JcB-6IeXprRw Message-ID: Subject: Re: service netif restart [iface] runs a wpa_supplicant twice From: Adrian Chadd To: clutton Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: "freebsd-wireless@freebsd.org" 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:43:40 -0000 IT's not. It's devd doing something dumb. -a On 23 October 2013 21:30, clutton wrote: > 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! > > > > > > > > -adrian > > > > > > > > On 23 October 2013 16:56, clutton wrote: > > > > > What is the best way to restart a wireless stack? > > > > > > A command "ifconfig wlan0 create wlandev ath0" starts the > wpa_supplicant > > > 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=30067 > > > [wpa_supplicant] SUPPID=30067 > > > [netif.network_common()] STOP: > > > > > > It means that during running a network_common() from the > /etc/rc.d/netif > > > the /etc/rc.d/wpa_supplicant was called twice. > > > > > > /etc/rc.conf > > > wlans_ath0="wlan0" > > > ifconfig_wlan0="WPA DHCP" > > > ifconfig_em0="DHCP" > > > ipsec_enable="YES" > > > > > > /etc/wpa_supplicant.conf > > > network={ > > > ssid="ssid" > > > psk="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.org" > >