Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 2 Nov 2013 10:37:00 +0100
From:      Bernhard Schmidt <bschmidt@techwires.net>
To:        clutton <clutton@zoho.com>
Cc:        freebsd-wireless@freebsd.org
Subject:   Re: service netif restart [iface] runs a wpa_supplicant twice
Message-ID:  <CAAgh0_biBXGBYSuJN_j0XAk-5aL%2BFi_EyZQCoZ4N7R%2B17BvMDg@mail.gmail.com>
In-Reply-To: <1383382815.31973.1.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>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Nov 2, 2013 at 10:00 AM, clutton <clutton@zoho.com> 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 configure the interface based on
what is configured in rc.conf. Point is, down the road wlan0 will be
created, with 2 things following
1. start wpa_supplicant if it is configured in rc.conf
2. create an event for devd which will again invoke pccard_ether for wlan0
So basically we have 2 instances of pccard_ether started, one for ath0
and one for wlan0.

create ath0 -> devd (new interface ath0) -> pccard_ether -> create
wlan0 (*) -> start wpa_supplicant
(*) devd (new interface wlan0) -> pccard_ether -> start wpa_supplicant

Hope that makes it a bit clearer.

-- 
Bernhard



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAAgh0_biBXGBYSuJN_j0XAk-5aL%2BFi_EyZQCoZ4N7R%2B17BvMDg>