Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 Oct 2024 20:43:59 +0300
From:      Artem Hevorhian <artemhevorhian@gmail.com>
To:        "Bjoern A. Zeeb" <bz@freebsd.org>
Cc:        freebsd-wireless@freebsd.org
Subject:   Re: Help wanted on porting a library from Linux to FreeBSD
Message-ID:  <CA%2BAExUTLmt6aBTR9zdK3eynHwMbHd35Vd8FqxHw6uxJ-MEyUUg@mail.gmail.com>
In-Reply-To: <CA%2BAExUTrQY8sHp-G6VyBexMagjK=AWCPfGBLaS37-cnfFC4tiw@mail.gmail.com>
References:  <CA%2BAExURkdSmZnRn1L376w0u1acc1qATnwfYSW-zm=fBBCUsipg@mail.gmail.com> <s5pp91n7-5or7-0305-60n4-p843ss34409p@SerrOFQ.bet> <CA%2BAExUTrQY8sHp-G6VyBexMagjK=AWCPfGBLaS37-cnfFC4tiw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
--0000000000004d837b0624ec16c2
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

The "library" is just a demonstration of how netlink events are used in
communicating the state of the wifi subsystem on Linux. I would like to
implement the same kernel backend for FreeBSD. The "library" uses libmnl,
but I can use raw netlink sockets, it's not a problem. The problem is the
lack of support (which I would like to fix) for working with nl80211
netlink on FreeBSD. I understand that you say that most of the code is
already there, I will have a look at that. But I guess that the overall
functionality of driving your wifi module (scan feature) from the userspace
with the help of asking the kernel to do it from the kernel space is a good
idea.

On Sun, Oct 20, 2024 at 8:37=E2=80=AFPM Artem Hevorhian <artemhevorhian@gma=
il.com>
wrote:

> Great question! I am trying to implement something that I could present a=
s
> a Master's thesis in the university.
>
> On Sun, Oct 20, 2024 at 8:36=E2=80=AFPM Bjoern A. Zeeb <bz@freebsd.org> w=
rote:
>
>> On Sun, 20 Oct 2024, Artem Hevorhian wrote:
>>
>> Hi,
>>
>> > Hello everyone, I would like to port this library
>> > https://github.com/bmegli/wifi-scan over to FreeBSD. Could maybe bz@
>> help
>> > me by mentoring me in this direction? I've spoken with melifaro@, he
>> has an
>> > estimate of 3 months for this job. I would like to do that.
>>
>> By what software is that "library" used?
>>
>> I would assume most of the code for it is in lib80211/ifconfig and it's
>> a day job to replace the nl80211 with nativ code.
>>
>> Given you mentioned melifaro and 3 months I assume you want to implement
>> an nl80211 interface for FreeBSD instead?
>>
>> So let me ask, what's the real purpose for the project?
>>
>> /bz
>>
>> --
>> Bjoern A. Zeeb                                                     r15:7
>>
>

--0000000000004d837b0624ec16c2
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">The &quot;library&quot; is just a demonstration of how net=
link events are used in=20
communicating the state of the wifi subsystem on Linux. I would like to=20
implement the same kernel backend for FreeBSD. The &quot;library&quot; uses=
=20
libmnl, but I can use raw netlink sockets, it&#39;s not a problem. The=20
problem is the lack of support (which I would like to fix) for working=20
with nl80211 netlink on FreeBSD. I understand that you say that most of=20
the code is already there, I will have a look at that. But I guess that=20
the overall functionality of driving your wifi module (scan feature)=20
from the userspace with the help of asking the kernel to do it from the=20
kernel space is a=C2=A0good idea. </div><br><div class=3D"gmail_quote"><div=
 dir=3D"ltr" class=3D"gmail_attr">On Sun, Oct 20, 2024 at 8:37=E2=80=AFPM A=
rtem Hevorhian &lt;<a href=3D"mailto:artemhevorhian@gmail.com">artemhevorhi=
an@gmail.com</a>&gt; wrote:<br></div><blockquote class=3D"gmail_quote" styl=
e=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);paddin=
g-left:1ex"><div dir=3D"ltr">Great question! I am trying to implement somet=
hing that I could present as a Master&#39;s thesis in the university.<br></=
div><br><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">On=
 Sun, Oct 20, 2024 at 8:36=E2=80=AFPM Bjoern A. Zeeb &lt;<a href=3D"mailto:=
bz@freebsd.org" target=3D"_blank">bz@freebsd.org</a>&gt; wrote:<br></div><b=
lockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-le=
ft:1px solid rgb(204,204,204);padding-left:1ex">On Sun, 20 Oct 2024, Artem =
Hevorhian wrote:<br>
<br>
Hi,<br>
<br>
&gt; Hello everyone, I would like to port this library<br>
&gt; <a href=3D"https://github.com/bmegli/wifi-scan" rel=3D"noreferrer" tar=
get=3D"_blank">https://github.com/bmegli/wifi-scan</a>; over to FreeBSD. Cou=
ld maybe bz@ help<br>
&gt; me by mentoring me in this direction? I&#39;ve spoken with melifaro@, =
he has an<br>
&gt; estimate of 3 months for this job. I would like to do that.<br>
<br>
By what software is that &quot;library&quot; used?<br>
<br>
I would assume most of the code for it is in lib80211/ifconfig and it&#39;s=
<br>
a day job to replace the nl80211 with nativ code.<br>
<br>
Given you mentioned melifaro and 3 months I assume you want to implement<br=
>
an nl80211 interface for FreeBSD instead?<br>
<br>
So let me ask, what&#39;s the real purpose for the project?<br>
<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>
</blockquote></div>

--0000000000004d837b0624ec16c2--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2BAExUTLmt6aBTR9zdK3eynHwMbHd35Vd8FqxHw6uxJ-MEyUUg>