Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp4583142rwl; Mon, 10 Apr 2023 13:30:29 -0700 (PDT) X-Google-Smtp-Source: AKy350Y7PewWtDLnHb69r5lcFxKc9KKbOrr9q7c3dSVeSh9jVGMN+TknTGeeVhMiu48gR/q5Qw5R X-Received: by 2002:a17:906:3f8b:b0:94c:8cd8:559d with SMTP id b11-20020a1709063f8b00b0094c8cd8559dmr144564ejj.70.1681158629191; Mon, 10 Apr 2023 13:30:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681158629; cv=none; d=google.com; s=arc-20160816; b=jzHFlZ61G6pcFohfEKVLK4cGPrArchkuU8l93WRnhQcC0FwIHsbzRxPr1nJL6EY62g RyJUjDi70iAw4np3lYF+ckrDjNvQHBtpv7XE0NjyLpB9ECiYNboSWyd7dlmjox2HVvHM LW2tuGS2+NqjqwMrqGZrQIkkRtsGOfPWpc1nUaNlCjkbAttyB0pcnycGyXFAsDk/qv8Y JmFoP55tP5KsRGZoAkpKUSelZ7xyI4mhxjUhrWslWaZDAtJaCdZVZrr+TghUnWXDenA1 hfVZJgv6os/4iXytT8nM3yZ0GahSeQcB4IZxoOSpKZnWlSaGGXA6gigkNpVzV8FstLEC ewzg== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=YT1Q1+rPL+NgFO6Xug3AcFu5qXusdthn0jWzcEd4TXE=; b=tldcJpGHOtxOdyIrQ8u/QUKeJqBVH7kFDlmXoiNUl6ubUVfNLCqdmWfvcyJlJYdFoA z0KG5UvqSXyR3XbGOwMdiG3+/KZXJDE1duwnl8aKy5Ad3Knh4eTpZGYt8ZQOtbupYznF 9QhYEskzjs/x5LUD2Ow3iyBPuqfqeMLtkcFL/FmJISptT33jje2lCl6dPBj/3T7j3ppZ JB7PLVBJChX5D6Be6iHUoRd+/ldLCx06ciIrPtLm4f1YQOWBextKEYDsmBol0cA0ZOCI Dyd+VOX3pKzEaR9goz9kOz7ooAh9G8j7T9oMyU3IURpeCJZFMPla/GcJnpgYC/IMRe29 sTDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=mcBybXwn; 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 ce5-20020a170906b24500b0094e09630bd6si526504ejb.773.2023.04.10.13.30.09; Mon, 10 Apr 2023 13:30:29 -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=qcppdkim1 header.b=mcBybXwn; 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 S229789AbjDJUDu (ORCPT + 61 others); Mon, 10 Apr 2023 16:03:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44178 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229702AbjDJUDt (ORCPT ); Mon, 10 Apr 2023 16:03:49 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3E5AF9C for ; Mon, 10 Apr 2023 13:03:48 -0700 (PDT) Received: from pps.filterd (m0279866.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 33AJK2vA015471; Mon, 10 Apr 2023 20:03:45 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding : content-type; s=qcppdkim1; bh=YT1Q1+rPL+NgFO6Xug3AcFu5qXusdthn0jWzcEd4TXE=; b=mcBybXwnfRh8kp0XZyw0u/rzSXzb41DzfiWBu1VdMTffWjKkzNnP3dqJNdhOfGw8BhRx DIgKTZYrbhtEctjSPTYkhjjyhGVnUxyWLeWHDutC9DEX8v5Zap9s9T8rIqd0yphFKvXW 3bzuvq4wyjEGo3w4h/9XkpNYoakCS/BPB2RgNOZSz7N2XovMO6xewHiStYPhiJKnpiOF xMdjTxQeLLp4pwu5Qe3BhDSwPCrdRFgcZMB/PLA380KtgGlhj+v9WqJZMfVNv3Dv3byb afkmF2UBSGto/YjptRYVkNscgjRd0X4xRYgNAB/ZZZvL6fpK1OBSW03v7VyDYHoqFPH4 hA== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3pvgmes6x3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 10 Apr 2023 20:03:44 +0000 Received: from nalasex01b.na.qualcomm.com (nalasex01b.na.qualcomm.com [10.47.209.197]) by NALASPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 33AK3iuO007838 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 10 Apr 2023 20:03:44 GMT Received: from alokad-linux.qualcomm.com (10.80.80.8) by nalasex01b.na.qualcomm.com (10.47.209.197) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.42; Mon, 10 Apr 2023 13:03:43 -0700 From: Aloka Dixit To: , CC: Aloka Dixit Subject: [PATCH v3] mac80211: set EHT support flag Date: Mon, 10 Apr 2023 13:03:32 -0700 Message-ID: <20230410200332.32265-1-quic_alokad@quicinc.com> X-Mailer: git-send-email 2.39.0 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 nalasex01b.na.qualcomm.com (10.47.209.197) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: p9FYmdm-wRPZj9evGoyIOCmvApVI1e-V X-Proofpoint-ORIG-GUID: p9FYmdm-wRPZj9evGoyIOCmvApVI1e-V X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-04-10_14,2023-04-06_03,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 spamscore=0 phishscore=0 priorityscore=1501 mlxlogscore=961 impostorscore=0 adultscore=0 mlxscore=0 malwarescore=0 clxscore=1015 bulkscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2303200000 definitions=main-2304100173 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 Set 'eht_support' flag if EHT capabilities are present. Signed-off-by: Aloka Dixit --- v3: This is the next version for the following patch, https://patchwork.kernel.org/project/linux-wireless/patch/20220323225443.13947-3-quic_alokad@quicinc.com/ Retained only the must-have changes in this version from cfg.c. Rebasing v2 added modifications from bss_conf to link_conf. v2: Rebased on top of wireless-next git repository net/mac80211/cfg.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c index 473915606715..7317e4a5d1ff 100644 --- a/net/mac80211/cfg.c +++ b/net/mac80211/cfg.c @@ -1342,6 +1342,10 @@ static int ieee80211_start_ap(struct wiphy *wiphy, struct net_device *dev, } if (params->eht_cap) { + if (!link_conf->he_support) + return -EOPNOTSUPP; + + link_conf->eht_support = true; link_conf->eht_puncturing = params->punct_bitmap; changed |= BSS_CHANGED_EHT_PUNCTURING; base-commit: b536f32b5b034f592df0f0ba129ad59fa0f3e532 -- 2.39.0