Received: by 2002:a25:2c96:0:0:0:0:0 with SMTP id s144csp162334ybs; Tue, 26 May 2020 06:17:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzJ8NT/chw+f3OhnX2TmP25tv6uAQgzP17v/hE9r4TEItakM9tgOv4g7PCjrNWGqk9vtHEn X-Received: by 2002:a50:9317:: with SMTP id m23mr20568871eda.65.1590499031357; Tue, 26 May 2020 06:17:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590499031; cv=none; d=google.com; s=arc-20160816; b=XoBaolm3b0oBGqiscvE6QElF0iaGX8WsL8+fky8jDL4/wAnI/lFZss3hzh8NcSWIiP 1NWm+cn3E9pBiVw3OBoprqZ7f0zAKjepN1UxH9aKpb1OyDaPgSTh+nzksBqwEUzLgNfk TDSwY5wxfQUTbbpnq0EyrTYBGUddp/1N/ECQFCoEMgF812tMeHLi+8TzpJgAS86Ks0IH 2LFiHCCtcKK9NJeg06wttsAQMDAHJf9OaaEelYLBjk3SRk3fD56wBmUFeAYA28ADdnH+ IZo9rZ+rPrynoZpNS3ugoR7srwX5Z6r+H3fAC2+SToMLu3k52oycFgA2WCJqOWuycrvx Ak0Q== 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:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=T3Pdblj/LLZbiCaM2HySo1ceTQKEZse6XMJyjrj2T/g=; b=kthdcjcq6Qb+o1ZR+Ip8+61Iz5YJx0dGr1i4ds8715fKrjrKYewM72d3HpBe8qYQY5 mBNgh72BmF8qa26COUFstjuWTW32dBM0jHBlfbQAp3OVvWLEEf83NV+bH4qEoUGB6jtN tFgW7P6OQCQKfsTSGuxYTv6LDTp9xBli6+lNApw6igUaC/0P5O18XbdMb2HuIqeAClIy P+kM5U6ih/QWc6qE27B6ym7pkrIioJOdN/wub7I3J3IwLBwMTBgbLK3c0HwjjqhajFa8 UdUUa3VSOFG8Myga11pFcZHkY5ds82qVujooQFlf39bpxLApi0fKs7FmImLGNEVC6JPM i0FQ== 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 g11si10879184ejf.82.2020.05.26.06.16.41; Tue, 26 May 2020 06:17:11 -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 S1729119AbgEZNB1 (ORCPT + 99 others); Tue, 26 May 2020 09:01:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32922 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726325AbgEZNB1 (ORCPT ); Tue, 26 May 2020 09:01:27 -0400 Received: from sipsolutions.net (s3.sipsolutions.net [IPv6:2a01:4f8:191:4433::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 99B99C03E96D for ; Tue, 26 May 2020 06:01:26 -0700 (PDT) Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.93) (envelope-from ) id 1jdZCu-003Qw9-Vf; Tue, 26 May 2020 15:01:25 +0200 Message-ID: <256d488507006cff8b0a9bc80ab51ef0cee9ff7e.camel@sipsolutions.net> Subject: Re: [PATCH v4 5/5] nl80211: S1G band and channel definitions From: Johannes Berg To: Thomas Pedersen Cc: linux-wireless Date: Tue, 26 May 2020 15:01:23 +0200 In-Reply-To: <20200430172554.18383-6-thomas@adapt-ip.com> (sfid-20200430_192613_998673_DBD2473D) References: <20200430172554.18383-1-thomas@adapt-ip.com> <20200430172554.18383-6-thomas@adapt-ip.com> (sfid-20200430_192613_998673_DBD2473D) Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.36.2 (3.36.2-1.fc32) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org 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? johannes