Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Oct 2024 08:32:40 +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%2BAExUQ6mv0KghiXGmTGu4FiehUn8mzSWTMG=FHEK2V14DeWxw@mail.gmail.com>
In-Reply-To: <CA%2BAExUQcWZc4Ht=8iaSESnmTeOACN__rOVG53OOZGTYgRnd1rA@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> <CA%2BAExUTLmt6aBTR9zdK3eynHwMbHd35Vd8FqxHw6uxJ-MEyUUg@mail.gmail.com> <5p07s859-nr38-p981-208o-279pq5509qs4@serrofq.bet> <CA%2BAExURkWpq-KxbhKDBy8iDKhq6jY5-N7rANTo9kuTMcSs6t7w@mail.gmail.com> <CA%2BAExURe-ad%2BsBb-7sSwCmV%2BD1ZCmSxL82riJ5W=H3R2n46PsA@mail.gmail.com> <CA%2BAExUQcWZc4Ht=8iaSESnmTeOACN__rOVG53OOZGTYgRnd1rA@mail.gmail.com>

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

Let me rephrase the request. I would like to modernize the wifi stack so
that netlink is used in ifconfig, for example, instead of ioctls. Is that
possible, can you help me? Thanks.

=D0=BD=D0=B4, 20 =D0=B6=D0=BE=D0=B2=D1=82. 2024, 21:50 =D0=BA=D0=BE=D1=80=
=D0=B8=D1=81=D1=82=D1=83=D0=B2=D0=B0=D1=87 Artem Hevorhian <
artemhevorhian@gmail.com> =D0=BF=D0=B8=D1=88=D0=B5:

> Also, may I ask you why there is software 'wpa' in contrib packages that
> uses nl80211 if that's not currently supported?
>
> On Sun, Oct 20, 2024 at 9:36=E2=80=AFPM Artem Hevorhian <artemhevorhian@g=
mail.com>
> wrote:
>
>> Also, can I ask, when you mention native code, you mean 'ioctl's, right?
>>
>> On Sun, Oct 20, 2024 at 9:08=E2=80=AFPM Artem Hevorhian <artemhevorhian@=
gmail.com>
>> wrote:
>>
>>> I will have available to me as much time as is required. A year or even
>>> more. I guess the project can be delivered in certain portions. So the
>>> initial milestone could be something to show off in the thesis. The oth=
er
>>> parts of the work could be done afterwards. Time is not a problem here.
>>>
>>> On Sun, Oct 20, 2024 at 9:00=E2=80=AFPM Bjoern A. Zeeb <bz@freebsd.org>=
 wrote:
>>>
>>>> On Sun, 20 Oct 2024, Artem Hevorhian wrote:
>>>>
>>>> > 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 i=
s
>>>> the
>>>> > lack of support (which I would like to fix) for working with nl80211
>>>> > netlink on FreeBSD.
>>>>
>>>> Okay.
>>>>
>>>> > I understand that you say that most of the code is
>>>> > already there, I will have a look at that.
>>>>
>>>> native code; not nl80211.
>>>>
>>>> > 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.
>>>>
>>>> I think scan is a demonstrator and probably a good start for such a
>>>> project
>>>> but by far not in any reality what needs to be implemented.
>>>>
>>>> I don't know how much time you'll have avail for your masters.
>>>>
>>>> I know we (Adrian, I, etc) had some discussions on the interface and
>>>> versioning etc. and what Linux had done.  I'd be curious what others
>>>> think about going down that road?
>>>>
>>>> /bz
>>>>
>>>> --
>>>> Bjoern A. Zeeb                                                     r15=
:7
>>>>
>>>

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

