Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1817991rwd; Fri, 2 Jun 2023 00:02:14 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ56znFSVClizYzlVGWTIkOl4nR8y11hUj03Gi85JAJFLY013MJq4c9m2gbZWDn+8/3l1jX6 X-Received: by 2002:a05:6358:5290:b0:123:2b2e:529d with SMTP id g16-20020a056358529000b001232b2e529dmr10946785rwa.6.1685689334458; Fri, 02 Jun 2023 00:02:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685689334; cv=none; d=google.com; s=arc-20160816; b=BgIaGGx99KzBQeq4wTEs2JUBsuHP8g04MTp5hoMlL1cEGbNhxOIgvI0dIqCFhaEDJ2 QvBOq3+Vk8ciheJwJIXBlp9uNpLJM9e++o+wm3o0jBBoJWWJAiNe5dwyCFefFCo3Eh+2 vf4QHJpv6ZPavVUjEEkP51PD2DICItzbk4QcxBc5UFvE8ubY4bzR8WVRs5TSsiRX0uhB szbGA3IJPP9dY9dIt6orfWRkLSz47chhQMoYxqiD2cyVTrS41+3FnX9Lo3Ly76S3H+eC zR5u0VBAYYLIQqx3g9UWb0eHb3nvKWPG9cB6ZMYNCJE1uLs/iC6KItMjTiTgrIu4ZKM9 aTJw== 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=TKC3Xi4ujQC0qwOxUi2i/LhoS+Dbjriv6ZLqqr0awKE=; b=MSXlONZHpyzYcg3anzPro7/6K4XG8TN1916H1pWOOBhO+yYQ/Bwm2RYG/rz3dq+oOr 4ghxj8cmQ/pdnBGwwV9l5MYDdUqVUyBGCCLZOEB9hKYMg5xiaD3ZJ4BDOsUOq061d07J lELvTjdRZNKcAoj2yas608E2dXySPGFvzb6ghVJyecDdeu+ghzoE6jzkycgTvoHtm6lG wNvLYP6+e0hkF7TZtEppFgC+nBJWWc++8rN7A7SSrjAekcyJThoxInu5li3ivAd5LF7L rG5/+A9BQthDWgMFD2VNT/LwDNeIgAun+nXoZ4UHvV0UW2fWtvcubJcjqdYL9fZZehp+ jJdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@yandex.ru header.s=mail header.b=nhrnQhT7; 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 mu3-20020a17090b388300b002533b5dc672si599637pjb.146.2023.06.02.00.02.05; Fri, 02 Jun 2023 00:02:14 -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=nhrnQhT7; 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 S233837AbjFBHAP (ORCPT + 64 others); Fri, 2 Jun 2023 03:00:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53954 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231407AbjFBHAN (ORCPT ); Fri, 2 Jun 2023 03:00:13 -0400 Received: from forward100c.mail.yandex.net (forward100c.mail.yandex.net [IPv6:2a02:6b8:c03:500:1:45:d181:d100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A1E78128 for ; Fri, 2 Jun 2023 00:00:11 -0700 (PDT) Received: from mail-nwsmtp-smtp-production-main-59.iva.yp-c.yandex.net (mail-nwsmtp-smtp-production-main-59.iva.yp-c.yandex.net [IPv6:2a02:6b8:c0c:5410:0:640:fb19:0]) by forward100c.mail.yandex.net (Yandex) with ESMTP id 1B3A1600C8; Fri, 2 Jun 2023 10:00:10 +0300 (MSK) Received: by mail-nwsmtp-smtp-production-main-59.iva.yp-c.yandex.net (smtp/Yandex) with ESMTPSA id jxIPnoDDSmI0-TZhR9jIh; Fri, 02 Jun 2023 10:00:09 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1685689209; bh=TKC3Xi4ujQC0qwOxUi2i/LhoS+Dbjriv6ZLqqr0awKE=; h=Message-Id:Date:In-Reply-To:Cc:Subject:References:To:From; b=nhrnQhT7/3wSQapAhD8QXXSzLOf8M13uxY/i6itbynJmoGeMLWM3B5yNRhZM52KaU jXNi+4fgj45BT09E7O+rpFDbkeFKIF2+xXn5z/NX/e164Y0GJxOwcQ6XvssdIBl5ud 2N9upcHS0gthM3JJ7Aw9EQ9L04UEKA+6lN+O0gJU= Authentication-Results: mail-nwsmtp-smtp-production-main-59.iva.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 2/2] [v2] wifi: rtlwifi: remove unused dualmac control leftovers Date: Fri, 2 Jun 2023 09:59:40 +0300 Message-Id: <20230602065940.149198-2-dmantipov@yandex.ru> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230602065940.149198-1-dmantipov@yandex.ru> References: <20230602052936.114649-1-dmantipov@yandex.ru> <20230602065940.149198-1-dmantipov@yandex.ru> 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()'. Signed-off-by: Dmitry Antipov --- v2: include into patchset (Ping-Ke Shih) --- 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