From nobody Sun Oct 20 18:50:22 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 4XWnZf56l6z5ZfL9 for ; Sun, 20 Oct 2024 18:50:50 +0000 (UTC) (envelope-from artemhevorhian@gmail.com) Received: from mail-wr1-x433.google.com (mail-wr1-x433.google.com [IPv6:2a00:1450:4864:20::433]) (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 4XWnZf0Cc5z4X21; Sun, 20 Oct 2024 18:50:50 +0000 (UTC) (envelope-from artemhevorhian@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20230601 header.b=mq23R0zM; spf=pass (mx1.freebsd.org: domain of artemhevorhian@gmail.com designates 2a00:1450:4864:20::433 as permitted sender) smtp.mailfrom=artemhevorhian@gmail.com; dmarc=pass (policy=none) header.from=gmail.com Received: by mail-wr1-x433.google.com with SMTP id ffacd0b85a97d-37d58377339so4196459f8f.1; Sun, 20 Oct 2024 11:50:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1729450248; x=1730055048; 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=h5qHzqVwtOB8X5/uKMtQ/2xzyP0enXXerf2sJAFTCoQ=; b=mq23R0zMDmpxVytMrLfajw+bqK/qnkcwQyVFNN50Hs9zSXRTNGL3abhipdLXZxEBIz zo+FaUUFv9dMIwN9FBTDHkMl2jlFz8xw6NQF4DdHn4RPl792Vdq3D8np55QyOafRePfX wzWWWjMxtP13V+ruestA5i2NPCAk6hs4AcNeT44URyAKKVfwR1GTTONYsAAMHwWUocKs T7ENYkeUBzV2qBgcyrM2tz1xQdFwUFZ7XFMcmwDog3UBIpi2R2xQsBsfFNNEZn6SMCws zbS/lm5pXop1otTLXOFDaRUnIdVZYdKmjXE6g4nCT+ptL1TsvrB/9XZK+8eMuSOmTYXG 4mZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729450248; x=1730055048; 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=h5qHzqVwtOB8X5/uKMtQ/2xzyP0enXXerf2sJAFTCoQ=; b=CnB2+p7iQijO4VpyEJnACQrZjJ83AfWGIiv1n0Yio778G9//IJ9OFV5N/8WVl+avwP Ycy1O0hiyi83DFsJAGImtP3ab68JzZeeoiTAgpqNtYA6VpjE1enbRp+M14xBYqnEWmXh CHPXEMkoLQWhdHfPvSht8PhfaMCKF+zs53eg3sEA4QXFpnXouU6UCan9v/mOHIqD/KdE w1nxEOQf8/UCwFWhb+4VDJ8OWb9vNKAoW4hEeOPJLICEpkLffJXvIoffO+BK8oAKz0is riY2P2ZVXBlbhGLIbILhWka4WgqsGsKVOayQoyR8qqTyVZXeF+W9UC08vIcvqJCyVMGl 7vWQ== X-Gm-Message-State: AOJu0YxUzdArog86X6Px7D5zm89+vPvLyZjk8MznqP/8ECwS7pqG2PZ5 nHSryXU26adGzLaJo2wygtGWcSXOkfe3ppI7Xr09QcFg+ZPNwR2oiTL07HyfSeA6UJrFJdE802M ZD0ndGFKiwGu7Y03na7qjBqBQvTmPZQ== X-Google-Smtp-Source: AGHT+IEfaoM3D8xV5Wk7X+1WhzwCXLR4uDO94MZrjpru0rAiJcnhVsEeC5JkdHnNT00cEjcJopJXira37IdJmUFL1yk= X-Received: by 2002:a5d:4e0e:0:b0:37d:61aa:67de with SMTP id ffacd0b85a97d-37eab7555a4mr8043157f8f.42.1729450248235; Sun, 20 Oct 2024 11:50:48 -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: Sun, 20 Oct 2024 21:50:22 +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="000000000000b3f52f0624ed0385" X-Spamd-Result: default: False [-3.99 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-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]; 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::433:from]; DKIM_TRACE(0.00)[gmail.com:+] X-Rspamd-Queue-Id: 4XWnZf0Cc5z4X21 X-Spamd-Bar: --- --000000000000b3f52f0624ed0385 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 othe= r >> 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 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 >>> 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 >>> >> --000000000000b3f52f0624ed0385 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Also, may I ask you why there is software 'wpa' in= contrib packages that uses nl80211 if that's not currently supported?<= br>

On Sun, Oct 20, 2024 at 9:36=E2=80=AFPM Artem Hevorhian <artemhevorhian@gmail.com> wrote:
=
Al= so, can I ask, when you mention native code, you mean 'ioctl's, rig= ht?

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 re= quired. A year or even more. I guess the project can be delivered in certai= n 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.

--000000000000b3f52f0624ed0385--