Re: service netif restart [iface] runs a wpa_supplicant twice

2013-12-09 Thread John Baldwin
On Saturday, December 07, 2013 4:39:27 am clutton wrote: > On Tue, 2013-11-12 at 13:54 -0500, John Baldwin wrote: > > Guys, it still doesn't work. Two days ago, when I changed my AP setup, > in rc.conf and then run «sudo service netif restart» I'd observed two > copies of the wpa_supplicant. > >

Re: service netif restart [iface] runs a wpa_supplicant twice

2013-12-07 Thread clutton
On Tue, 2013-11-12 at 13:54 -0500, John Baldwin wrote: Guys, it still doesn't work. Two days ago, when I changed my AP setup, in rc.conf and then run «sudo service netif restart» I'd observed two copies of the wpa_supplicant. System is CURRENT b9061d4, I can't see the pgrep patch on it... _

Re: service netif restart [iface] runs a wpa_supplicant twice

2013-11-12 Thread John Baldwin
On Monday, November 11, 2013 11:47:42 pm Hiroki Sato wrote: > John Baldwin wrote > in <201311051154.18872@freebsd.org>: > > jh> I also tested vlans created via vlans_ and they should use the same > fix as > jh> well. Note that this model is more consistent with how cloned_interfaces > jh>

Re: service netif restart [iface] runs a wpa_supplicant twice

2013-11-11 Thread Hiroki Sato
John Baldwin wrote in <201311051154.18872@freebsd.org>: jh> I also tested vlans created via vlans_ and they should use the same fix as jh> well. Note that this model is more consistent with how cloned_interfaces jh> works where ifn_start is not explicitly run when each interface is create

Re: service netif restart [iface] runs a wpa_supplicant twice

2013-11-11 Thread John Baldwin
On Thursday, November 07, 2013 5:22:03 pm clutton wrote: > On Wed, 2013-11-06 at 11:59 -0500, John Baldwin wrote: > > On Tuesday, November 05, 2013 5:17:30 pm John Baldwin wrote: > > > On Tuesday, November 05, 2013 2:33:50 pm Bernhard Schmidt wrote: > > > > On Tue, Nov 5, 2013 at 5:54 PM, John Bald

Re: service netif restart [iface] runs a wpa_supplicant twice

2013-11-07 Thread clutton
On Wed, 2013-11-06 at 11:59 -0500, John Baldwin wrote: > On Tuesday, November 05, 2013 5:17:30 pm John Baldwin wrote: > > On Tuesday, November 05, 2013 2:33:50 pm Bernhard Schmidt wrote: > > > On Tue, Nov 5, 2013 at 5:54 PM, John Baldwin wrote: > > > > On Sunday, November 03, 2013 12:56:08 pm Adri

Re: service netif restart [iface] runs a wpa_supplicant twice

2013-11-06 Thread John Baldwin
On Tuesday, November 05, 2013 5:17:30 pm John Baldwin wrote: > On Tuesday, November 05, 2013 2:33:50 pm Bernhard Schmidt wrote: > > On Tue, Nov 5, 2013 at 5:54 PM, John Baldwin wrote: > > > On Sunday, November 03, 2013 12:56:08 pm Adrian Chadd wrote: > > >> On 2 November 2013 12:13, clutton wrote

Re: service netif restart [iface] runs a wpa_supplicant twice

2013-11-05 Thread John Baldwin
On Tuesday, November 05, 2013 2:33:50 pm Bernhard Schmidt wrote: > On Tue, Nov 5, 2013 at 5:54 PM, John Baldwin wrote: > > On Sunday, November 03, 2013 12:56:08 pm Adrian Chadd wrote: > >> On 2 November 2013 12:13, clutton wrote: > >> > >> [snip] > >> > >> > What was happened? netif tries to setu

Re: service netif restart [iface] runs a wpa_supplicant twice

2013-11-05 Thread Bernhard Schmidt
On Tue, Nov 5, 2013 at 5:54 PM, John Baldwin wrote: > On Sunday, November 03, 2013 12:56:08 pm Adrian Chadd wrote: >> On 2 November 2013 12:13, clutton wrote: >> >> [snip] >> >> > What was happened? netif tries to setup wlan0 (clone, wpa, dhcp, etc), >> > when wlan0 interface occurs, devd runs an

Re: service netif restart [iface] runs a wpa_supplicant twice

2013-11-05 Thread Adrian Chadd
On 5 November 2013 08:54, John Baldwin wrote: > Note that devd just runs netif (via /etc/pccard_ether), so it's already > just one script, and having netif bail if devd is running would make > netif not do anything in the common case. > > What normally happens during boot is that '/etc/rc.d/netif

