Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp2122020pxb; Fri, 25 Mar 2022 11:28:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwwwT4GP+ajNwVHm9r9jqytf9g+SJK1HFMTajNd5crFP4B29xAkLT+nD6GhKI4MkNZDGMqY X-Received: by 2002:a63:5744:0:b0:385:fe08:e835 with SMTP id h4-20020a635744000000b00385fe08e835mr653069pgm.397.1648232903756; Fri, 25 Mar 2022 11:28:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648232903; cv=none; d=google.com; s=arc-20160816; b=pI5th/REURwDpIAHUrE59kw60gWg1Thxud8AFzJfNJERnBvwsaV7Q5OF1/4L6Urk4W xdmdcjLzKy3AE/8okcJJSmbD4e76o9nCQX2R/eIxC30RyO+YSFb0ttskzESd6oVirjlm AHWeBaORQ0M0eNLPFT7/C1HalTJoIsy91fFxDWiqL3v9sP3WALsooWmrtGPVnjVLzsqC AsQltaKD2+fj026Y5P/C1SykszX4tpa6D9M836p89NWL0JuJnTpFKilMPt+N8/W5JxsF xRXZlOn1Fq5z0Dr21QMvgPqJdPZIRKqsdw0g7LsiNHY81DE0U12JBKGri/9VNq/h7Ftg YrnA== 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=beTOa7QdjKZ5Ywt9VErYX4lAZHPF7tifsDmxNSyC5OA=; b=N0wjtG+0cWNZcIKnvLU8SYXuKYoydfMdJTqovSVudyeSXtLkqapTkIznihvhlQX9lA 51P+MP2nRajcN+Hz30wIkGH8M4bRPxgIQbSyAwQ3LkdLODm/nN4dQ8lw9Ch7O3mSXC9u fbyg1O2zhdGUG300W6I4TBcPa1cBoo8BkDeOdAw/9tZyt7wYtabwbt2yNJQxt30B9Qry tBsPnCurv0xaplQr3kkwSX/t1Lu+pihJl5Kf7E9zQJcuWRHZzjMTVxRMy1WbReh1kEZA 4Oy7NjvZI4Q4O/2LrupnOOy/rdHnoTGqGeLHz7AlwImFrHolJAwCpvlV8azQc1pOpERu B1ug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=LMrnY4OI; spf=softfail (google.com: domain of transitioning linux-wireless-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id q2-20020a655242000000b003816043f01esi3024062pgp.531.2022.03.25.11.28.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Mar 2022 11:28:23 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-wireless-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=@quicinc.com header.s=qcdkim header.b=LMrnY4OI; spf=softfail (google.com: domain of transitioning linux-wireless-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 82B0617B894; Fri, 25 Mar 2022 10:51:04 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1358376AbiCYGBt (ORCPT + 70 others); Fri, 25 Mar 2022 02:01:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56832 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238643AbiCYGBs (ORCPT ); Fri, 25 Mar 2022 02:01:48 -0400 Received: from alexa-out-sd-02.qualcomm.com (alexa-out-sd-02.qualcomm.com [199.106.114.39]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 02295C681C for ; Thu, 24 Mar 2022 23:00:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1648188015; x=1679724015; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=beTOa7QdjKZ5Ywt9VErYX4lAZHPF7tifsDmxNSyC5OA=; b=LMrnY4OIs3SGt3lQAMGzULp+YJrEjuBr2uohEVKzGrbNdc9lZ9MdccZN ZjFSJKgNx/e05uTDEkaOMhgOLgtWJedW3B1JQ0UJx3cCPbAeps0d/YUyX /JZG3UpAH9ey9Xut3/Vwep6cDq+t/O5jI8gka89yc/+v3j8cSawiGQjy0 w=; Received: from unknown (HELO ironmsg01-sd.qualcomm.com) ([10.53.140.141]) by alexa-out-sd-02.qualcomm.com with ESMTP; 24 Mar 2022 23:00:14 -0700 X-QCInternal: smtphost Received: from unknown (HELO nasanex01a.na.qualcomm.com) ([10.52.223.231]) by ironmsg01-sd.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Mar 2022 23:00:14 -0700 Received: from che-siroccolnx03.qualcomm.com (10.80.80.8) by nasanex01a.na.qualcomm.com (10.52.223.231) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Thu, 24 Mar 2022 23:00:13 -0700 From: Maharaja Kennadyrajan To: , CC: Maharaja Kennadyrajan Subject: [PATCH v6 2/3] mac80211: Add support for beacon tx mode Date: Fri, 25 Mar 2022 11:29:48 +0530 Message-ID: <20220325055949.3035053-3-quic_mkenna@quicinc.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220325055949.3035053-1-quic_mkenna@quicinc.com> References: <20220325055949.3035053-1-quic_mkenna@quicinc.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nasanex01a.na.qualcomm.com (10.52.223.231) X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,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-wireless@vger.kernel.org Pass the beacon tx mode value from the nl80211/cfg80211 layer to the driver via ieee80211_ops and driver ops. Tested-on: IPQ8074 hw2.0 AHB WLAN.HK.2.5.0.1-00480-QCAHKSWPL_SILICONZ-1 Signed-off-by: Maharaja Kennadyrajan --- include/net/mac80211.h | 2 ++ net/mac80211/cfg.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/include/net/mac80211.h b/include/net/mac80211.h index 382ebb862ea8..de6bce88f4fb 100644 --- a/include/net/mac80211.h +++ b/include/net/mac80211.h @@ -637,6 +637,7 @@ struct ieee80211_fils_discovery { * @tx_pwr_env_num: number of @tx_pwr_env. * @pwr_reduction: power constraint of BSS. * @eht_support: does this BSS support EHT + * @beacon_tx_mode: Beacon Tx Mode setting. */ struct ieee80211_bss_conf { const u8 *bssid; @@ -712,6 +713,7 @@ struct ieee80211_bss_conf { u8 tx_pwr_env_num; u8 pwr_reduction; bool eht_support; + enum nl80211_beacon_tx_mode beacon_tx_mode; }; /** diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c index ba752539d1d9..522bf71db850 100644 --- a/net/mac80211/cfg.c +++ b/net/mac80211/cfg.c @@ -1162,6 +1162,7 @@ static int ieee80211_start_ap(struct wiphy *wiphy, struct net_device *dev, prev_beacon_int = sdata->vif.bss_conf.beacon_int; sdata->vif.bss_conf.beacon_int = params->beacon_interval; + sdata->vif.bss_conf.beacon_tx_mode = params->beacon_tx_mode; if (params->he_cap && params->he_oper) { sdata->vif.bss_conf.he_support = true; @@ -2237,6 +2238,7 @@ static int copy_mesh_setup(struct ieee80211_if_mesh *ifmsh, sdata->vif.bss_conf.beacon_int = setup->beacon_interval; sdata->vif.bss_conf.dtim_period = setup->dtim_period; + sdata->vif.bss_conf.beacon_tx_mode = setup->beacon_tx_mode; sdata->beacon_rate_set = false; if (wiphy_ext_feature_isset(sdata->local->hw.wiphy, -- 2.25.1