From nobody Sun Oct 20 17:43:59 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 4XWm645wgdz5ZZn1 for ; Sun, 20 Oct 2024 17:44:28 +0000 (UTC) (envelope-from artemhevorhian@gmail.com) Received: from mail-wm1-x333.google.com (mail-wm1-x333.google.com [IPv6:2a00:1450:4864:20::333]) (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 4XWm633BR7z4LQS; Sun, 20 Oct 2024 17:44:27 +0000 (UTC) (envelope-from artemhevorhian@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20230601 header.b=m0Sl0c6x; spf=pass (mx1.freebsd.org: domain of artemhevorhian@gmail.com designates 2a00:1450:4864:20::333 as permitted sender) smtp.mailfrom=artemhevorhian@gmail.com; dmarc=pass (policy=none) header.from=gmail.com Received: by mail-wm1-x333.google.com with SMTP id 5b1f17b1804b1-4314c4cb752so38772305e9.2; Sun, 20 Oct 2024 10:44:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1729446266; x=1730051066; 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=F1ukhBLG1+9qsrdemqrCDngJ600JGLobEzlOJmwdjzA=; b=m0Sl0c6xcdDhSt1BIMeZQOIigmm+LKemBjAa+YlbET2tzxOMdByacXuD4DfJAnpZWc VlhK/rTEleJ0luIbxm7FO3/h3+bprYe4JnK/78wf8TgLKvka3siAen8AcX806wxh1UnZ brqf8/KJeoBz8oDcN9nTF1N9e60HGyBnoqcLi0OYSYgywBtXuLD+8ENNkyfu9mRC3+SL cdXL95W1C/eugT+Mjm7hsTvnh8WbqtR1gKxHiodjOlAJaJL+dzPPzlJ0+UqIy33ri/Nv PjK/aaCg0fKk6NHTpA0BON55XndPBuczIx4R14uEdikuqfFlcAwgqAtmC3EustRVuYAM Rvtg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729446266; x=1730051066; 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=F1ukhBLG1+9qsrdemqrCDngJ600JGLobEzlOJmwdjzA=; b=M8Lc8llOpsWaU92sSt4TuL4jlnj0eR7FwklVMpZrsU23HUABld8dG/YV7zwnF1yg3T iZurfm2usbjjfDnx9VHtiq1pxNDWcF64VP9qvEtXrCvK885FQudPsWgXA/pPVVDiJE49 vFAofxtppJXEgGXukMaro2/wgZgDXqtXW9/4lcRhWo/zSh6j4rqt39pM1llVz+wbxaeK /wXHhnK0XeoHtCVwhl8iQhQjeVDkQwa2c4Y5/8lgMeUKAiLW5mD4g00LAqeBiC/3X6NW LSFRUhDsVSeLFu9ZtLbfueV+V6dJTW4Q/KVrMOXGSJ0Cz5AEVRaiCftVYIcEpIvAVOgy ZH3w== X-Gm-Message-State: AOJu0Yx465hxvWEYP70jVgr5L1exzEzkv3txWuCIXmxpOW0LkctneysN UYkQBfr+vO6mVL5bdeeLIAI69NOw1WrrmiGhwX7Nxc1cQggCOkme2KE96fwoBWoRW5vlpABoRlL cV15elbPM0r87eDpSy0QzSMBYJObUxfaH X-Google-Smtp-Source: AGHT+IGgLUcGslfUcYeIxHUhguVJ6iACbsZA1ioibBdA6F9/89ovna9sSgrypGPqibXXBksXmsOsrUAUvNDRBrT1doU= X-Received: by 2002:adf:fc8c:0:b0:37d:4e5:bac7 with SMTP id ffacd0b85a97d-37eab4ee720mr5611553f8f.11.1729446265322; Sun, 20 Oct 2024 10:44:25 -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: In-Reply-To: From: Artem Hevorhian Date: Sun, 20 Oct 2024 20:43:59 +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="0000000000004d837b0624ec16c2" 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.994]; 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::333:from]; DKIM_TRACE(0.00)[gmail.com:+] X-Rspamd-Queue-Id: 4XWm633BR7z4LQS X-Spamd-Bar: --- --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 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 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
The "library" 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 "library" uses= =20 libmnl, but I can use raw netlink sockets, it'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.

On Sun, Oct 20, 2024 at 8:37=E2=80=AFPM A= rtem Hevorhian <artemhevorhi= an@gmail.com> wrote:
Great question! I am trying to implement somet= hing that I could present as a Master's thesis in the university.

On= Sun, Oct 20, 2024 at 8:36=E2=80=AFPM Bjoern A. Zeeb <bz@freebsd.org> wrote:
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. Cou= ld 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=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
--0000000000004d837b0624ec16c2--