From nobody Wed Oct 23 05:32:40 2024 X-Original-To: freebsd-wireless@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4XYHkf44XVz5Zr2d for ; Wed, 23 Oct 2024 05:32:58 +0000 (UTC) (envelope-from artemhevorhian@gmail.com) Received: from mail-wr1-x434.google.com (mail-wr1-x434.google.com [IPv6:2a00:1450:4864:20::434]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XYHkd6ScPz4tls; Wed, 23 Oct 2024 05:32:57 +0000 (UTC) (envelope-from artemhevorhian@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20230601 header.b=AFfZWyul; spf=pass (mx1.freebsd.org: domain of artemhevorhian@gmail.com designates 2a00:1450:4864:20::434 as permitted sender) smtp.mailfrom=artemhevorhian@gmail.com; dmarc=pass (policy=none) header.from=gmail.com Received: by mail-wr1-x434.google.com with SMTP id ffacd0b85a97d-37d5689eea8so4219876f8f.1; Tue, 22 Oct 2024 22:32:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1729661576; x=1730266376; darn=freebsd.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=eIy5mJfKmmxQIvvKzV+H/YMthcNB+hz87kbZ2JvPDxY=; b=AFfZWyulBt/JiR37j8vS4LN8ghU4dxk/GpwwKNIIEexcBLvXWVngCWx97QZbYwIytm v+tCfvPpEebpvXL7zLh79jj+vHE8babyVlCRnqZFHVakiQh/xb3QbnBCedNI1VtY87Pu oZAFG7ZhX5ReKARuNeXolciORUQLuFQ2buDYryAfO4ZMPFWR/7BNs1kgVn0oDWzrj32Z uxHgVmCBZwF9E5oxNGNNJCHUiQskW8QszQumrhon+bVDg//ftn0Qbmqc+RPXiaQzjHMr Xz6qXL2QVgPOatWzOvbSo5U0tw5TWY2NHzjrGNLsvjT6FRlpw4otO9D/oNWzrFPTH3LX iYxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729661576; x=1730266376; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=eIy5mJfKmmxQIvvKzV+H/YMthcNB+hz87kbZ2JvPDxY=; b=W7219NkIVKQL2/URImnvWhaWFqsmW0a1/KEn++foQJEA5fgR206JX9BZUxpMur42hT rd6Ac1V406NmbhdVdYaAFr7U8NVTJKBDE15Z2WxJ2QMpUzwOVcdlf1HsI1OTtSwnn81Y AlN4rU4nzuzQgulWekUMHZ7YcsVs77T/wZnI74XYsUxtAhq8sRVlrqsCx9LGTY76KSIW XOC/qOEzo1aGKR4Q70EO7MLJ+V4xUfyrmZJYKcF7LEiEuD0NvdwGp4t2fYMIV9gouHa3 hr6WWU+Ckx+PXPgaUUhHMn3XFh4+H6/rx6SMr3jX1neqP7HEvTlCDpPzccqcc3JjGL6e 5afQ== X-Gm-Message-State: AOJu0YxiWAzYHJY8Q/CONUlCJDKH+c+9YO1TczRGZqBriz4atRvblTig MIbLDlHn6KbKFpwSX5FzIdO+Tf8A9l5HbAyfpquSKeClmgi1Ipc5mEkz0u0Y6v1xx8A/d1qIdZk sZ9XVwc7ty9mUXI0AHHm0QW0ciA1cUfbt X-Google-Smtp-Source: AGHT+IGZYvFONkE1ivhxdSw3gfp2HGJCMcalgRvY8WSuF7Ga3f54Nh7clV9/u/LEUHM9dit11lUAXxYergYQxzTxuPE= X-Received: by 2002:adf:f201:0:b0:37d:4afe:8c9b with SMTP id ffacd0b85a97d-37efcf8cdc4mr748445f8f.54.1729661575799; Tue, 22 Oct 2024 22:32:55 -0700 (PDT) List-Id: Discussions List-Archive: https://lists.freebsd.org/archives/freebsd-wireless List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-wireless@freebsd.org Sender: owner-freebsd-wireless@FreeBSD.org MIME-Version: 1.0 References: <5p07s859-nr38-p981-208o-279pq5509qs4@serrofq.bet> In-Reply-To: From: Artem Hevorhian Date: Wed, 23 Oct 2024 08:32:40 +0300 Message-ID: Subject: Re: Help wanted on porting a library from Linux to FreeBSD To: "Bjoern A. Zeeb" Cc: freebsd-wireless@freebsd.org Content-Type: multipart/alternative; boundary="000000000000ceaa5106251e37c5" X-Spamd-Result: default: False [-3.99 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.99)[-0.987]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36:c]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20230601]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_COUNT_ONE(0.00)[1]; TO_DN_SOME(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; MISSING_XM_UA(0.00)[]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; RCVD_TLS_LAST(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; MID_RHS_MATCH_FROMTLD(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; MLMMJ_DEST(0.00)[freebsd-wireless@freebsd.org]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::434:from]; DKIM_TRACE(0.00)[gmail.com:+] X-Rspamd-Queue-Id: 4XYHkd6ScPz4tls X-Spamd-Bar: --- --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 > 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 >> 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 = 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
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

=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 t= hat's not currently supported?

=
On Sun, Oct 20, 2024 at 9:36=E2=80=AF= PM Artem Hevorhian <artemhevorhian@gmail.com> wrote:
<= /div>
Als= o, can I ask, when you mention native code, you mean 'ioctl's, righ= t?

On Sun, Oct 20, 2024 at 9:08=E2=80=AFPM Artem Hevorhian <a= rtemhevorhian@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 other parts of the work could be done afterw= ards. 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 t= o
> 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.

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 user= space
> 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.=C2=A0 I'd be curious what othe= rs
think about going down that road?

/bz

--
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
--000000000000ceaa5106251e37c5--