Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp663349pxb; Tue, 5 Apr 2022 17:50:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwbIeSj99uKh1M+A5FWfhj7jTG6u89uI1pJ/3Zap59cjKm0yQ9LGiL1RlcNfJ+DIDM7fDae X-Received: by 2002:a17:90a:8d16:b0:1ca:8aa2:7f8e with SMTP id c22-20020a17090a8d1600b001ca8aa27f8emr7087256pjo.198.1649206241428; Tue, 05 Apr 2022 17:50:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649206241; cv=none; d=google.com; s=arc-20160816; b=SErsLhVAHFTFnLvLFWG7XK4JB5Ibcu375pUmKOIpcGIuFeZQ3ypEW1eFJXumJFqOsJ jnItxOWpxLih6IL15XaK3+Y1NTEH3i70HecC0/7qmYK8pbxjStouwrq3S4bjRrND2XGC wK7JTuOrmFUJ4T9O58k+SW/FxHHm8fbuTrCL3USdbWVir6u4SmCNYJ5I6CpuIqp9Ye4j AMFpd44KT8hKzPlmsS42MUSnHp2EZ0lRiYXuP89zAS7FKdO1pvDMBmMvslQzuq5kXa9X 1W4LqS2CS2BCskOFdavXvJWmqiEP5EQ4mEzQNmh77Huyc9ZAlo9kay09m2ni77AOdkRs b9cw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Iy9pZei45hWiRJjz7JnVi0QG8ucCYixJVpNV/opOLwc=; b=beTzR/59Qt/fGUBf9lKl+U1TB/oPKBeFKa9mSjILfkqN/DOZsLYRt57N2B1pEZaJyj RCK+yePOEteR4mpcrltYKGqEdm0DH/Fu/b/p40Fvk/ZwZHT8r01Q5xF4LncWIgtRbYl6 /8RTpuRy3uxLzncR1ben5q4ogHU4CeWST4LeckTU2msAntxEHj3e4UNIG8bqs8drcoXG xv2jN/DrBsT7OB4XzsWEk/Z6eBJppYPPXn2XgZ9S0oSSYw6GtIC6h8jNwjENTUKLRDzV 78FcrbDVqYtoNpD+CTkrqLWrgLrma63mZEWPerMWDQJcA1IbJtt7IiJaiAp1TFbxnBU8 N1Bg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=nF2npzTt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m9-20020a655649000000b00398580e51c9si14434188pgs.76.2022.04.05.17.50.27; Tue, 05 Apr 2022 17:50:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=nF2npzTt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243276AbiDEMht (ORCPT + 99 others); Tue, 5 Apr 2022 08:37:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54948 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235787AbiDEJCl (ORCPT ); Tue, 5 Apr 2022 05:02:41 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4C8472B26C; Tue, 5 Apr 2022 01:54:25 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 081A3B81A0C; Tue, 5 Apr 2022 08:54:24 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 560A2C385A1; Tue, 5 Apr 2022 08:54:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649148862; bh=h2v0DIlqn7MvODtMU7B5duk+eFWQY+7yWPinQ/7cefg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nF2npzTtmp/gmkK43I9f3I+82WRHvIeEGsc5GsPmlcHANv02sBUPGhLgrHm8igSSp SXCYSNLiZQW3DNfrjQqSOWV5yX7/NjY3+uQDN1glfkCXAXU1+UjjREgCYQxRkQbCQs kuz/GYs+iNRAYHsRBkNbCV0EN/WjuM1e1g6qLKsQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Ilan Peer , Luca Coelho , Johannes Berg , Sasha Levin Subject: [PATCH 5.16 0471/1017] mac80211: Remove a couple of obsolete TODO Date: Tue, 5 Apr 2022 09:23:04 +0200 Message-Id: <20220405070408.279247446@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220405070354.155796697@linuxfoundation.org> References: <20220405070354.155796697@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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-kernel@vger.kernel.org From: Ilan Peer [ Upstream commit cee04f3c3a00ffd2a2a6ed1028e0ab58a3a28d25 ] The HE capability IE is an extension IE so remove an irrelevant comments. Signed-off-by: Ilan Peer Signed-off-by: Luca Coelho Link: https://lore.kernel.org/r/iwlwifi.20211129152938.550b95b5fca7.Ia31395e880172aefcc0a8c70ed060f84b94bdb83@changeid Signed-off-by: Johannes Berg Signed-off-by: Sasha Levin --- net/mac80211/main.c | 13 +++++-------- net/mac80211/mlme.c | 4 ---- 2 files changed, 5 insertions(+), 12 deletions(-) diff --git a/net/mac80211/main.c b/net/mac80211/main.c index 45fb517591ee..5311c3cd3050 100644 --- a/net/mac80211/main.c +++ b/net/mac80211/main.c @@ -1131,17 +1131,14 @@ int ieee80211_register_hw(struct ieee80211_hw *hw) local->scan_ies_len += 2 + sizeof(struct ieee80211_vht_cap); - /* HE cap element is variable in size - set len to allow max size */ /* - * TODO: 1 is added at the end of the calculation to accommodate for - * the temporary placing of the HE capabilities IE under EXT. - * Remove it once it is placed in the final place. - */ - if (supp_he) + * HE cap element is variable in size - set len to allow max size */ + if (supp_he) { local->scan_ies_len += - 2 + sizeof(struct ieee80211_he_cap_elem) + + 3 + sizeof(struct ieee80211_he_cap_elem) + sizeof(struct ieee80211_he_mcs_nss_supp) + - IEEE80211_HE_PPE_THRES_MAX_LEN + 1; + IEEE80211_HE_PPE_THRES_MAX_LEN; + } if (!local->ops->hw_scan) { /* For hw_scan, driver needs to set these up. */ diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c index 404b84650161..13496ba48514 100644 --- a/net/mac80211/mlme.c +++ b/net/mac80211/mlme.c @@ -650,10 +650,6 @@ static void ieee80211_add_he_ie(struct ieee80211_sub_if_data *sdata, if (!he_cap || !reg_cap) return; - /* - * TODO: the 1 added is because this temporarily is under the EXTENSION - * IE. Get rid of it when it moves. - */ he_cap_size = 2 + 1 + sizeof(he_cap->he_cap_elem) + ieee80211_he_mcs_nss_size(&he_cap->he_cap_elem) + -- 2.34.1