Re: Support for nl80211.h

From: Artem Hevorhian <artemhevorhian_at_gmail.com>
Date: Wed, 31 Jul 2024 19:12:46 UTC
Sounds great. But why is it not possible to port nl80211.h? Could you give
me the reasons? Also, I would like to tackle this task. Or at least try to
do it. If you can help me with that by providing more info on how you think
that could be done, I would appreciate it so much. Thanks!

On Sat, Jul 27, 2024, 11:58 PM Bjoern A. Zeeb <bz@freebsd.org> wrote:

> On Sat, 27 Jul 2024, Artem Hevorhian wrote:
>
> Hi,
>
> > Is there a plan to support nl80211.h in the future? I would like to write
> > my own wifi scanner that would talk to kernel module (driver) and get
> scan
> > information from it. I know it is possible with Linux. Is FreeBSD
> planning
> > to do a similar thing? Thanks.
>
> I cannot see a 1:1 nl80211.h implementation for FreeBSD any time soon.
>
> You can look at ifconfig sources for freebsd how to obtain scan
> information; it's simple ioctl.
>
> I'd start here:
> https://cgit.freebsd.org/src/tree/sbin/ifconfig/ifieee80211.c#n3744
>
> There rest of the code is in the library you can use as well (and which
> ifconfig uses):
> https://cgit.freebsd.org/src/tree/lib/lib80211
>
>
> HTH,
> /bz
>
> --
> Bjoern A. Zeeb                                                     r15:7
>