Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1357369pxj; Fri, 18 Jun 2021 05:33:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxaXTRaz8bAY5pIgOn3suwptZaMunebBqNRdPRsCJsa1trAggGEnJ4Yf5JD1gzi7PIsx6PH X-Received: by 2002:a17:906:7f07:: with SMTP id d7mr10753878ejr.240.1624019592328; Fri, 18 Jun 2021 05:33:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624019592; cv=none; d=google.com; s=arc-20160816; b=gibKW/30obdyRzRPHNQLcPezuU/6/ylPZ5ujxnjSjqlCXjz9CTkoAz2WdgYG4vlyQG KvMiecRc6uHRiMXHZkwpFciwsRXxbMUJx5RM88V6yQu2Ojdv8vj5/mSUaY0YduvtZo5J VYjL9wXdSB1JdsXOMZcEt0cOIS48AHVrvJA6GVOOgPP3PruRP1OCvYsxHYxPAhaTgmZL IvAyqxZtHEgWljTcvZP+u1PeSAtdRbt5xdh9KX57v42dbMvB4yjzG2rQy5WCuRiRThmJ BG834M0oYhvfFtzTsx0EP1IEYarrTmQR55erCWma8oSzUrv9BUxLKGAVFyxb3ybm9F37 OvMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:cc:to:from; bh=uTabaQMiAOhZ+vfvgZFI3wDtsgpv8Al9nw1ytD2g5YI=; b=XerWcEmSz/LXuGnHExo0DQdxGWisQkDZkXsUgYUxEXbcAaYKIwXsET5hclkgmxAvM0 vVD39spXGuL9WN7McBOJyJm1NznoKuqPuePdC/QqkQMm3T9Mf57CXNnyydYYorE3P4OS PVCBYtcp49USQkfJaTRaIggN7/bUpZHmzhS5e6vTjOo8Lw/WSx/jjHb4qopQ0rPguMet MmrISh0AwvHFXKdJoDAye2RLIx4oYq+jufU0oM2cpxIiFdhv3RjCf1aVzSlAUQXjJCOt ShJQ4hPO2r3ow3648sOLjNysdfS6oljLmS8XVb3WVl44yqBOEhDcxLv27r9e3oFUe0Cl Fe5w== ARC-Authentication-Results: i=1; mx.google.com; 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 u8si8647688edv.293.2021.06.18.05.32.48; Fri, 18 Jun 2021 05:33:12 -0700 (PDT) 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; 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 S232967AbhFRKoO (ORCPT + 99 others); Fri, 18 Jun 2021 06:44:14 -0400 Received: from paleale.coelho.fi ([176.9.41.70]:48120 "EHLO farmhouse.coelho.fi" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S233672AbhFRKoN (ORCPT ); Fri, 18 Jun 2021 06:44:13 -0400 Received: from 91-156-6-193.elisa-laajakaista.fi ([91.156.6.193] helo=kveik.lan) by farmhouse.coelho.fi with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1luBwm-001YXx-Vb; Fri, 18 Jun 2021 13:42:02 +0300 From: Luca Coelho To: johannes@sipsolutions.net Cc: luca@coelho.fi, linux-wireless@vger.kernel.org Date: Fri, 18 Jun 2021 13:41:26 +0300 Message-Id: X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210618104156.747775-1-luca@coelho.fi> References: <20210618104156.747775-1-luca@coelho.fi> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Checker-Version: SpamAssassin 3.4.5-pre1 (2020-06-20) on farmhouse.coelho.fi X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00, TVD_RCVD_IP autolearn=ham autolearn_force=no version=3.4.5-pre1 Subject: [PATCH 01/31] mac80211: add HE 6GHz cap IE in 6GHz band only Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Shaul Triebitz The HE 6GHz capability IE should be added to the association request only when operating in the 6GHz band. Signed-off-by: Shaul Triebitz Signed-off-by: Luca Coelho --- net/mac80211/util.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/net/mac80211/util.c b/net/mac80211/util.c index 0a0481f5af48..a0ff27487686 100644 --- a/net/mac80211/util.c +++ b/net/mac80211/util.c @@ -6,7 +6,7 @@ * Copyright 2007 Johannes Berg * Copyright 2013-2014 Intel Mobile Communications GmbH * Copyright (C) 2015-2017 Intel Deutschland GmbH - * Copyright (C) 2018-2020 Intel Corporation + * Copyright (C) 2018-2021 Intel Corporation * * utilities for mac80211 */ @@ -2950,6 +2950,9 @@ void ieee80211_ie_build_he_6ghz_cap(struct ieee80211_sub_if_data *sdata, if (!sband) return; + if (sband->band != NL80211_BAND_6GHZ) + return; + iftd = ieee80211_get_sband_iftype_data(sband, iftype); if (WARN_ON(!iftd)) return; -- 2.32.0