Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 Dec 2016 13:03:28 +0100
From:      Oliver Pinter <oliver.pinter@hardenedbsd.org>
To:        Hooman Fazaeli <hoomanfazaeli@gmail.com>
Cc:        FreeBSD Hackers <freebsd-hackers@freebsd.org>
Subject:   Re: wlan interface parent
Message-ID:  <CAPQ4ffvCeu-SneAdxpzV0c5HJHfFpA5X_ds42x7Qh4zi9xoi3A@mail.gmail.com>
In-Reply-To: <5863A822.7050000@gmail.com>
References:  <5863A822.7050000@gmail.com>

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


On Wed, Dec 28, 2016 at 12:55 PM, Hooman Fazaeli
<hoomanfazaeli@gmail.com> wrote:
> Hi
>
> What is the right method to get the parent device name of a given
> WLAN interface in userland code? I could not find any relevant ioctl
> command in <net80211/ieee80211_ioctl.h>.

Try with sysctls if you want to detect the name from script of user-space

op@blackbird ~> sysctl -d net.wlan.devices
net.wlan.devices: names of available 802.11 devices
op@blackbird ~> sysctl net.wlan.devices
net.wlan.devices: iwm0
op@blackbird ~> sysctl net.wlan.0.%parent
net.wlan.0.%parent: iwm0
op@blackbird ~>


>
> Thanks.
>
> --
> Best regards
> Hooman Fazaeli
>
> _______________________________________________
> freebsd-hackers@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"



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