From nobody Sun Oct 20 18:00:16 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 4XWmSN25jQz5ZbhG for ; Sun, 20 Oct 2024 18:00:20 +0000 (UTC) (envelope-from bz@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XWmSN1SLCz4Lnh; Sun, 20 Oct 2024 18:00:20 +0000 (UTC) (envelope-from bz@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1729447220; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=mjP/2R8rgx1BAiJPEifK4TZRNyfBU+vlynW3o5nDGkM=; b=Gdd0gsYhkSVVhtkUGl7zBHBy5xZAkdbS5ZXr8b51pbB1p7RamkcI1qo2jnM6i4renbotwI MFmC2g8yybNMHU+Swpn2crUErHCx67b63EG0+XQm0stzM1rJQK8id6gtAq72Q5BgW/+JeL T37tupoCgLJd374H20qV8LHP69mm3lYV8gbFxgyAGIhqGClzB+qXMN7s8vJdHeIk2sYXVh TbMeD6l8QWUcOWQKvnDSEQ/dpeCPPCbPfemR/ehmthbUzvxiUyf8AEuW/2+/Bm1qqE9xKJ akAR8qypeMKhZfbrSZqLF3gjhASLe6s2/rf6Z3clB3i/2L4ZSmdvINFpUplI2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1729447220; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=mjP/2R8rgx1BAiJPEifK4TZRNyfBU+vlynW3o5nDGkM=; b=QsmPQXpecjlu34qu1mwj6InOJp3u2Cbvzo7qhRijEXO9ai2PYVf5m2kTCr8zVwY+64VvUc I6dXMBp2zA2mA5OQ3Vre9labI8//onXRKtcjWErimhA1DLXWlCI5c8CbJ2kfhdSy49Xhip l+yChhPku+iTIzjG3RgC3mXY6uh5XovM/3bh1QzTVI/L6LKr2qe4dsa//oUsUsmqW4JbWn 1GeMyTYfXfLNNNVDlt6AYnABnNDY2UPdz2O79kg5Js3a7osOhNIhkwJrOY1aTA8M7EsE7O 1sL1fNY/AfSKoveIWt/c5m61pbU9x4pNkoD3NFbkhM/CDcfNedQpbWLXPYRQ9w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1729447220; a=rsa-sha256; cv=none; b=g31a3AsVW8egg/sQMGXiWXK+zd0p2vaK6can9xDaPboDmMfmax88Ems6dC4sDcAGF35CrW TLjC+XtMWPBJa0HbVo37v67e7UbZiZ3Hs3EdmO/gyBwRk0O1UjSFxxbv1/vqUQUCgn1Bai CWg7EDfHuRmUH0Qv0lh25egB+Z/1RBFL/tjg+RhGjKNRWFcsHuyam2JREqBnNimzMhGYoF HMih0UVPYyLX3uBw4kHlvol4PcEWncEpj6nW6ATFqIVRja2oa9K93fQauoChXSFUXY2EIG daBYXSaFM2pVQu28OLPbA7aPbm1wVvbPwz9xMrWqNmUxp3/B7MfI+1Ms0RtSwg== Received: from mx-01.divo.sbone.de (mx-01.divo.sbone.de [IPv6:2003:a:140a:2200:6:594:fffe:19]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature ECDSA (P-256) client-digest SHA256) (Client CN "mx-01.divo.sbone.de", Issuer "E5" (verified OK)) (Authenticated sender: bz/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4XWmSN06QBzK9q; Sun, 20 Oct 2024 18:00:19 +0000 (UTC) (envelope-from bz@freebsd.org) Received: from mail.sbone.de (mail.sbone.de [IPv6:fde9:577b:c1a9:4902:0:7404:2:1025]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by mx-01.divo.sbone.de (Postfix) with ESMTPS id A93E3A64806; Sun, 20 Oct 2024 18:00:13 +0000 (UTC) Received: from content-filter.t4-02.sbone.de (content-filter.t4-02.sbone.de [IPv6:fde9:577b:c1a9:4902:0:7404:2:2742]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPS id 21D372D029D9; Sun, 20 Oct 2024 18:00:18 +0000 (UTC) X-Virus-Scanned: amavisd-new at sbone.de Received: from mail.sbone.de ([IPv6:fde9:577b:c1a9:4902:0:7404:2:1025]) by content-filter.t4-02.sbone.de (content-filter.t4-02.sbone.de [IPv6:fde9:577b:c1a9:4902:0:7404:2:2742]) (amavisd-new, port 10024) with ESMTP id ZPtK7C5wqT-x; Sun, 20 Oct 2024 18:00:17 +0000 (UTC) Received: from strong-iwl0.sbone.de (strong-iwl0.sbone.de [IPv6:fde9:577b:c1a9:4902:b66b:fcff:fef3:e3d2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPSA id 183152D029D2; Sun, 20 Oct 2024 18:00:17 +0000 (UTC) Date: Sun, 20 Oct 2024 18:00:16 +0000 (UTC) From: "Bjoern A. Zeeb" To: Artem Hevorhian cc: freebsd-wireless@freebsd.org Subject: Re: Help wanted on porting a library from Linux to FreeBSD In-Reply-To: Message-ID: <5p07s859-nr38-p981-208o-279pq5509qs4@serrofq.bet> References: X-OpenPGP-Key-Id: 0x14003F198FEFA3E77207EE8D2B58B8F83CCF1842 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 Content-Type: text/plain; charset=US-ASCII; format=flowed 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