From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0795B4884C for ; Wed, 27 Sep 2023 15:43:50 +0000 (UTC) Received: from relay5-d.mail.gandi.net (relay5-d.mail.gandi.net [217.70.183.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DE8A183F8; Wed, 27 Sep 2023 08:41:05 -0700 (PDT) Received: by mail.gandi.net (Postfix) with ESMTPSA id 72A161C0004; Wed, 27 Sep 2023 15:40:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1695829242; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=NdBAHYlEMRazScx1K7OUaAItlYn6RWWuijpEXQAx/ZQ=; b=IHiLAVR63G54JpOVVygaSY0HTXhwFj3Yv81Hl+5as40iNALhOH7JNSDM/z8GzX9yq5i84L B7vgd2A/LzYHrUEFnJqkZowD0LUhbvVh4EgcVo+hapjE2Qb+KL52knth2ozuBmxZgJAjxm s0YXGKr84Vy+kZh02xwn/lk+6zIOKPRZCjIPEIMjnyobGYXnTQUdTNkVtJKy0fCWBft/1U HXB/MhJERavdXR8dXlJB2cybdw8UndxFCMgytoItWeBysfpjnaSGc7Xx+HcWr6s4rjtqin eXDGKCOkIB38bj17e2+kEOo3BRuBPMhd5i1/x8O7cLP6K20KH4PaVbu5MEZRog== Date: Wed, 27 Sep 2023 17:40:37 +0200 From: Miquel Raynal To: Alexander Aring Cc: Alexander Aring , Stefan Schmidt , linux-wpan@vger.kernel.org, "David S. Miller" , Jakub Kicinski , Paolo Abeni , Eric Dumazet , netdev@vger.kernel.org, David Girault , Romuald Despres , Frederic Blain , Nicolas Schodet , Guilhem Imberton , Thomas Petazzoni Subject: Re: [PATCH wpan-next v4 07/11] mac802154: Handle association requests from peers Message-ID: <20230927174037.25708dec@xps-13> In-Reply-To: References: <20230922155029.592018-1-miquel.raynal@bootlin.com> <20230922155029.592018-8-miquel.raynal@bootlin.com> Organization: Bootlin X-Mailer: Claws Mail 4.0.0 (GTK+ 3.24.33; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-GND-Sasl: miquel.raynal@bootlin.com X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Hi Alexander, aahringo@redhat.com wrote on Tue, 26 Sep 2023 21:37:23 -0400: > Hi, >=20 > On Fri, Sep 22, 2023 at 11:51=E2=80=AFAM Miquel Raynal > wrote: > > > > Coordinators may have to handle association requests from peers which > > want to join the PAN. The logic involves: > > - Acknowledging the request (done by hardware) > > - If requested, a random short address that is free on this PAN should > > be chosen for the device. > > - Sending an association response with the short address allocated for > > the peer and expecting it to be ack'ed. > > > > If anything fails during this procedure, the peer is considered not > > associated. =20 >=20 > I thought a coordinator can also reject requests for _any_ reason and > it's very user specific whatever that reason is. Absolutely. > If we have such a case (that it is very user specific what to do > exactly) this should be able to be controlled by the user space to > have there a logic to tell the kernel to accept or reject the > association. Agreed (not implemented yet, though). > However, I am fine with this solution, but I think we might want to > change this behaviour in the future so that an application in the user > space has the logic to tell the kernel to accept or reject an > association. That would make sense? Definitely, yes. Thanks, Miqu=C3=A8l