Date: Wed, 31 Jul 2024 22:12:46 +0300 From: Artem Hevorhian <artemhevorhian@gmail.com> To: "Bjoern A. Zeeb" <bz@freebsd.org> Cc: freebsd-wireless@freebsd.org Subject: Re: Support for nl80211.h Message-ID: <CA%2BAExUSUCEdKqQ3J=wQKj7BjO%2Bd2qs5h8GTWwi%2BVsdNDgpJv3g@mail.gmail.com> In-Reply-To: <n627s68o-24s0-q75q-p8r2-sq0n91p638q4@SerrOFQ.bet> References: <CA%2BAExURowH_Ni-ccdfPzcjenhkzpTTC7pZgxYOCszRd7Vw_mVQ@mail.gmail.com> <n627s68o-24s0-q75q-p8r2-sq0n91p638q4@SerrOFQ.bet>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --] 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 > [-- Attachment #2 --] <div dir="auto">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!</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Jul 27, 2024, 11:58 PM Bjoern A. Zeeb <<a href="mailto:bz@freebsd.org">bz@freebsd.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Sat, 27 Jul 2024, Artem Hevorhian wrote:<br> <br> Hi,<br> <br> > Is there a plan to support nl80211.h in the future? I would like to write<br> > my own wifi scanner that would talk to kernel module (driver) and get scan<br> > information from it. I know it is possible with Linux. Is FreeBSD planning<br> > to do a similar thing? Thanks.<br> <br> I cannot see a 1:1 nl80211.h implementation for FreeBSD any time soon.<br> <br> You can look at ifconfig sources for freebsd how to obtain scan<br> information; it's simple ioctl.<br> <br> I'd start here:<br> <a href="https://cgit.freebsd.org/src/tree/sbin/ifconfig/ifieee80211.c#n3744" rel="noreferrer noreferrer" target="_blank">https://cgit.freebsd.org/src/tree/sbin/ifconfig/ifieee80211.c#n3744</a><br> <br> There rest of the code is in the library you can use as well (and which<br> ifconfig uses):<br> <a href="https://cgit.freebsd.org/src/tree/lib/lib80211" rel="noreferrer noreferrer" target="_blank">https://cgit.freebsd.org/src/tree/lib/lib80211</a><br> <br> <br> HTH,<br> /bz<br> <br> -- <br> Bjoern A. Zeeb r15:7<br> </blockquote></div>home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2BAExUSUCEdKqQ3J=wQKj7BjO%2Bd2qs5h8GTWwi%2BVsdNDgpJv3g>
