Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp681053pxu; Mon, 23 Nov 2020 00:56:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJwlxVxnn6vIaA/b7Gl+Yeye2AVz/zJ7+guE+GfDNc9xQmrnxc65gOGtirr0C/AdDsaYGGqZ X-Received: by 2002:a17:906:168e:: with SMTP id s14mr11578999ejd.464.1606121795417; Mon, 23 Nov 2020 00:56:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606121795; cv=none; d=google.com; s=arc-20160816; b=qQyjNgr0C6stMTLQkAUHcmt0WTM7KBrGHzGl5fllHoPTr3O7HHE5qGwSD3cSEoiQbd qldDqYhtlO2/KUSP7rTdha/XiWzridQQO4j/4RTq5NbeXngScj4pENSTMrWLI6ZIIlt/ 7UZxwb0uIdAt6P+5PbTJ2ZM4JWceoFdhyX6766lJ1arBfIsHDvlsn3QV4H/ok1u9/9Q7 0oTM5RBfhf/HzrNIISKEd0q51C8Z5VHDfglf/2BPYfEbZADdzVyRx+UyAnVbxvSynw/W bB6g7swXqEZMMlN4LU7kAXft2omnk5gi4gFeKFsWUCVmM+um8cVa86DW/SA4tnZyjsew rX5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:message-id:references:in-reply-to :subject:cc:to:from:date:content-transfer-encoding:mime-version :sender:dkim-signature; bh=Xu14ZzFddoY2fMGu/aF1/rY5Isvk6Ctxf9IWjuIwDBc=; b=00Ao29GRa5VWmQs4E/yyqNeRD1XMyOCyHg/ggMlwbWqy5/buHykQgvNzoocZLhbob5 r34DwvNPU+2RTtal5Hr8QAoighbbg2sj1hukFYnpOetcwrJMtLC2hrbEDl9pH7hjzbev IAepovwq2YwA7vu0Eg2iv1lyp9riUtMY6TuH+bjp4+lEe1XEZGORXv/6NLgAfbWjchRY u9pI+Xs2LcFCvfntElxABdrkt6Q+Ad1gtluTA3XrWf6hoCKJEEAsplzraYiLBjLC3v2I jrJj4maki7/f/a1/DtiKv6MW8o1LpbL5ggmYjSpDwEXLtUVx7qkpamnBv1LCfbCC582e F3cg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=C20MA26E; 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 rk9si2385197ejb.444.2020.11.23.00.56.11; Mon, 23 Nov 2020 00:56:35 -0800 (PST) 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; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=C20MA26E; 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 S1726869AbgKWIih (ORCPT + 99 others); Mon, 23 Nov 2020 03:38:37 -0500 Received: from z5.mailgun.us ([104.130.96.5]:34383 "EHLO z5.mailgun.us" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725287AbgKWIih (ORCPT ); Mon, 23 Nov 2020 03:38:37 -0500 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1606120716; h=Message-ID: References: In-Reply-To: Subject: Cc: To: From: Date: Content-Transfer-Encoding: Content-Type: MIME-Version: Sender; bh=Xu14ZzFddoY2fMGu/aF1/rY5Isvk6Ctxf9IWjuIwDBc=; b=C20MA26EMQV9xgwjSrgneKACIm1Wij7mmBkipRw7feekS4KwzxhuD1ss4CS1Hlstn4Sqp0+Q 8EgY+I20OmsAGjhCFPa3SsbXo1HqJU5cRuSaLTPyhdYyEwbYAME2yzPTfoagEy9vg2o8wUHL 5hb8iuQxhwoymT6VEIAzwgJ7aoo= X-Mailgun-Sending-Ip: 104.130.96.5 X-Mailgun-Sid: WyI3YTAwOSIsICJsaW51eC13aXJlbGVzc0B2Z2VyLmtlcm5lbC5vcmciLCAiYmU5ZTRhIl0= Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n04.prod.us-west-2.postgun.com with SMTP id 5fbb750022377520ee7d8f21 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Mon, 23 Nov 2020 08:38:24 GMT Sender: wgong=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 7B19BC43462; Mon, 23 Nov 2020 08:38:24 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=ALL_TRUSTED,BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.codeaurora.org (localhost.localdomain [127.0.0.1]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: wgong) by smtp.codeaurora.org (Postfix) with ESMTPSA id 13907C433C6; Mon, 23 Nov 2020 08:38:24 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Mon, 23 Nov 2020 16:38:23 +0800 From: Wen Gong To: Thomas Pedersen Cc: Johannes Berg , linux-wireless Subject: Re: [PATCH v4 14/17] mac80211: support S1G association In-Reply-To: <20200922022818.15855-15-thomas@adapt-ip.com> References: <20200922022818.15855-1-thomas@adapt-ip.com> <20200922022818.15855-15-thomas@adapt-ip.com> Message-ID: X-Sender: wgong@codeaurora.org User-Agent: Roundcube Webmail/1.3.9 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On 2020-09-22 10:28, Thomas Pedersen wrote: ... > @@ -3446,6 +3453,42 @@ bool ieee80211_chandef_he_6ghz_oper(struct > ieee80211_sub_if_data *sdata, > > *chandef = he_chandef; > > + return false; > +} This change the "return true" to "return false" by default of ieee80211_chandef_he_6ghz_oper. It should be typo mistake. > + > +bool ieee80211_chandef_s1g_oper(const struct ieee80211_s1g_oper_ie > *oper, > + struct cfg80211_chan_def *chandef) > +{ > + u32 oper_freq; > + > + if (!oper) > + return false; > + > + switch (FIELD_GET(S1G_OPER_CH_WIDTH_OPER, oper->ch_width)) { > + case IEEE80211_S1G_CHANWIDTH_1MHZ: > + chandef->width = NL80211_CHAN_WIDTH_1; > + break; > + case IEEE80211_S1G_CHANWIDTH_2MHZ: > + chandef->width = NL80211_CHAN_WIDTH_2; > + break; > + case IEEE80211_S1G_CHANWIDTH_4MHZ: > + chandef->width = NL80211_CHAN_WIDTH_4; > + break; > + case IEEE80211_S1G_CHANWIDTH_8MHZ: > + chandef->width = NL80211_CHAN_WIDTH_8; > + break; > + case IEEE80211_S1G_CHANWIDTH_16MHZ: > + chandef->width = NL80211_CHAN_WIDTH_16; > + break; > + default: > + return false; > + } > + > + oper_freq = ieee80211_channel_to_freq_khz(oper->oper_ch, > + NL80211_BAND_S1GHZ); > + chandef->center_freq1 = KHZ_TO_MHZ(oper_freq); > + chandef->freq1_offset = oper_freq % 1000; > + > return true; > } > ....