Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp876681ybb; Wed, 1 Apr 2020 11:16:12 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtTfeSALQdbtynus0SyPH0WusSNQrXy4NieX3l/QpMqV1xuQmaw10j+8g3K/CCzIcD3+Mb9 X-Received: by 2002:a9d:5789:: with SMTP id q9mr18226368oth.288.1585764971926; Wed, 01 Apr 2020 11:16:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585764971; cv=none; d=google.com; s=arc-20160816; b=W6sF7X7HFB1Lzi5hkdzCAu1/0yj2EBDJxoLY4vRarmT/GLUEcxKgSHAPnihpt6RcB1 H0pZm4n3N3rTwfBYqLMH6pKCsEy2/34Zep155tD9+JBru+uSMesceJM69kHo/+FluG0b K3qn60lm3TGhQmxfdhEgC/3dCR9c4S8f6J1iSq9redDxtJt5O1tfnKPyO/q3zQ1Dl8Ue Zjt8CGbKbQu+VuXn9H360cynejmYFUouTsEkJMRe4mA75NEXlVH8ooP6m/uCeIBZmsVf r0V8moN/JtY6piakvxZ+6jKrPzUQyaNjlVvEXnq2CY/NDF6eDAgsPWtIQ5JFM1DYuqfZ 5UtA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=lDI32Y386Ass3xnwZeXCMgqCiY/qnYbikv951NENvb4=; b=cTgUDa852Cy4IluIfWKcrhH2nS08JHNRikAN0vnrVIiVNyaonaTrSjS/mngbfprc5y KtiUJzeHsblhrvCqzkpopjkIPVJ/iW+yVGkA7+r5+rgzKWdZqTVuSNwdwu5iNvttpa3g gwCuWlniIeUG4daxdFhZ9lnvDzrk2+IqdL3G0NbYseOgkEvmt+KV+LiKyeAMFS1pu2UE HE56PW/AuYpAX+uvPVBHvd83rtwU8l1hdN0ISEe7Qlrn3FMcQrFkdKevEFbQ/91QNFWA M75lWvIepYFOfjDYg/p5qeXfCbu4Vt4588NJzrBlU6TtEH1dhllcsM92wSboulIxANLS G5bQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w29si1218158oth.24.2020.04.01.11.15.52; Wed, 01 Apr 2020 11:16:11 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732355AbgDASPZ (ORCPT + 99 others); Wed, 1 Apr 2020 14:15:25 -0400 Received: from mail.adapt-ip.com ([173.164.178.19]:42750 "EHLO web.adapt-ip.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727723AbgDASPZ (ORCPT ); Wed, 1 Apr 2020 14:15:25 -0400 Received: from localhost (localhost [127.0.0.1]) by web.adapt-ip.com (Postfix) with ESMTP id 74DC14F7A8F; Wed, 1 Apr 2020 18:15:24 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at web.adapt-ip.com Received: from web.adapt-ip.com ([127.0.0.1]) by localhost (web.adapt-ip.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id BDICZ3cAFD73; Wed, 1 Apr 2020 18:15:22 +0000 (UTC) Received: from [10.1.15.6] (gateway.adapt-ip.com [173.164.178.20]) (Authenticated sender: thomas@adapt-ip.com) by web.adapt-ip.com (Postfix) with ESMTPSA id CA4FA4F7A8B; Wed, 1 Apr 2020 18:15:21 +0000 (UTC) Subject: Re: [RFC 6/7] nl80211: add KHz frequency offset for most wifi commands To: Johannes Berg Cc: linux-wireless References: <20200401062150.3324-1-thomas@adapt-ip.com> <20200401062150.3324-7-thomas@adapt-ip.com> From: Thomas Pedersen Message-ID: Date: Wed, 1 Apr 2020 11:15:20 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On 4/1/20 12:10 AM, Johannes Berg wrote: > On Tue, 2020-03-31 at 23:21 -0700, Thomas Pedersen wrote: >> >> TODO: several of these commands will eventually just >> ignore the _OFFSET component, like _JOIN_MESH, >> _CMD_RADAR_DETECT, etc. Should return an error to give >> user a hint things won't work as expected? > > Wouldn't most of them already require that a channel with the given > frequency exists, and thus fail anyway? Well I was thinking of the case where you have: ch 2: 903MHz ch 3: 903.5Mhz userspace tries to eg. join a mesh on channel 3 by sending 903MHz + 500KHz, the (old) kernel interprets this as channel 2 and happily joins on the wrong channel. However this only applies on a new band which doesn't even exist yet, and if we return an error for commands which have not yet been tested with frequency offset nothing unexpected will happen. -- thomas