Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp636983ybg; Mon, 1 Jun 2020 10:21:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzKGR3+uoecBLZGeJmjom+IEns+m6osNkwzaf0AyJnk5VnKv/tgefHhdMLpJy2PjYwV+N1h X-Received: by 2002:aa7:d042:: with SMTP id n2mr23128265edo.226.1591032078091; Mon, 01 Jun 2020 10:21:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591032078; cv=none; d=google.com; s=arc-20160816; b=jK9SUHq5XBkB5irwYbQ9Yg1aart1qbnaJdflBbMLBcCG/xmC/Y3fvttg01IOmFbbai SfiaxT6votcrmoKc5h2PYc94oUiFl5uLRPG4QMD+oUvIYvffEBOBN4se6OYnhNE5lZny A/dkBlp0lS+JuKdnAMUnNyvSnrLP5HR43TZF7eojSFrMbqASTgUmHXkS0DN/ADs5xCbz x2yNepwX7F3tTobHWY9BJfVJyzyR8COQMP2/0NsTW0AoheSvQ/vP7hCMCPdALSumFw4V 8asHoClsAf1NO7rEfV97Irls9kritvq8eKuQeR18wKjq3yjcOImuAuzhhFM58acQHK40 vEsA== 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=l+ncP3ZiXgIifgNum0iTNPmdxHCpGq1717xbD7wPExs=; b=tdSI572VLV6RsKO8Al3/IEujxqzsg5dpepux1wK3HxxpXvhtA0+n9Dyt39/I0sLyUb Q2JBVVqAknwceCuwvBhGnV+v3+TdHTOWhcItKsfJHktneh95UNW3x8bh1RjpwSFkLsow 1bT55fLC6s/KCvuzevxpI04l48tKaxgcERtuNeohBv13sSyrkPnpSvpXxpZ+aicppqv3 Fe5uAHvztAAbx5BkyMtHyOozUkOGRMSsNvItVQdweIGBoyDXQF9oVnuBUJMN9hAf5WYH VPrt5GrxQ7Vp5auCOhFlszaUzAr/xCZH/5pmsSxD5gnxDgan8CRFr8W+OmmCSBurgfHI BiEg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k18si44030ejs.502.2020.06.01.10.20.40; Mon, 01 Jun 2020 10:21:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728080AbgFARQG (ORCPT + 99 others); Mon, 1 Jun 2020 13:16:06 -0400 Received: from mail.adapt-ip.com ([173.164.178.19]:36440 "EHLO web.adapt-ip.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726125AbgFARQF (ORCPT ); Mon, 1 Jun 2020 13:16:05 -0400 Received: from localhost (localhost [127.0.0.1]) by web.adapt-ip.com (Postfix) with ESMTP id 5F50A4F8A9C; Mon, 1 Jun 2020 17:16:05 +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 ahDYlkLV6PAY; Mon, 1 Jun 2020 17:16:03 +0000 (UTC) Received: from [10.1.15.7] (gateway.adapt-ip.com [173.164.178.20]) (Authenticated sender: thomas@adapt-ip.com) by web.adapt-ip.com (Postfix) with ESMTPSA id E87744F8A8D; Mon, 1 Jun 2020 17:16:02 +0000 (UTC) Subject: Re: [PATCH v4 5/5] nl80211: S1G band and channel definitions To: Johannes Berg Cc: linux-wireless References: <20200430172554.18383-1-thomas@adapt-ip.com> <20200430172554.18383-6-thomas@adapt-ip.com> <256d488507006cff8b0a9bc80ab51ef0cee9ff7e.camel@sipsolutions.net> From: Thomas Pedersen Message-ID: <3ef2eb73-22e3-3324-74be-514d2d9032e9@adapt-ip.com> Date: Mon, 1 Jun 2020 10:16:04 -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: <256d488507006cff8b0a9bc80ab51ef0cee9ff7e.camel@sipsolutions.net> 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 5/26/20 6:01 AM, Johannes Berg wrote: > Hi Thomas, > > This looks mostly good (and I've applied the other 4 patches with some > fixups), but ... > >> @@ -911,6 +931,15 @@ bool cfg80211_chandef_usable(struct wiphy *wiphy, >> control_freq = chandef->chan->center_freq; >> >> switch (chandef->width) { >> + case NL80211_CHAN_WIDTH_1: >> + width = 1; >> + break; >> + case NL80211_CHAN_WIDTH_2: >> + width = 2; >> + break; >> + case NL80211_CHAN_WIDTH_4: >> + width = 4; >> + break; >> case NL80211_CHAN_WIDTH_5: > > aren't you missing some bandwidths here? You'd fall through to a > WARN_ON(), which doesn't seem good? Yep. Looks like hwsim tests needs a test for larger bandwidths. -- thomas