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>
next in thread | previous in thread | raw e-mail | index | archive | help
--000000000000de8e54061e8fe168 Content-Type: text/plain; charset="UTF-8" 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 > --000000000000de8e54061e8fe168 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"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. O= r at least try to do it. If you can help me with that by providing more inf= o on how you think that could be done, I would appreciate it so much. Thank= s!</div><br><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr= ">On Sat, Jul 27, 2024, 11:58 PM Bjoern A. Zeeb <<a href=3D"mailto:bz@fr= eebsd.org">bz@freebsd.org</a>> wrote:<br></div><blockquote class=3D"gmai= l_quote" style=3D"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 wr= ite<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 plan= ning<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=3D"https://cgit.freebsd.org/src/tree/sbin/ifconfig/ifieee80211.c#n3= 744" rel=3D"noreferrer noreferrer" target=3D"_blank">https://cgit.freebsd.o= rg/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=3D"https://cgit.freebsd.org/src/tree/lib/lib80211" rel=3D"noreferre= r noreferrer" target=3D"_blank">https://cgit.freebsd.org/src/tree/lib/lib80= 211</a><br> <br> <br> HTH,<br> /bz<br> <br> -- <br> Bjoern A. Zeeb=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0r15:7<br> </blockquote></div> --000000000000de8e54061e8fe168--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2BAExUSUCEdKqQ3J=wQKj7BjO%2Bd2qs5h8GTWwi%2BVsdNDgpJv3g>