Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1766641pxb; Wed, 9 Feb 2022 04:09:17 -0800 (PST) X-Google-Smtp-Source: ABdhPJyGRFCyrqD5/F0FQE60VV5rAXuHZB2qX+sSFscIOcu3fByF/k75xr7cgA1xj6r39Sn1mNiq X-Received: by 2002:a17:902:d48e:: with SMTP id c14mr2062056plg.129.1644408557648; Wed, 09 Feb 2022 04:09:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644408557; cv=none; d=google.com; s=arc-20160816; b=il0pChcNdSyP6mlZBZqjAI19+kcpziMe4Osr/tRcbqcNkwd0FQ6hp9uGDv8/g+ZGQo 3NYJ5L/dc0RTQ1fdY3j+v35NFvSnW8i1HUq/5wFuidHTpLLpr7hzbtucTkCgP6GZkcBH oYVySZDUBq6eI8LL3QFkk1e+8SCkM/C4BfhbYAQAhttUZSP7RiUnO7N6xa6KSJrXQBFa js0reme22ZSUtM3Xttze74gnHQXIMLPgisFkjrdmhw1kSSYqvawbnaTQsofDF6SNNZby EnimADuaqUFTNCnFkwj5pwdE6gvuBVtPF8jydD1BbwUE/GyQtidDSPzIuabWicfNUO7Q 7qVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=qU1qz6roUZ7ozAy8ytwES+oh4BUikPDwHHJ8uQBq/sk=; b=MBwZzj5FTRPKEgIq97FKbDx/Sv3MqpWpFzlpsupeGBVOKsGTET3kNiAP7EvmDnl9+r 8q92HiEyjUGofaVbn7BqLosNPkf7fMvo90JXDbfxxuy6gx2vl6mpRDRkBxEz6jk+6ZD/ ogA4ZMSPO5DlqnncFMksSrfoQR2eG6jYWb7vMchaGw1oULv4AM3H+Ssmm97ZXvz5lYJ4 +Y++zheGOzRteC7Wy7S6Li/Ig7jLE2M0FJMK52mUDcDiucxuv3rn20a3XKFyS9+hGkMI 9Dwrng4yLyzOxhgDOU9HQU3hVbCiRkVGU/q1M4pSPs0/yu+AfWFUJubjGm7V4/l8kqut ltfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=cF1xq0No; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id e5si17951767plh.240.2022.02.09.04.09.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Feb 2022 04:09:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=cF1xq0No; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 90E30E0FF0ED; Wed, 9 Feb 2022 02:07:38 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230496AbiBHWxa (ORCPT + 73 others); Tue, 8 Feb 2022 17:53:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53866 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231924AbiBHWxJ (ORCPT ); Tue, 8 Feb 2022 17:53:09 -0500 Received: from alexa-out.qualcomm.com (alexa-out.qualcomm.com [129.46.98.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 86F48C03C197 for ; Tue, 8 Feb 2022 14:46:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1644360377; x=1675896377; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=qU1qz6roUZ7ozAy8ytwES+oh4BUikPDwHHJ8uQBq/sk=; b=cF1xq0NodXk4J7+jt0yNXMRzp1oCIAkNh8P072WPjp5VWiqJZkADzdCm 8jpr2YBXObqq5X9tSQAn0+5CIJJ9tNohT9bhKkGK5Smy/ZVdAmuFLm8Df 1yvJI6SV7yDfcjMPObnNK9yPG7017yvVfQ8eMmB3qWayz+K93nFBpmvEK 8=; Received: from ironmsg09-lv.qualcomm.com ([10.47.202.153]) by alexa-out.qualcomm.com with ESMTP; 08 Feb 2022 14:46:17 -0800 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg09-lv.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Feb 2022 14:46:17 -0800 Received: from nalasex01a.na.qualcomm.com (10.47.209.196) by nasanex01c.na.qualcomm.com (10.47.97.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.922.19; Tue, 8 Feb 2022 14:45:36 -0800 Received: from [10.48.246.62] (10.49.16.6) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.922.19; Tue, 8 Feb 2022 14:45:36 -0800 Message-ID: <536bba7d-38f6-18ae-e09d-dfcd30f73f9d@quicinc.com> Date: Tue, 8 Feb 2022 14:45:36 -0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.5.1 Subject: Re: [PATCH 09/14] mac80211: mlme: add documentation from spec to code Content-Language: en-US To: Luca Coelho , CC: References: <20220202084947.370289-1-luca@coelho.fi> From: Jeff Johnson In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.49.16.6] X-ClientProxiedBy: nalasex01a.na.qualcomm.com (10.47.209.196) To nalasex01a.na.qualcomm.com (10.47.209.196) X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On 2/2/2022 12:49 AM, Luca Coelho wrote: > From: Mordechay Goodstein > > Reference the spec why we decline HE support in > case STA don't support all HE basic rates recurred by AP. > > Signed-off-by: Mordechay Goodstein > Signed-off-by: Luca Coelho > --- > net/mac80211/mlme.c | 10 +++++++++- > 1 file changed, 9 insertions(+), 1 deletion(-) > > diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c > index 291226a1599d..bf777943cacd 100644 > --- a/net/mac80211/mlme.c > +++ b/net/mac80211/mlme.c > @@ -5052,7 +5052,15 @@ ieee80211_verify_sta_he_mcs_support(struct ieee80211_sub_if_data *sdata, > > /* > * Make sure the HE AP doesn't require MCSs that aren't > - * supported by the client > + * supported by the client as required by spec > + * > + * P802.11-REVme/D0.3 curious why you reference a draft spec instead of referencing the approved IEEE Std 802.11ax™-2021 > + * 26.17.1 Basic HE BSS operation > + * > + * An HE STA shall not attempt to join * (MLME-JOIN.request primitive) > + * a BSS, unless it supports (i.e., is able to both transmit and > + * receive using) all of the tuples in the basic > + * HE-MCS and NSS set. > */ > if (sta_rx_val == IEEE80211_HE_MCS_NOT_SUPPORTED || > sta_tx_val == IEEE80211_HE_MCS_NOT_SUPPORTED ||