Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp285887pxb; Wed, 23 Mar 2022 18:25:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzEtpxbWjvbw96FeE3qKOP9nieLvS530ZB+og5i0DBUvEPTevKo0YaByuX9CHbMpnLcynZt X-Received: by 2002:a17:906:2699:b0:6d0:9f3b:a6a7 with SMTP id t25-20020a170906269900b006d09f3ba6a7mr3023353ejc.397.1648085136449; Wed, 23 Mar 2022 18:25:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648085136; cv=none; d=google.com; s=arc-20160816; b=U/kjqbW2HhPeRm+ULFszdMw9arqdQAaAKT4DY7FFGQfd0GLf8XcneukmBF0rh941Qo WjWUUOH3Kcdr9VKKWbbxBw+nNoSnT6hjLBkbzaFnCpQDKHCzk57shpFcPqrPCLixHg60 Yd6crCtzKWE4sZ4sWDu4TTG5V6iwCpt8KVsKpub9LM9Ng20cfCv+hL82M1RN6GRBJSii 6o0gc9ZTQPZHTWjdLJqy58ZXEc5jNvksO/fQ8rSFvwWCmW0NWDGgxs0oKt8+2vIVA2ub t5ys6AZU/PEwV8Zg0we+ZL8NZd2o4WcrQ79e4+izsW3dYbWx7JbPEUMFkBb6dK8akZdQ yxTA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=cS69bWsi0yZrTJWwbQtqTekYkjlpxBw3J1exyAVZGrQ=; b=oVIaXcxWQmHj4Z9Na+yRiJfWfJxg28RbZGQNWIMUj7wzXIk1BgYwbu2znqaRhEfqNl kQPXwtYd2sWMrp22mXrSreoRwzTlMAS9Mar2HTA6zq03yztUl2oC32z19NMaCNqZ5t+S G+aGgrmd7c+PoVLz5/stO5HRtz48/3HLng6eYo/MeRD2wUNKztEXQ6q50afHeMsuouAr pYdLHDMNnK4UJooBSU9Zl6A6Hr4EAbqO4+58flL8BlozDLouR9hXkYP5v1uCS61FSWr9 HQJa44yP0fnVjBiMy+tGWungNuh1DePDa+BI7nH7uoLXPDQY4bsud+8XgMMNAIudv5Nz zxSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=hhwCKFX3; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c73-20020a509fcf000000b00418e60ecf66si18395766edf.129.2022.03.23.18.25.13; Wed, 23 Mar 2022 18:25:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-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=@quicinc.com header.s=qcdkim header.b=hhwCKFX3; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345255AbiCWWsV (ORCPT + 70 others); Wed, 23 Mar 2022 18:48:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57720 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345385AbiCWWsT (ORCPT ); Wed, 23 Mar 2022 18:48:19 -0400 Received: from alexa-out.qualcomm.com (alexa-out.qualcomm.com [129.46.98.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 663198F989 for ; Wed, 23 Mar 2022 15:46:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1648075608; x=1679611608; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=cS69bWsi0yZrTJWwbQtqTekYkjlpxBw3J1exyAVZGrQ=; b=hhwCKFX39U4WDzMAvptfLiS5d9iL90hyT8RDxEaWb0M28qmw2zc9yYCj vLZysUrunGoRLHkN1VoWhekRYlpYgDkL39+gcsTsgZ4ZRid3zAMfbEaCY LspRZHlxlmcERU5qv70eVbqk8RfYwGKiJ4FXuawr0m3K8shMxgJZ/a7uF 0=; Received: from ironmsg09-lv.qualcomm.com ([10.47.202.153]) by alexa-out.qualcomm.com with ESMTP; 23 Mar 2022 15:46:48 -0700 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; 23 Mar 2022 15:46:48 -0700 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.986.22; Wed, 23 Mar 2022 15:46:47 -0700 Received: from alokad-linux.qualcomm.com (10.80.80.8) 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.986.22; Wed, 23 Mar 2022 15:46:47 -0700 From: Aloka Dixit To: , CC: Muna Sinada , Aloka Dixit Subject: [PATCH v2 2/2] mac80211: support disabling EHT mode Date: Wed, 23 Mar 2022 15:46:36 -0700 Message-ID: <20220323224636.20211-2-quic_alokad@quicinc.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20220323224636.20211-1-quic_alokad@quicinc.com> References: <20220323224636.20211-1-quic_alokad@quicinc.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01a.na.qualcomm.com (10.47.209.196) X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,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-wireless@vger.kernel.org From: Muna Sinada Allow userspace to disable EHT mode. This forces EHT capable interfaces to disable during association. Signed-off-by: Muna Sinada Signed-off-by: Aloka Dixit --- v2: Rebased on top of wireless-next git repository. net/mac80211/mlme.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c index 1b30c724ca8d..7f1e3569dd5d 100644 --- a/net/mac80211/mlme.c +++ b/net/mac80211/mlme.c @@ -5964,7 +5964,7 @@ int ieee80211_mgd_assoc(struct ieee80211_sub_if_data *sdata, ifmgd->flags |= IEEE80211_STA_DISABLE_HE; ifmgd->flags |= IEEE80211_STA_DISABLE_EHT; netdev_info(sdata->dev, - "disabling HT/VHT/HE due to WEP/TKIP use\n"); + "disabling HT/VHT/HE/EHT due to WEP/TKIP use\n"); } } @@ -6126,6 +6126,9 @@ int ieee80211_mgd_assoc(struct ieee80211_sub_if_data *sdata, ifmgd->flags |= IEEE80211_STA_DISABLE_EHT; } + if (req->flags & ASSOC_REQ_DISABLE_EHT) + ifmgd->flags |= IEEE80211_STA_DISABLE_EHT; + err = ieee80211_prep_connection(sdata, req->bss, true, override); if (err) goto err_clear; -- 2.31.1