Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1454154pxb; Mon, 22 Feb 2021 02:15:33 -0800 (PST) X-Google-Smtp-Source: ABdhPJx0fbni9EiHXJdDHv+3impSv5zYmdIbNiI1AknZ9x/T30FYUXLaGZoY/Ca1KbR4UDGHaosr X-Received: by 2002:a17:906:1759:: with SMTP id d25mr17285827eje.524.1613988932905; Mon, 22 Feb 2021 02:15:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613988932; cv=none; d=google.com; s=arc-20160816; b=kfFvYfNJSPCatl8broOLEayy4S1G1FP7S283jOGkxMj8TWlzPEOSLpBvC22kvDRogJ dR+RcyrAN4Vh1IPxGK5cNUsDHEDAbye2gpzTXqpAG+5mZtZyKhpyO9A+5LRcAXeoxrqf ObfSpkCSuJhiYD40QbgdsvA6uEg/Ba53NJhr4hYXZVb705mAqPCLYwB4XVUgStG0td0N UlhTwjRaEBsIivW9Qf0IgipZYEcRqxo0k5uIL9UhBNQeFKextSEktPFMJ6AVzx3ttL3o MAIezNtdk/eifoO0sZqYMmrRWSx7FIAe446ITl94+py2QZoGe0tTNj2va67T9sivokAs Ackw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dmarc-filter:sender:dkim-signature; bh=N3diFFtjEHpiG4D5rwY3DcLaJnl39TTxpmsdUpFWfP8=; b=apSWTu4JkyDbkBcmNmp6LlwCZAZERSfq9PCBXRPkbbBoownxtvmjNembXYakvRyGaj mMSryhmW9JuxTDzPdEK9D/8J8/o5VlCY850/KX8EriFRj7kM6V8OJOLKm3SEx5/KMTAJ m4ZohpJKKRl4UZiedRm6lA0mDBjeBMeEqfFgoYvuyrjO9sZcJehmFiixTewYF9A3WSWS lg6SWZQRKJ89R5WYD64ZwrTCY8LVW8gg95cI+QI/HrGIO+hm8q6kc6cmdDaDbb/1XHqS DJFOgaRqB0M6y46AkBusF9qdLa46E4TI11bR+kJ/iHDoCwHrIGCri2VgiQl+XbrD5oX+ 7Rew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=D1yFwQ9G; 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 l21si11813686edw.606.2021.02.22.02.15.10; Mon, 22 Feb 2021 02:15:32 -0800 (PST) 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; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=D1yFwQ9G; 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 S230489AbhBVKMe (ORCPT + 99 others); Mon, 22 Feb 2021 05:12:34 -0500 Received: from z11.mailgun.us ([104.130.96.11]:62106 "EHLO z11.mailgun.us" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231156AbhBVKKu (ORCPT ); Mon, 22 Feb 2021 05:10:50 -0500 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1613988621; h=References: In-Reply-To: Message-Id: Date: Subject: Cc: To: From: Sender; bh=N3diFFtjEHpiG4D5rwY3DcLaJnl39TTxpmsdUpFWfP8=; b=D1yFwQ9GaZo1Tp9qecUKkRrHg9N7ZBGImdYX+/LrriJ4Zic/HJnM6TyHB1XvcpzLb3cUZ4l4 XAzdb+8/iVskpJWOlgAiZw8YbF+6oSmtvxwkhQ/U/q/3sz+XTjIE96etmKZ6VFO54+OnpMkn zmAtAhyktLl8C0T6rFgXCOMH1wo= X-Mailgun-Sending-Ip: 104.130.96.11 X-Mailgun-Sid: WyI3YTAwOSIsICJsaW51eC13aXJlbGVzc0B2Z2VyLmtlcm5lbC5vcmciLCAiYmU5ZTRhIl0= Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n06.prod.us-east-1.postgun.com with SMTP id 603382e9f33d74123fc973bd (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Mon, 22 Feb 2021 10:09:45 GMT Sender: mkenna=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 05838C43462; Mon, 22 Feb 2021 10:09:45 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=ALL_TRUSTED,BAYES_00,SPF_FAIL, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from ssreeela-linux.qualcomm.com (blr-c-bdr-fw-01_GlobalNAT_AllZones-Outside.qualcomm.com [103.229.19.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: mkenna) by smtp.codeaurora.org (Postfix) with ESMTPSA id 60FE5C433C6; Mon, 22 Feb 2021 10:09:43 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 60FE5C433C6 Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=fail smtp.mailfrom=mkenna@codeaurora.org From: Maharaja Kennadyrajan To: ath11k@lists.infradead.org, linux-wireless@vger.kernel.org Cc: Maharaja Kennadyrajan Subject: [PATCH 2/3] mac80211: Add support for beacon tx mode Date: Mon, 22 Feb 2021 15:39:32 +0530 Message-Id: <1613988573-10839-3-git-send-email-mkenna@codeaurora.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1613988573-10839-1-git-send-email-mkenna@codeaurora.org> References: <1613988573-10839-1-git-send-email-mkenna@codeaurora.org> 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 2d1d629..52e5cc2 100644 --- a/include/net/mac80211.h +++ b/include/net/mac80211.h @@ -631,6 +631,7 @@ struct ieee80211_fils_discovery { * @s1g: BSS is S1G BSS (affects Association Request format). * @beacon_tx_rate: The configured beacon transmit rate that needs to be passed * to driver when rate control is offloaded to firmware. + * @beacon_tx_mode: Beacon Tx Mode setting. */ struct ieee80211_bss_conf { const u8 *bssid; @@ -700,6 +701,7 @@ struct ieee80211_bss_conf { u32 unsol_bcast_probe_resp_interval; bool s1g; struct cfg80211_bitrate_mask beacon_tx_rate; + enum nl80211_beacon_tx_mode beacon_tx_mode; }; /** diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c index c4c70e3..05ec6c3 100644 --- a/net/mac80211/cfg.c +++ b/net/mac80211/cfg.c @@ -1063,6 +1063,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; @@ -2092,6 +2093,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.7.4