wlan interface parent

Oliver Pinter oliver.pinter at hardenedbsd.org
Wed Dec 28 12:03:31 UTC 2016


Hi!


On Wed, Dec 28, 2016 at 12:55 PM, Hooman Fazaeli
<hoomanfazaeli at 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 at blackbird ~> sysctl -d net.wlan.devices
net.wlan.devices: names of available 802.11 devices
op at blackbird ~> sysctl net.wlan.devices
net.wlan.devices: iwm0
op at blackbird ~> sysctl net.wlan.0.%parent
net.wlan.0.%parent: iwm0
op at blackbird ~>


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


More information about the freebsd-hackers mailing list