Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp3328613pxb; Fri, 4 Feb 2022 06:24:02 -0800 (PST) X-Google-Smtp-Source: ABdhPJwVEeboOSc42DgRXxNRNY53rI39SoVP/1TmbITGP8aqxT5dwP0Iog3B2Uu/vIVD0KP//SDh X-Received: by 2002:a62:52d4:: with SMTP id g203mr3368456pfb.19.1643984642629; Fri, 04 Feb 2022 06:24:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643984642; cv=none; d=google.com; s=arc-20160816; b=nHvCXW17LjQd0T+P4FODB/9JwKzXkeHc5hmeN/7UcSZkwl6osGHvQ5tBPMNWKG1DVJ E6qjxC/ih7Zu5d1ZyhqvX3Vq0NAKNYWE2MZALVhVX5502ytrZiiMYKjbtkflqBWoe9SH SAsarOu87SMffA/kPxnh1nnpyYA/Eev0ex6E0X00ekFehqNcgKujDAalTrgs8zIkj7CM Q+yHvthBm0RkLgGrUDFgX4dJoDCbHov5NDypZmILo3jSykrl16IDk0smS+fzH8z9FxNl 8wuPtF/z7KotwwOmCIhb3qcnk9Tr0JRw+Om2wvW6YuLkOrjDPf3zneORYAMy5LfDYGEi maYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:to:from:subject:message-id :dkim-signature; bh=MBkPpCMGtP5tKapRV2F3fF1Sm+CvzADC+b/7o62zs+o=; b=H6/HdMT/UeEkh/f7I6d0luGTdpwNCpUPCL+dZUQHfZ1XG0zoVEtctPR/JrGAVl4qAF j9u/vxzvxP7yuQBdfKz4UUK9fK2+R+piiF4qFKTYTzhoSGg/xJrThW7COVBNuvVOmF2u 8qq6VXrLah0F6DXDohvgPvp+Q2XadDTY8Q8rjpDPkwizKZOgRe8hAs46aBCQaY1HIGw9 HSugdVCb6VemGPlzc3FDbyV4x7mb/F+6cmO3Dw0Oml9pDo1oPyvS3mGIYKDj3awoXRV/ sVWucsmpuoFoAv7uhx1syiKy4AmOtR6qqKSR3eCIKO0Qb/q9r1hGw7Qh5d6e6/FXTdQc JOZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=uVOgZYkF; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s127si1907456pgs.683.2022.02.04.06.23.44; Fri, 04 Feb 2022 06:24:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=uVOgZYkF; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1355667AbiBCWGy (ORCPT + 72 others); Thu, 3 Feb 2022 17:06:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52440 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230230AbiBCWGy (ORCPT ); Thu, 3 Feb 2022 17:06:54 -0500 Received: from sipsolutions.net (s3.sipsolutions.net [IPv6:2a01:4f8:191:4433::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1619AC061714 for ; Thu, 3 Feb 2022 14:06:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sipsolutions.net; s=mail; h=Content-Transfer-Encoding:MIME-Version: Content-Type:References:In-Reply-To:Date:To:From:Subject:Message-ID:Sender: Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-To: Resent-Cc:Resent-Message-ID; bh=MBkPpCMGtP5tKapRV2F3fF1Sm+CvzADC+b/7o62zs+o=; t=1643926014; x=1645135614; b=uVOgZYkFyjuRPDzBpw0yLWLgUVSrjhb744wOGZ/MQQYiX0d pjrrtTYWFUiVfPpXtytL6We0MyYL65kyRff3zxNtBd2zHB/XC1/Ehh3+uZEA/dfdtjAyjvkXhtAnN 0XQbBFhqwLVD0bCD+eNYHyvP7km4yJxcBi8cJWAzXuJ+MJgMGuRqQHMjb7va5UvsYQ/zoUsnWkzaw rwWd/xeR5JENhd0Dcm4R3ijqViFy6S2GE6a1w6rolaeXdZ5A/uAAHACNU6rSB2uddMBQ8Fni2BwrL AaArbq2Nz6DTsEX7bXSpavjDxlq6MB0TenR2scI6eme5Na7P9PxpBltv/HHGAcBw==; Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.95) (envelope-from ) id 1nFkFf-00EFjG-JK; Thu, 03 Feb 2022 23:06:51 +0100 Message-ID: Subject: Re: Adding CMD_SET_CHANNEL for station iftypes From: Johannes Berg To: James Prestwood , Arend van Spriel , linux-wireless@vger.kernel.org Date: Thu, 03 Feb 2022 23:06:50 +0100 In-Reply-To: <8557b62e0f1c6a94f7ec9b27a596d7499fd072d7.camel@gmail.com> References: <2b18f86924c3d64437aa139f6401ee2e7705eeb0.camel@gmail.com> <47ba74aa23a5c4fb42660d5b40e974c24acf24bf.camel@sipsolutions.net> <91d38c40a62100dc6355c98e85b8b793ed8890df.camel@gmail.com> <58ebff51d64d1ae6b01d85cff7bb9e137e19848a.camel@gmail.com> <17e3eb62ed0.279b.9696ff82abe5fb6502268bdc3b0467d4@gmail.com> <8557b62e0f1c6a94f7ec9b27a596d7499fd072d7.camel@gmail.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.42.3 (3.42.3-1.fc35) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-malware-bazaar: not-scanned Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Mon, 2022-01-10 at 09:13 -0800, James Prestwood wrote: > > > > Even if it only supports STA mode it can. The constraint being that > > it is > > not associated (or busy trying to associate) to an AP. When it is > > associated it has to sit on the channel of the AP, as announced in > > it's > > beacon and/or probe response, at regular intervals. You referred to > > DPP to > > provision the STA so I assume it is not associated, right? Could you > > write > > out the whole scenario as you think it should/could be done? > > Correct, I'm only talking about doing this while not associated. > > As for my intentended scenario I simply want to call CMD_SET_CHANNEL > then run the entire DPP auth/config protocol while on this channel. > Then, once finished, call (a new API) CMD_SET_CHANNEL_CANCEL. > So I think Arend and I are approaching this from a different angle :-) I was mostly thinking about the iwlwifi firmware implementation, to be honest, which simply doesn't have such a thing today. The closest would probably be putting it into monitor mode, which of course means you don't get proper ACK behaviour etc. I think Arend was probably more thinking of semantics rather than implementation, surely it'd be _possible_ to do it, but it's not something that you can _practically_ do today on all hardware. So practically, if we add such API 1) it might fix the issue on some devices that can implement it 2) it would leave us having to emulate it using remain-on-channel or similar when the firmware doesn't support 3) you'd still have to implement it for older kernels (or we leave out 2, and you have to have the implementation for 3 for newer kernels too) I guess I wouldn't particularly mind adding APIs for it, but I'm not sure I'd want to have to implement and maintain (2). johannes