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

Reply via email to