Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1764161ybh; Thu, 16 Jul 2020 23:50:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzx0Q5Cueu/DQ5VlL2CIPF43HZnjocyTss2o1vx6NS5H1NVskxVYBhTyJadpowIBhajVJhh X-Received: by 2002:a17:906:2e83:: with SMTP id o3mr7308356eji.261.1594968647054; Thu, 16 Jul 2020 23:50:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594968647; cv=none; d=google.com; s=arc-20160816; b=obkqymj6+sc1t+9PAWd6gWZLAKsGprnsnY0R9fVCdwHFlpB8ecHaRByb3FShRQSRpm GccCLkBvaaB198pHxSMr50o0dXTczWzZtXhyL2F5EkZ2yATldcCx1evw80PhuV2PQPzB YePMooeyzaYVWocbuWzZcHFJqr71y31G6bGvuTWCDZqizF5MGOEAnejXdoBJyoq2FijF KXQE6TqJ3ohJOgod47N5f6XQBLmx4Aio/dqvhxW5uI6i+eS3r3tOuwq0i0PthMfZ68ul 3nc6MQVBEDr9X1MF1ooRqAJs2LT5SF6bstlJ6UZbd1h489Om0LSqftB9FdkTmjx/xc6x N5sw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:authenticated-by; bh=3EGxNblyhOXkAmnnQGxXLB9k1WQpwvwQuy3DwErcZEA=; b=RmCgChGGx7tVMrkCcFxONbv5te2vzGgvCEE9P9dA+HmffzG0lqOh11HVK0h8rRzWvi GSsz/pt/IFmidgEcRMFa+WSeL89u2KeAQVJG8rhV+3+mJhg1oojWKRDfFG8Ej1dBDJYy 2Z2TI2drK6gGZKa4AUOBuuxsarExWwJEq3Pzmxfh3XX9ZyyFtWkdWAUUjQJp3g12e+ws 5A//XKeIiNkvPjWRlzOwJAscjVvOlMUd3exGd8eQuxPpzMsLEL2m1ncLN0Wr/W71QTgv qxriCxfQXyZXhW+P3ZunabJqJjjnvcR831weXdsAHfvv5Vsj3I5F/HZDpVZ0VC/ZRHiY tRVA== 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 b25si4614207ejg.500.2020.07.16.23.50.17; Thu, 16 Jul 2020 23:50:46 -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 S1727050AbgGQGuL (ORCPT + 99 others); Fri, 17 Jul 2020 02:50:11 -0400 Received: from rtits2.realtek.com ([211.75.126.72]:55024 "EHLO rtits2.realtek.com.tw" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726856AbgGQGuF (ORCPT ); Fri, 17 Jul 2020 02:50:05 -0400 Authenticated-By: X-SpamFilter-By: ArmorX SpamTrap 5.69 with qID 06H6o0Mz9028960, This message is accepted by code: ctloc85258 Received: from mail.realtek.com (rtexmb06.realtek.com.tw[172.21.6.99]) by rtits2.realtek.com.tw (8.15.2/2.66/5.86) with ESMTPS id 06H6o0Mz9028960 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Fri, 17 Jul 2020 14:50:00 +0800 Received: from RTEXMB04.realtek.com.tw (172.21.6.97) by RTEXMB06.realtek.com.tw (172.21.6.99) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1779.2; Fri, 17 Jul 2020 14:50:00 +0800 Received: from localhost.localdomain (172.21.68.128) by RTEXMB04.realtek.com.tw (172.21.6.97) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1779.2; Fri, 17 Jul 2020 14:50:00 +0800 From: To: CC: Subject: [PATCH 6/7] rtw88: allows driver to enable/disable beacon Date: Fri, 17 Jul 2020 14:49:36 +0800 Message-ID: <20200717064937.27966-7-yhchuang@realtek.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200717064937.27966-1-yhchuang@realtek.com> References: <20200717064937.27966-1-yhchuang@realtek.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [172.21.68.128] X-ClientProxiedBy: RTEXMB02.realtek.com.tw (172.21.6.95) To RTEXMB04.realtek.com.tw (172.21.6.97) Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Yan-Hsuan Chuang Enable/disable beacon accordingly when the BSS info changed. Signed-off-by: Yan-Hsuan Chuang --- drivers/net/wireless/realtek/rtw88/mac80211.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/drivers/net/wireless/realtek/rtw88/mac80211.c b/drivers/net/wireless/realtek/rtw88/mac80211.c index bb82b044ff82..6b199152abcf 100644 --- a/drivers/net/wireless/realtek/rtw88/mac80211.c +++ b/drivers/net/wireless/realtek/rtw88/mac80211.c @@ -390,6 +390,15 @@ static void rtw_ops_bss_info_changed(struct ieee80211_hw *hw, if (changed & BSS_CHANGED_BEACON) rtw_fw_download_rsvd_page(rtwdev); + if (changed & BSS_CHANGED_BEACON_ENABLED) { + if (conf->enable_beacon) + rtw_write32_set(rtwdev, REG_FWHW_TXQ_CTRL, + BIT_EN_BCNQ_DL); + else + rtw_write32_clr(rtwdev, REG_FWHW_TXQ_CTRL, + BIT_EN_BCNQ_DL); + } + if (changed & BSS_CHANGED_MU_GROUPS) rtw_chip_set_gid_table(rtwdev, vif, conf); -- 2.17.1