Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Oct 2013 02:56:23 +0300
From:      clutton <clutton@zoho.com>
To:        freebsd-wireless@freebsd.org
Subject:   service netif restart [iface] runs a wpa_supplicant twice
Message-ID:  <1382572583.1862.39.camel@eva02.mbsd>

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

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

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=3D30067
[wpa_supplicant] SUPPID=3D30067
[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=3D"wlan0"
ifconfig_wlan0=3D"WPA DHCP"
ifconfig_em0=3D"DHCP"
ipsec_enable=3D"YES"

/etc/wpa_supplicant.conf=20
network=3D{
  ssid=3D"ssid"
  psk=3D"psk"
}

11.0-CURRENT

--=-CfFQPgS3AuOVS/IrdjFg
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)

iQIcBAABAgAGBQJSaGInAAoJECNkWbjnbjuiTWoP/3LSabkq4FBEm24tL/0q50Oz
acKIBWEb++53vMHeyaAojBBKr6udBsJ8X8FKbNCA1bj+aMg894yn7flv1YAkMDmk
JQyvv9QOjsOWUr2hb1z8VHhCMWJc35eNpxyqmGUJxFdADBWvqo6O9iY+F4IZ+2Eo
OWq/1j20dT1B0UZUyzd3P3NpKrFlECbXCohYrPa74MS5+S3Pweg1Fwz75A+t8MPH
1dM/16Z2SjNuZnxoG9iCtuX3Y28r/PdGgRbqP0DeBmz6WwSx19LAnREGB/E+RmBw
btHKCjTYY+BQ37V5BSWgxKPNzCK3HQ0Wk1lV9NUAOKJawv958E2o+RwjcmBv/Myz
E7MlfkweH+MLGad0RBf4wDzDU8Bgl/fLZIJ4YgJZZ4HcyD8sJ+CQlpdqfp64OI3L
AgE9TQzos/jrq/XINpl53IjpK07ju+OEFOZ0pQijuwliUee1rMQ4BdfwXwvYyFA9
OlBjpCWIN0WwDuN2ijoE0hju64S0HpZle7UOB1TyLt936q2ZzJfNMybdHs5job6G
oJha+xZ0TlI2r7E8YzbFp/rXCCPFtX3ISs8tPhmtotELveEQ6PiX/r8Yjks+b+lO
foK6iVrwFoihg8KC4Xtwa3a3K1yPDfvwfE6S3mkKkeoLVavGQgDGvp5moAFYlEJa
06pAUhdtAu4TGgiV+CJ0
=O8Xe
-----END PGP SIGNATURE-----

--=-CfFQPgS3AuOVS/IrdjFg--





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