From nobody Sun Oct 20 18:08:50 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 4XWmfk4prTz5Zby6 for ; Sun, 20 Oct 2024 18:09:18 +0000 (UTC) (envelope-from artemhevorhian@gmail.com) Received: from mail-wr1-x42f.google.com (mail-wr1-x42f.google.com [IPv6:2a00:1450:4864:20::42f]) (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 4XWmfk0Sykz4NYj; Sun, 20 Oct 2024 18:09:18 +0000 (UTC) (envelope-from artemhevorhian@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-wr1-x42f.google.com with SMTP id ffacd0b85a97d-37d5aedd177so3121577f8f.1; Sun, 20 Oct 2024 11:09:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1729447756; x=1730052556; 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=RObBNfrFuyYY2MpuoaMhvaNTUbns/f0DS2911As0ePc=; b=aZhDiAvuQiA7VVJCsajdq/ukiW9bZ7n7Fbq1Fn2qOdAlvFfIOSKAZBwpgTqsOgRIKk aNZG5nPuBkLHM0Itk+wiPu95ie6r/RO9zyPYpB6YGM7YLB056IgeVTdAOalxgEvuzcXq lqVLScWCGaWQ+RONyiCvv3Gqen0F/aryWA92kwR3tqYeJuf3uuCQ4tP6o0uZnLu+vblQ DyXM0HkNKBHDFnkf06n8RytiCrjn4NGOdVYJQcNUIIirWuFOA8kNDk53MKi0Ea5xnJFM 0RxmkwjXpcjC0WF4nc0p4LbKionWO0+LyTTXeWl0W+HsxZ0f0cnIZ9HoMq0daa3dgN9k rFeg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729447756; x=1730052556; 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=RObBNfrFuyYY2MpuoaMhvaNTUbns/f0DS2911As0ePc=; b=vF4PJksLBN9L2IvnW0l/4+uFhjDUaUY+Vn9Vq4z6vZsK5nI856v3VOQ9+b/9f57kly hMluNUb1kfbAlZCwi82ZmcJtPxtnvW+Dr+mu1TYYW5z7I7LGSTAY7B2uWJ0QYEyYrEiB OMJSzb4p3tlOSDZwZXxzM7OMYhXWL4yDDfK5Lv1QNuU1O2J7Gz34kNXvAuw+v6mcAkdd TwaOZ06xrXBgS4fwNLTTv0LGOmvvpoWoTPjYIWZ93r32N3NqrOcSuss+kFp6dvEsBAZ7 /ju9pJ902TZxe3v+oJKtAaiacBfuz5UYxKQ9gTSe1N3tBcstFEgkU2FVTpIxJSST6epB Q5fw== X-Gm-Message-State: AOJu0YyMv+xaWGk3lLIcodjTAqTzqG+NG+7nFT/0vPF2ljOLA6srB/IG 7aPAqKo8relaYQp6Amtdz7XzDZpwGzMQ7+VpFhIq9XRcU6TmLNI+dIJ3/RKst33aFYj7aRfRYRV Lxbg4wje7umigAyH8TNfIP/9Q6tpmcg== X-Google-Smtp-Source: AGHT+IEF4OYU2LNQQdDoK30qE6TeI/X7IJzKqSw1JBKA0QhfR0HTl4UexNnzW865MO8OMu3UvKPgVh9oSSAE6wjV1K8= X-Received: by 2002:a5d:5310:0:b0:374:c31e:9721 with SMTP id ffacd0b85a97d-37eab6e49d5mr5410910f8f.42.1729447755902; Sun, 20 Oct 2024 11:09:15 -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: <5p07s859-nr38-p981-208o-279pq5509qs4@serrofq.bet> From: Artem Hevorhian Date: Sun, 20 Oct 2024 21:08:50 +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="00000000000025f5710624ec6fdc" X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US] X-Rspamd-Queue-Id: 4XWmfk0Sykz4NYj X-Spamd-Bar: ---- --00000000000025f5710624ec6fdc Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 afterwards. Time is not a problem here. On Sun, Oct 20, 2024 at 9:00=E2=80=AFPM Bjoern A. Zeeb wro= te: > 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 libmn= l, > > but I can use raw netlink sockets, it's not a problem. The problem is t= he > > 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 proje= ct > 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 > --00000000000025f5710624ec6fdc Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I will have available to me as much time as is requir= ed. A year or even more. I guess the project can be delivered in certain po= rtions. So the initial milestone could be something to show off in the thes= is. The other parts of the work could be done afterwards. Time is not a pro= blem here.

On Sun, Oct 20, 2024 at 9:00=E2=80=AFPM Bjoern A. Zeeb = <bz@freebsd.org> wrote:
On Sun, 20 Oct 2024, Ar= tem 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
--00000000000025f5710624ec6fdc--