<div dir=3D"auto">Let me rephrase the request. I would like to modernize th=
e wifi stack so that netlink is used in ifconfig, for example, instead of i=
octls. Is that possible, can you help me? Thanks.=C2=A0</div><br><div class=
=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">=D0=BD=D0=B4, 20 =D0=
=B6=D0=BE=D0=B2=D1=82. 2024, 21:50 =D0=BA=D0=BE=D1=80=D0=B8=D1=81=D1=82=D1=
=83=D0=B2=D0=B0=D1=87 Artem Hevorhian &lt;<a href=3D"mailto:artemhevorhian@=
gmail.com">artemhevorhian@gmail.com</a>&gt; =D0=BF=D0=B8=D1=88=D0=B5:<br></=
div><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-lef=
t:1px #ccc solid;padding-left:1ex"><div dir=3D"ltr">Also, may I ask you why=
 there is software &#39;wpa&#39; in contrib packages that uses nl80211 if t=
hat&#39;s not currently supported?<br></div><br><div class=3D"gmail_quote">=
<div dir=3D"ltr" class=3D"gmail_attr">On Sun, Oct 20, 2024 at 9:36=E2=80=AF=
PM Artem Hevorhian &lt;<a href=3D"mailto:artemhevorhian@gmail.com" target=
=3D"_blank" rel=3D"noreferrer">artemhevorhian@gmail.com</a>&gt; wrote:<br><=
/div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;bo=
rder-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir=3D"ltr">Als=
o, can I ask, when you mention native code, you mean &#39;ioctl&#39;s, righ=
t?<br></div><br><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_=
attr">On Sun, Oct 20, 2024 at 9:08=E2=80=AFPM Artem Hevorhian &lt;<a href=
=3D"mailto:artemhevorhian@gmail.com" target=3D"_blank" rel=3D"noreferrer">a=
rtemhevorhian@gmail.com</a>&gt; wrote:<br></div><blockquote class=3D"gmail_=
quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,=
204);padding-left:1ex"><div dir=3D"ltr"><div>I will have available to me as=
 much time as is required. A year or even more. I guess the project can be =
delivered in certain portions. So the initial milestone could be something =
to show off in the thesis. The other parts of the work could be done afterw=
ards. Time is not a problem here.<br></div></div><br><div class=3D"gmail_qu=
ote"><div dir=3D"ltr" class=3D"gmail_attr">On Sun, Oct 20, 2024 at 9:00=E2=
=80=AFPM Bjoern A. Zeeb &lt;<a href=3D"mailto:bz@freebsd.org" target=3D"_bl=
ank" rel=3D"noreferrer">bz@freebsd.org</a>&gt; wrote:<br></div><blockquote =
class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px sol=
id rgb(204,204,204);padding-left:1ex">On Sun, 20 Oct 2024, Artem Hevorhian =
wrote:<br>
<br>
&gt; The &quot;library&quot; is just a demonstration of how netlink events =
are used in<br>
&gt; communicating the state of the wifi subsystem on Linux. I would like t=
o<br>
&gt; implement the same kernel backend for FreeBSD. The &quot;library&quot;=
 uses libmnl,<br>
&gt; but I can use raw netlink sockets, it&#39;s not a problem. The problem=
 is the<br>
&gt; lack of support (which I would like to fix) for working with nl80211<b=
r>
&gt; netlink on FreeBSD.<br>
<br>
Okay.<br>
<br>
&gt; I understand that you say that most of the code is<br>
&gt; already there, I will have a look at that.<br>
<br>
native code; not nl80211.<br>
<br>
&gt; But I guess that the overall<br>
&gt; functionality of driving your wifi module (scan feature) from the user=
space<br>
&gt; with the help of asking the kernel to do it from the kernel space is a=
 good<br>
&gt; idea.<br>
<br>
I think scan is a demonstrator and probably a good start for such a project=
<br>
but by far not in any reality what needs to be implemented.<br>
<br>
I don&#39;t know how much time you&#39;ll have avail for your masters.<br>
<br>
I know we (Adrian, I, etc) had some discussions on the interface and<br>
versioning etc. and what Linux had done.=C2=A0 I&#39;d be curious what othe=
rs<br>
think about going down that road?<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>
</blockquote></div>
</blockquote></div>

--000000000000ceaa5106251e37c5--



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