From nobody Wed Oct 23 05:28:35 2024 X-Original-To: freebsd-hackers@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 4XYHdx5G6Rz5Zr1m for ; Wed, 23 Oct 2024 05:28:53 +0000 (UTC) (envelope-from artemhevorhian@gmail.com) Received: from mail-wr1-x429.google.com (mail-wr1-x429.google.com [IPv6:2a00:1450:4864:20::429]) (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 4XYHdw5jXLz4sQD for ; Wed, 23 Oct 2024 05:28:52 +0000 (UTC) (envelope-from artemhevorhian@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20230601 header.b=TlKGFVwP; spf=pass (mx1.freebsd.org: domain of artemhevorhian@gmail.com designates 2a00:1450:4864:20::429 as permitted sender) smtp.mailfrom=artemhevorhian@gmail.com; dmarc=pass (policy=none) header.from=gmail.com Received: by mail-wr1-x429.google.com with SMTP id ffacd0b85a97d-37d8901cb98so316987f8f.0 for ; Tue, 22 Oct 2024 22:28:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1729661331; x=1730266131; 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=6Fu73jhroPdbvkMAh/8Ky/4AR8g/gs5AY2raYvYOsTk=; b=TlKGFVwPqQ02ulU6bD0hYNPE2oA7d4VB2/Ffv6/2ukx+Kvj6eiV540+1MjUQn5+yOp mNqiSDKLhG5C8SDG7UyED0vx7ByBvuT24uw3hX0ZJoCF5+yLvmtbBja9CIRsoGp0kmvA Hu7ZTXBw14pooyf1qYr1hjOq+ewVYWoiiEbvoa6sRApVTmQP5RAtfIa7V3xrRCN6SCv4 o6xuhWves7urSRiFyz7m9kK7zkSdqd5RMEg0KNqMYztUg+8lgCkaNhZiuf+/iIBEnYqw B9wUdNimZeeaq4/CGJSRYN1FB0ncDnO6yiqQ49gBJsKoP9Yz3wwFtDXrV0ChRKO2IDDT ihxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729661331; x=1730266131; 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=6Fu73jhroPdbvkMAh/8Ky/4AR8g/gs5AY2raYvYOsTk=; b=vAHGKyGyI7YPbB9onK3SgknRCe2Zs1BspEElmsqH/AtNtXNiquYP1HJk5jyv9SQqqg w3EgddJMndNtwyf+aru9LZlL7LLz9kUAa/GcgexuPD9/qhIFImITBc5JJkzNT5rZS6YI /smriuc9Q3j93zKX2MitnDXeQahcrp5Y8PVU4uMgdhazTNBf/BxUPHGPB7u02gwQV0+N GfZQuuJUxe+ENbjG8HKl7Al+rweaZUVIWFKeUuGYfu1h1r+7BaSJ6pf64fv5MagXgWkN b4r1Bd9MYnav2tERk2aeavlfZ4kMz0giDqvKlMjSMm2e3La335S/+GJFepJVJH8KalYk gA9A== X-Forwarded-Encrypted: i=1; AJvYcCX1zwHTn/tdk6V5Q/HQKO3prWhxPU1dgpqJg2vqf5Fc5i1mBoui8dmf6ZbmZByD4vEAsmTsG2iL7GNbDVPIfnM=@freebsd.org X-Gm-Message-State: AOJu0YzPt06ERwvpSZ9FMcN9u4FFpmks9q/hlRSC2TuWVpEulP1Gf1Bx L+NmM1MYI/0KvVwypiZ/0fA835QCEfnlVwMa1NpEsB6ln8fKdeYS7Z6w3gXII/OmQuUhN5hFRQV pk3E0vMKLvfSosruekmflMMEBzRGtYlCJ X-Google-Smtp-Source: AGHT+IF3sZSLIfc4h5lMYKVsRcPXmaxPyDFyEiwsgM+cdAfRvEA67vrUkNHh5pHPv8i/OUZSHGYjLtxW5M/HbvrRcss= X-Received: by 2002:a05:6000:e50:b0:37d:4330:c87a with SMTP id ffacd0b85a97d-37efc5d546dmr677057f8f.4.1729661330284; Tue, 22 Oct 2024 22:28:50 -0700 (PDT) List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@FreeBSD.org MIME-Version: 1.0 References: <20241020194105.87D67216@slippy.cwsent.com> <20241021072213.d372a39793a9564030a31085@dec.sakura.ne.jp> <20241021001725.132A1393@slippy.cwsent.com> <20241021202904.91d6af0106facdf70f8f8f36@dec.sakura.ne.jp> In-Reply-To: <20241021202904.91d6af0106facdf70f8f8f36@dec.sakura.ne.jp> From: Artem Hevorhian Date: Wed, 23 Oct 2024 08:28:35 +0300 Message-ID: Subject: Re: Help wanted on porting a wifi library from Linux to FreeBSD To: Tomoaki AOKI Cc: Cy Schubert , freebsd-hackers@freebsd.org Content-Type: multipart/alternative; boundary="0000000000002c66db06251e297e" X-Spamd-Result: default: False [-4.00 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.997]; 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]; RCVD_TLS_LAST(0.00)[]; FROM_HAS_DN(0.00)[]; ARC_NA(0.00)[]; TO_DN_SOME(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; FREEMAIL_FROM(0.00)[gmail.com]; DKIM_TRACE(0.00)[gmail.com:+]; RCVD_COUNT_ONE(0.00)[1]; MISSING_XM_UA(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; MID_RHS_MATCH_FROMTLD(0.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; MLMMJ_DEST(0.00)[freebsd-hackers@freebsd.org]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::429:from]; FREEMAIL_ENVFROM(0.00)[gmail.com] X-Rspamd-Queue-Id: 4XYHdw5jXLz4sQD X-Spamd-Bar: --- --0000000000002c66db06251e297e Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Let me rephrase. I would like to modernize the wifi stack so that ioctls are not used anymore in ifconfig scan operation, for example. I would like to use netlink instead. =D0=BF=D0=BD, 21 =D0=B6=D0=BE=D0=B2=D1=82. 2024, 14:29 =D0=BA=D0=BE=D1=80= =D0=B8=D1=81=D1=82=D1=83=D0=B2=D0=B0=D1=87 Tomoaki AOKI =D0=BF=D0=B8=D1=88=D0=B5: > On Sun, 20 Oct 2024 17:17:25 -0700 > Cy Schubert wrote: > > > In message <20241021072213.d372a39793a9564030a31085@dec.sakura.ne.jp>, > > Tomoaki > > AOKI writes: > > > On Sun, 20 Oct 2024 12:41:05 -0700 > > > Cy Schubert wrote: > > > > > > > In message > > > c > > > > om> > > > > , Artem Hevorhian writes: > > > > > > > > > > https://github.com/bmegli/wifi-scan > > > > > > > > > > Here it is. It uses nl80211.h header. I think we should do the > same on > > > > > FreeBSD. Mentorship is required for me to work on it. Please help > me with > > > > > this. > > > > > > > > Porting GPL code to FreeBSD is not a good idea. A rewrite under a > BSD > > > > license would work though. > > > > > > Or requesting and acquiring for ALL authors of ALL needed files to be > > > BSD-compatiblly licensed (including dual or more licenced in > conjunction > > > with GPL)? > > > > Dual licensing is ok. but one of the licenses must be BSD as opposed to > > BSD-compatibility. > > BSD is compatible with GPL but many users of FreeBSD are afraid that GP= L > in > > FreeBSD will make it GPL and therefore useless for their purposes. > > > > BSD-compatibility is not enough. It should also be BSD licensed. > > It depends on from which side of view. > Let's limit "can we borrow any code without violating its license?" > here. > > From the point of view from GPL'ed software, BSD license is > 100% compatible. > > OTOH, from the point of view from BSD licensed software, GPL is > incompatible (because BSD license does not force licensees to make > their modified/added codes to be GPL'ed). > > And FreeBSD has, for example, CDDL'ed codes like OpenZFS in tree, > without any action to delete them, unlile GPL'ed ones. > > This is, (my understanding is) because CDDL is considered as > BSD-compatible license. There are more, for example, MIT license and so > on. > > So any of BSD-compatible license is/are included in multiple licenses > of the codes, FreeBSD can introduce it in tree. > > This is my guess. > > > -- > > Cheers, > > Cy Schubert > > FreeBSD UNIX: Web: https://FreeBSD.org > > NTP: Web: https://nwtime.org > > > > e^(i*pi)+1=3D0 > > > -- > Tomoaki AOKI > --0000000000002c66db06251e297e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Let me rephrase.=C2=A0

I would like to modernize the wifi stack so that ioctls are not = used anymore in ifconfig scan operation, for example. I would like to use n= etlink instead.

=D0=BF=D0=BD, 21 =D0=B6=D0=BE=D0=B2=D1=82. 2024, 14:29= =D0=BA=D0=BE=D1=80=D0=B8=D1=81=D1=82=D1=83=D0=B2=D0=B0=D1=87 Tomoaki AOKI = <junchoon@dec.sakura.ne.jp<= /a>> =D0=BF=D0=B8=D1=88=D0=B5:
O= n Sun, 20 Oct 2024 17:17:25 -0700
Cy Schubert <
Cy.Schubert@cschubert.com> wrote:

> In message <20241021072213.d3= 72a39793a9564030a31085@dec.sakura.ne.jp>,
> Tomoaki
> AOKI writes:
> > On Sun, 20 Oct 2024 12:41:05 -0700
> > Cy Schubert <Cy.Schubert@cschubert.com> wrote: > >
> > > In message <CA+AExUT4fM+p85Shzp1xFFOrabS_FDwWYSbUJjmka6+R= OOJnLw@mail.gmail.
> > c
> > > om>
> > > , Artem Hevorhian writes:
> > > >
> > > > https://github.com/bmegli/wifi-sca= n
> > > >
> > > > Here it is. It uses nl80211.h header. I think we should= do the same on
> > > > FreeBSD. Mentorship is required for me to work on it. P= lease help me with
> > > > this.
> > >
> > > Porting GPL code to FreeBSD is not a good idea. A rewrite un= der a BSD
> > > license would work though.
> >
> > Or requesting and acquiring for ALL authors of ALL needed files t= o be
> > BSD-compatiblly licensed (including dual or more licenced in conj= unction
> > with GPL)?
>
> Dual licensing is ok. but one of the licenses must be BSD as opposed t= o
> BSD-compatibility.
> BSD is compatible with GPL but many users of FreeBSD are afraid that G= PL in
> FreeBSD will make it GPL and therefore useless for their purposes.
>
> BSD-compatibility is not enough. It should also be BSD licensed.

It depends on from which side of view.
Let's limit "can we borrow any code without violating its license?= "
here.

>From the point of view from GPL'ed software, BSD license is
100% compatible.

OTOH, from the point of view from BSD licensed software, GPL is
incompatible (because BSD license does not force licensees to make
their modified/added codes to be GPL'ed).

And FreeBSD has, for example, CDDL'ed codes like OpenZFS in tree,
without any action to delete them, unlile GPL'ed ones.

This is, (my understanding is) because CDDL is considered as
BSD-compatible license. There are more, for example, MIT license and so
on.

So any of BSD-compatible license is/are included in multiple licenses
of the codes, FreeBSD can introduce it in tree.

This is my guess.

> --
> Cheers,
> Cy Schubert <Cy.Schubert@cschubert.com>
> FreeBSD UNIX:=C2=A0 <cy@FreeBSD.org>=C2=A0 =C2=A0Web:=C2=A0 https://FreeBSD.org
> NTP:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0<cy@nwtime.org>=C2= =A0 =C2=A0 Web:=C2=A0 https://nwtime.org
>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0e^(i*pi)+1=3D0


--
Tomoaki AOKI=C2=A0 =C2=A0 <junchoon@dec.sakura.ne.jp>
--0000000000002c66db06251e297e--