Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 02 Nov 2013 11:00:15 +0200
From:      clutton <clutton@zoho.com>
To:        freebsd-wireless@freebsd.org
Subject:   Re: service netif restart [iface] runs a wpa_supplicant twice
Message-ID:  <1383382815.31973.1.camel@eva02.mbsd>
In-Reply-To: <CAJ-VmonP63PV%2BoP6feZiRCJrB_fFU3xwK%2Btu%2BB6MR-py4ey_4Q@mail.gmail.com>
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>

next in thread | previous in thread | raw e-mail | index | archive | help

--=-qx3f4/weV05ByAUrxLbl
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

On Fri, 2013-11-01 at 23:50 -0700, Adrian Chadd wrote:
> OK, so where's the other path for invoking wpa_supplicant?
>=20
>=20
> -a
>=20
> On 1 November 2013 13:35, clutton <clutton@zoho.com> 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" <clutton@zoho.com> wrote:
> >>         On Fri, 2013-11-01 at 12:33 -0700, Adrian Chadd wrote:
> >>         > On 1 November 2013 12:16, Bernhard Schmidt
> >>         <bschmidt@techwires.net> 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 code which will then invoke
> >>         pccard_ether. Changing
> >>         > > the code as you intent to will prevent this.
> >>         > >
> >>         > > Someone should step up an decide what is supposed to
> >>         happen, should
> >>         > > wlan0 in that case be configured as stated in rc.conf, or
> >>         not?
> >>         > >
> >>         > > The actual issue though, is in wpa_supplicant itself. It
> >>         has code to
> >>         > > prevent it being started twice, but that doesn't kick in
> >>         because the
> >>         > > instances are started to fast and we loose (have not yet
> >>         setup enough)
> >>         > > information in our net code.
> >>         >
> >>         > Uhm, I'm confused by this. Would you mind explaining it in a
> >>         bit more detail?
> >>         >
> >>         >
> >>         > -a
> >>
> >>         The devd runs a pccard_ether script when the IFNET interface
> >>         appears.
> >>         In some rare cases you can see two copies of the
> >>         wpa_sopplicant.
> >
> > devd:
> >
> > notify 0 {
> >         match "system"          "IFNET";
> >         match "subsystem"       "!usbus[0-9]+";
> >         match "type"            "ATTACH";
> >         action "/etc/pccard_ether $subsystem start";
> > };
> >


What do you mean?

--=-qx3f4/weV05ByAUrxLbl
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (FreeBSD)

iQIcBAABAgAGBQJSdL8fAAoJECNkWbjnbjuilEUP/0Z1sLs9vsCvspr/zUm1qAxF
xpDJEwZ3k8C2xrm2o8D3CnUVSe3A4/xzK9NBEWgZczZcZYRF4Heo1cil3Gch5R9p
xeCGfj7gax2wc45Bn0ZnBr8xm+oygN7zmAXW6lYbJ6qQMKvhFzapfsR6wxviti0S
smkqLIA3QeseeN4DVWrk83g2mmitynvGqY6tHvcHlokxt70AZXIfcwV5GlvAdk4D
o+WAti6hqXwgqSt3YLfOTAaQEzHC1gTB1wmJwXsOA0AYi7JumnDP93tjn168h0Oz
W222OcozdQdUnv7krov6t8pbHjVyTcHZnjTBfRUfXzOLYo0/eUElJWXsLioAm2Bo
uzyO3xMLwtzoMQSLvAxZMQFOdlLq5ssIlNEowC7/xD4lNVQeCFshHm0DUDjc6I/Z
LefRgeHX5jrfDmfraTdwNievHAMKuRE/ko0afpHy7QODaNd/8R+Jbxj1jnileZyt
INm+qzGOZ9ok8gGk7yGCyteuWnkuHBktNC9V+Y7poisdGnZUlE1uwf+e7Ra8iekW
NsaLxlNn609pADsYVSsZI6Cu6UfXOdtQdoy+gfkHZu9Oyvf0jnY3OGCKSEWmhecg
DVwvFS9OuKYROZVPmSTZXBEVWEnwGSqHQKTiW++TN+07uvDstajpm6s2orTzgYB5
i1cNAB598v+eA7ty/ntt
=ZX/W
-----END PGP SIGNATURE-----

--=-qx3f4/weV05ByAUrxLbl--





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1383382815.31973.1.camel>