Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 3 Nov 2013 09:56:08 -0800
From:      Adrian Chadd <adrian@freebsd.org>
To:        clutton <clutton@zoho.com>, "freebsd-arch@freebsd.org" <freebsd-arch@freebsd.org>
Cc:        "freebsd-wireless@freebsd.org" <freebsd-wireless@freebsd.org>
Subject:   Re: service netif restart [iface] runs a wpa_supplicant twice
Message-ID:  <CAJ-VmomAiBTFiiFn6ENtJMjBurhq-U2nFh_vWeOxkN=3d6MZTQ@mail.gmail.com>
In-Reply-To: <1383419596.3253.42.camel@eva02.mbsd>
References:  <1382572583.1862.39.camel@eva02.mbsd> <CAJ-VmonD%2B0rEAYm0Zk5HviciJEngTQ2j5xcKPzuNXBH8CWNA7g@mail.gmail.com> <1382589020.1846.36.camel@eva02.mbsd> <CAJ-Vmok=-bWq-eohdJt%2BwcTrJ43cak_sQu_hxO%2Bzt7HauGgg5g@mail.gmail.com> <1383331203.12614.1.camel@eva02.mbsd> <CAAgh0_aq7Mw-4JA6sEa2MoaqjivSNTKkRnfJwuct%2B=v-o4U2kg@mail.gmail.com> <CAJ-VmonRPHaYAKTm8V5Rj2Uc_ONqbTu2wxZrTM%2Buwpkc7RpLTg@mail.gmail.com> <1383336004.13657.18.camel@eva02.mbsd> <CAJ-VmomTsNH=%2BE_HXrSBfq-FLfw_5FqejW2NkH%2BLTKVFMSda4A@mail.gmail.com> <1383338117.13657.53.camel@eva02.mbsd> <CAJ-VmonP63PV%2BoP6feZiRCJrB_fFU3xwK%2Btu%2BB6MR-py4ey_4Q@mail.gmail.com> <1383382815.31973.1.camel@eva02.mbsd> <CAAgh0_biBXGBYSuJN_j0XAk-5aL%2BFi_EyZQCoZ4N7R%2B17BvMDg@mail.gmail.com> <CAJ-Vmok3vfXfLTcMk%2BRh9_nAL3fP02phw%2BaNjQjbfhQDaLtCew@mail.gmail.com> <1383419596.3253.42.camel@eva02.mbsd>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2 November 2013 12:13, clutton <clutton@zoho.com> 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-supplicant should always run if it's required in /etc/rc.conf;
* netif should check if devd is configured and if so, just leave the
configuration up to devd
* if it isn't running, then devd should be responsible for
dhclient/add-to-wpa-config

What we first have to establish is whether add_interface and
remove_interface (or whatever they're called) are correctly working,
for ethernet and wifi driver types. Then, we need to ensure they can
coexist (ie, one wpa_supplicant, but with both ethernet/wifi drivers
loaded and active on their relevant interfaces.) _then_ we can break
out the "stuff devd does" out of netif and have _either_ netif (x)or
devd call this new script to setup/teardown the interface runtime
state.

How's that sound?



-adrian



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJ-VmomAiBTFiiFn6ENtJMjBurhq-U2nFh_vWeOxkN=3d6MZTQ>