Date: Wed, 23 Oct 2013 21:43:39 -0700 From: Adrian Chadd <adrian@freebsd.org> To: clutton <clutton@zoho.com> Cc: "freebsd-wireless@freebsd.org" <freebsd-wireless@freebsd.org> Subject: Re: service netif restart [iface] runs a wpa_supplicant twice Message-ID: <CAJ-Vmok=-bWq-eohdJt%2BwcTrJ43cak_sQu_hxO%2Bzt7HauGgg5g@mail.gmail.com> In-Reply-To: <1382589020.1846.36.camel@eva02.mbsd> References: <1382572583.1862.39.camel@eva02.mbsd> <CAJ-VmonD%2B0rEAYm0Zk5HviciJEngTQ2j5xcKPzuNXBH8CWNA7g@mail.gmail.com> <1382589020.1846.36.camel@eva02.mbsd>
next in thread | previous in thread | raw e-mail | index | archive | help
IT's not. It's devd doing something dumb. -a On 23 October 2013 21:30, clutton <clutton@zoho.com> 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 <clutton@zoho.com> 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" > >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJ-Vmok=-bWq-eohdJt%2BwcTrJ43cak_sQu_hxO%2Bzt7HauGgg5g>