Re: service netif restart [iface] runs a wpa_supplicant twice

2013-11-05 Thread John Baldwin
On Sunday, November 03, 2013 12:56:08 pm Adrian Chadd wrote: > On 2 November 2013 12:13, clutton wrote: > > [snip] > > > What was happened? netif tries to setup wlan0 (clone, wpa, dhcp, etc), > > when wlan0 interface occurs, devd runs another copy of netif. > > Well, it sounds like we need to p

Re: service netif restart [iface] runs a wpa_supplicant twice

2013-11-03 Thread Adrian Chadd
On 2 November 2013 12:13, clutton wrote: [snip] > What was happened? netif tries to setup wlan0 (clone, wpa, dhcp, etc), > when wlan0 interface occurs, devd runs another copy of netif. Well, it sounds like we need to pick an architecture _and_ fix the behaviour here. Which is: * I think wpa-

Re: service netif restart [iface] runs a wpa_supplicant twice

2013-11-02 Thread clutton
On Sat, 2013-11-02 at 10:00 -0700, Adrian Chadd wrote: > right, this makes it clearer. > > What about: > > * the wpa_supplicant rc script only starts/stops one wpa_supplicant instance > * upon ethernet / wlan clone creation, use interface_add to add the > interface to wpa_supplicant > * upon ethe

Re: service netif restart [iface] runs a wpa_supplicant twice

2013-11-02 Thread Adrian Chadd
right, this makes it clearer. What about: * the wpa_supplicant rc script only starts/stops one wpa_supplicant instance * upon ethernet / wlan clone creation, use interface_add to add the interface to wpa_supplicant * upon ethernet / wlan clone destruction, use interface_remove how's that sound?

Re: service netif restart [iface] runs a wpa_supplicant twice

2013-11-02 Thread Bernhard Schmidt
On Sat, Nov 2, 2013 at 10:00 AM, clutton wrote: > On Fri, 2013-11-01 at 23:50 -0700, Adrian Chadd wrote: >> OK, so where's the other path for invoking wpa_supplicant? > > What do you mean? kldload if_ath if will create ath0 which is a INET interface which will invoke pccard_ether, which will conf

Re: service netif restart [iface] runs a wpa_supplicant twice

2013-11-02 Thread clutton
On Fri, 2013-11-01 at 23:50 -0700, Adrian Chadd wrote: > OK, so where's the other path for invoking wpa_supplicant? > > > -a > > 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 > >

Re: service netif restart [iface] runs a wpa_supplicant twice

2013-11-01 Thread Adrian Chadd
OK, so where's the other path for invoking wpa_supplicant? -a 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 1

Re: service netif restart [iface] runs a wpa_supplicant twice

2013-11-01 Thread clutton
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: >

Re: service netif restart [iface] runs a wpa_supplicant twice

2013-11-01 Thread clutton
On Fri, 2013-11-01 at 20:16 +0100, Bernhard Schmidt wrote: > On Fri, Nov 1, 2013 at 7:40 PM, clutton wrote: > > On Wed, 2013-10-23 at 21:43 -0700, Adrian Chadd wrote: > >> IT's not. It's devd doing something dumb. > >> > >> > >> -a > >> > >> > >> On 23 October 2013 21:30, clutton wrote: > >> > >>

Re: service netif restart [iface] runs a wpa_supplicant twice

2013-11-01 Thread Adrian Chadd
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 li

Re: service netif restart [iface] runs a wpa_supplicant twice

2013-11-01 Thread clutton
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

Re: service netif restart [iface] runs a wpa_supplicant twice

2013-11-01 Thread Adrian Chadd
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 co

Re: service netif restart [iface] runs a wpa_supplicant twice

2013-11-01 Thread Bernhard Schmidt
On Fri, Nov 1, 2013 at 7:40 PM, clutton wrote: > On Wed, 2013-10-23 at 21:43 -0700, Adrian Chadd wrote: >> 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. >> > B

Re: service netif restart [iface] runs a wpa_supplicant twice

2013-11-01 Thread clutton
On Wed, 2013-10-23 at 21:43 -0700, Adrian Chadd wrote: > 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

Re: service netif restart [iface] runs a wpa_supplicant twice

2013-10-23 Thread Adrian Chadd
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, Adria

Re: service netif restart [iface] runs a wpa_supplicant twice

2013-10-23 Thread clutton
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

Re: service netif restart [iface] runs a wpa_supplicant twice

2013-10-23 Thread Adrian Chadd
.. 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

service netif restart [iface] runs a wpa_supplicant twice

2013-10-23 Thread clutton
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_c