Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1749127rwd; Thu, 1 Jun 2023 22:35:32 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6OMDQ5C8KSOiLDljSrnM+BeTvElqdxFoDQ07cPQT71Z8gyTYHUhIY7GPxC1r9nEdxgcnog X-Received: by 2002:a05:6358:6f8e:b0:123:1a41:3d8 with SMTP id s14-20020a0563586f8e00b001231a4103d8mr7653409rwn.29.1685684132381; Thu, 01 Jun 2023 22:35:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685684132; cv=none; d=google.com; s=arc-20160816; b=RJBTcF4m6j/4n4OItrDwpWxD21h08q6dYmbkY0Q0LD7Q1ctzThbjvC0oUW/wWX+DKh Hs5ls5Lso5PMlMBArMT+0qzKtCisiccj3cPt/FxS2e4JzVnMUJZpYfd+dI/xyXiau8w+ sT5MIkyvH1qT6mOsqxFI+cuORFIjxV7ywMTC1RYPYgbK7MwWEw2NPbGZQi3DB+hzeZdC 7zx+cpTDIwQgH/H2BcnE81n0nkAVQTsms+Ijk+Q8NVHlE/5bouZn363nvsjMHiuBHKCI IqGy9bnpf0xXYRxMSmdEqu2Gjl8sun1HYlIKX5NlmMlZhu5ODZDUWV+BOU6HXM1Dkr7s B/lw== 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=DqsQP8zmsYzN0mz0VQ6T+0KITfOLJftr867AWDBMmW0=; b=e714Xy3WRmWsBUJpIuSGdHBJNDzjxcr8B6kURJ3KVeGzjLynTcRrwG6pF2fp+qhBRY 4j0Op5bG1yRuAARBSNfoKZo7O/evjIQOjH/2lCYFIyk2E12vl7IzH8gfyWO6USqI8c8m x7V7ALaaIxLlQQ9eVUHc9pe/8qsr1nDgUmcVjk5V9qLPQGjVGAnshGQ4yO2iaSRVU5Vz 1o+iCthda3s1Jo1aAuoOinghql5z0ukprNn4jazXwSdC/wLpGZ6VG5b389ua1hfoLk43 6UH+xvTvKaTr6lyd5ldLoO1dkGOUiao4Qc3DQBLDgERHDQmZ/twkva7AvWncBM/8x2o9 Uu5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@yandex.ru header.s=mail header.b=YG4Dwq1G; 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=yandex.ru Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a6-20020a624d06000000b006262bc88219si187834pfb.160.2023.06.01.22.35.21; Thu, 01 Jun 2023 22:35:32 -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=@yandex.ru header.s=mail header.b=YG4Dwq1G; 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=yandex.ru Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233580AbjFBFbH (ORCPT + 65 others); Fri, 2 Jun 2023 01:31:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54718 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233568AbjFBFbG (ORCPT ); Fri, 2 Jun 2023 01:31:06 -0400 Received: from forward103b.mail.yandex.net (forward103b.mail.yandex.net [IPv6:2a02:6b8:c02:900:1:45:d181:d103]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 114651A1 for ; Thu, 1 Jun 2023 22:30:59 -0700 (PDT) Received: from mail-nwsmtp-smtp-production-main-63.sas.yp-c.yandex.net (mail-nwsmtp-smtp-production-main-63.sas.yp-c.yandex.net [IPv6:2a02:6b8:c14:6e01:0:640:627f:0]) by forward103b.mail.yandex.net (Yandex) with ESMTP id 3E69B60036; Fri, 2 Jun 2023 08:30:58 +0300 (MSK) Received: by mail-nwsmtp-smtp-production-main-63.sas.yp-c.yandex.net (smtp/Yandex) with ESMTPSA id iUHKphCDTuQ0-WlUwcVQX; Fri, 02 Jun 2023 08:30:57 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1685683857; bh=DqsQP8zmsYzN0mz0VQ6T+0KITfOLJftr867AWDBMmW0=; h=Message-Id:Date:Cc:Subject:To:From; b=YG4Dwq1G1HgDPLy30/PXsXq2Qak60WV/r5lwUpKETFS6JFE90ZMsNt4FAyjSF4ve/ sFpk5dvu3ioG9y8LFSWpLCoAEjZ02tijlsJ6FXOsRpGPnwpkjDA9g5Z2D+Xl/cqGov nudYWAyJKoNHcEhLHNu3JnEmsCd5ltxbgqeyGOn8= Authentication-Results: mail-nwsmtp-smtp-production-main-63.sas.yp-c.yandex.net; dkim=pass header.i=@yandex.ru From: Dmitry Antipov To: Ping-Ke Shih Cc: Kalle Valo , linux-wireless@vger.kernel.org, Dmitry Antipov Subject: [PATCH] wifi: rtlwifi: remove unused dualmac control leftovers Date: Fri, 2 Jun 2023 08:29:36 +0300 Message-Id: <20230602052936.114649-1-dmantipov@yandex.ru> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED 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 Remove 'struct rtl_dualmac_easy_concurrent_ctl' of 'struct rtl_priv' and related code in '_rtl_pci_tx_chk_waitq()'. This is a followup of bc4b83d64077 ("wifi: rtlwifi: remove unused timer and related code"). Signed-off-by: Dmitry Antipov --- drivers/net/wireless/realtek/rtlwifi/pci.c | 5 ----- drivers/net/wireless/realtek/rtlwifi/wifi.h | 9 --------- 2 files changed, 14 deletions(-) diff --git a/drivers/net/wireless/realtek/rtlwifi/pci.c b/drivers/net/wireless/realtek/rtlwifi/pci.c index ca79f652fef3..028a7c97bacf 100644 --- a/drivers/net/wireless/realtek/rtlwifi/pci.c +++ b/drivers/net/wireless/realtek/rtlwifi/pci.c @@ -482,11 +482,6 @@ static void _rtl_pci_tx_chk_waitq(struct ieee80211_hw *hw) if (!rtlpriv->rtlhal.earlymode_enable) return; - if (rtlpriv->dm.supp_phymode_switch && - (rtlpriv->easy_concurrent_ctl.switch_in_process || - (rtlpriv->buddy_priv && - rtlpriv->buddy_priv->easy_concurrent_ctl.switch_in_process))) - return; /* we just use em for BE/BK/VI/VO */ for (tid = 7; tid >= 0; tid--) { u8 hw_queue = ac_to_hwq[rtl_tid_to_ac(tid)]; diff --git a/drivers/net/wireless/realtek/rtlwifi/wifi.h b/drivers/net/wireless/realtek/rtlwifi/wifi.h index bc1d68cb9183..307e059ec8aa 100644 --- a/drivers/net/wireless/realtek/rtlwifi/wifi.h +++ b/drivers/net/wireless/realtek/rtlwifi/wifi.h @@ -2496,14 +2496,6 @@ struct rtl_debug { #define MIMO_PS_DYNAMIC 1 #define MIMO_PS_NOLIMIT 3 -struct rtl_dualmac_easy_concurrent_ctl { - enum band_type currentbandtype_backfordmdp; - bool close_bbandrf_for_dmsp; - bool change_to_dmdp; - bool change_to_dmsp; - bool switch_in_process; -}; - struct rtl_dmsp_ctl { bool activescan_for_slaveofdmsp; bool scan_for_anothermac_fordmsp; @@ -2744,7 +2736,6 @@ struct rtl_priv { struct list_head list; struct rtl_priv *buddy_priv; struct rtl_global_var *glb_var; - struct rtl_dualmac_easy_concurrent_ctl easy_concurrent_ctl; struct rtl_dmsp_ctl dmsp_ctl; struct rtl_locks locks; struct rtl_works works; -- 2.40.1