Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp1000556pxb; Wed, 6 Apr 2022 06:25:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyrtFqXfOkH2nAKQG7ciwlO9G9C6/R07jm/5iF2NIsAeZ9crkVcI+ehQboi5jmF0jJi6hdQ X-Received: by 2002:a17:90b:4b89:b0:1c8:105a:2262 with SMTP id lr9-20020a17090b4b8900b001c8105a2262mr9924082pjb.225.1649251533226; Wed, 06 Apr 2022 06:25:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649251533; cv=none; d=google.com; s=arc-20160816; b=vut4Elu0NBmNXajiTyo0oE4YkeEzoKBVO1hxLUNbw4GPdjEaGEAF/ICInbEO687Cv8 a4rGztG1VzZr9cFjxB5Gj1cmTDFxh/akUPaiAU55M9GYTM/GvSSP51eTIyeODqyNT/cO 6L4QA5SIE4tGdbKT1IJNxVVb5VOF807jSPBBRfObZDjSAketxfNMifQRr8Fz+n1rbic6 8kM1FVpRxdZUvNJDmM1H9m16FMTpjaNwK+ln86oisufhg+yWnCe6TjX6/q1QhFaltA2g pCYtcSwRCpdyOCTWDKbq1MzwqVVfiDCHzuVT/cvv6E9rgwMifZTSEjy9D/e9ILJskO1b /crw== 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=xLTnL/ohdMDAz/fbvRvoyEdfcSrb2LxaRAvDDMfvTH4=; b=cLeiwSjEb9H2bJLMXv2opVDt50J7BZGsAX1yesKlzoGf6sgZXPu9hJHTbFsXKGi7lo 23rnH24Aki8tNbiHYKCfHw+32mO05oAe7JdZrQyT4ZHLvsQQzwDZfoJAnWhKnjI0uWhH PR2FNSyngFaUCyqovKLtjS3Eq7ohxT+oVvFbp2gDKMPelEn5XnifBqvdfZHIPfVv4ZTn IoLaZsHT7tJJGYx+1m4ECfPdoqg7ScajjtUkJLUwjFQo1rWLO/a/o7PIRnKYvSxjB9eQ 7iQrQPjZ7GKUUfm9aZUcXLLpXgHroh5fEKd4zQ+BSSfhpoO165OuSUWf4hSHNlcjEyRx v4vg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=gXnG4O3E; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id 125-20020a630983000000b003982527bdefsi15780494pgj.72.2022.04.06.06.25.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Apr 2022 06:25:33 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=gXnG4O3E; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 78EDF5B4632; Wed, 6 Apr 2022 04:02:09 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376691AbiDEV1Q (ORCPT + 99 others); Tue, 5 Apr 2022 17:27:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45298 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348931AbiDEJst (ORCPT ); Tue, 5 Apr 2022 05:48:49 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 522349A9B2; Tue, 5 Apr 2022 02:38:02 -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 0D697B81B14; Tue, 5 Apr 2022 09:38:01 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 76A8DC385A2; Tue, 5 Apr 2022 09:37:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649151479; bh=9OW6ya25QvSFpV3InMEXzUJx/wnQzcH9FWWrqfEezE8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gXnG4O3E9WGvW/6fjDFH5WDatvcB1ulLPqoHjcvvONbjDr81LN+TgRBhZTgvZ11wh JXQ/rbdL1unnObOm6fQVi9ZKc7gbsZGNaIpFumiHApLI7GWtNWlP6ZVe48g6ZwbSyP RWyzGqY8/UBC6sg6i85GH656w16k/4Qs2kKCf8WA= 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.15 430/913] mac80211: Remove a couple of obsolete TODO Date: Tue, 5 Apr 2022 09:24:52 +0200 Message-Id: <20220405070352.735120066@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220405070339.801210740@linuxfoundation.org> References: <20220405070339.801210740@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=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,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-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 6c8505edce75..8d9fe2765836 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