From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6D946C2D0E4 for ; Mon, 23 Nov 2020 08:38:38 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id F055320729 for ; Mon, 23 Nov 2020 08:38:37 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=mg.codeaurora.org header.i=@mg.codeaurora.org header.b="C20MA26E" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726869AbgKWIih (ORCPT ); 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) 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; > } > ....