From patchwork Fri May 26 18:41:46 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Larry Finger X-Patchwork-Id: 9750985 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 549E760209 for ; Fri, 26 May 2017 18:42:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4884328294 for ; Fri, 26 May 2017 18:42:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3D687283D9; Fri, 26 May 2017 18:42:13 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E1EA028294 for ; Fri, 26 May 2017 18:42:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1948611AbdEZSmL (ORCPT ); Fri, 26 May 2017 14:42:11 -0400 Received: from mail-oi0-f65.google.com ([209.85.218.65]:33502 "EHLO mail-oi0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1948603AbdEZSmB (ORCPT ); Fri, 26 May 2017 14:42:01 -0400 Received: by mail-oi0-f65.google.com with SMTP id h4so2993362oib.0 for ; Fri, 26 May 2017 11:42:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=207k/GxK/ocg+j8X+HALhtgK1X0raIyAwjzh64LMiWE=; b=MHSaSeLDFuKRKb+bW9iM8na2FES4e9Mx3QR8tcxK4q+iGQ8NTuDMsyv1OtcQFIsOcJ dkv2fnbdmtIpWIkRq+LVmiR+IiGIUBDAOraDx2+J0ykSJD5tJItxIPNMzdOqscB4SrFH N70AFX8f5tl4vhHM6JPYPRaoJFiHpo/IvynoxI0SVFvNlDL/MYEFH6udFLZDagEY7CuC vccyT1gB1XyHuF90tuePCtQahRHRihGeiqSodgFV83yhE2Ljr2NxMxMDvT45O2cIoePX vhvUjcS3zABK7cepdCuuRKMVAKFigsTL+tqS2opQCXlYB2HKJ9YSXCMQb5sJ3xSpHsAV m59A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=207k/GxK/ocg+j8X+HALhtgK1X0raIyAwjzh64LMiWE=; b=kpBMy8tsT2IU4R6L/PJ2n+Nk8BBU9ye9kaTF9krkuLhpwPwpr6DqyzbEm1aVfMHSTk 01j/RzcVrTIUbqVJR4CEeWorA0esd/G0wk+DQDDLABWfwOMsFFBEfOinr0h8sXZlmAVE yUM4kj1Qlk420Yq/xX3+LO7qQLgLZU1CgXqSxmF4Y1xWjlDiM2+JP1YAoJZ6oNkC96fo aFLzn2wSpIz4HBHJMGqhfRSAZhXoF/1Di500Ej7DzZ3AlqRWce+5z+TS3vwqtJVWbjXw PwSC9mhP+q1hDe+1YCsaFzszD0ME07Rku1NCg/+kRM//AhkaC2vmsRfyzFEh+ODNvee1 D5xA== X-Gm-Message-State: AODbwcA9gQilMJJG/aGUfW2k/CV34Yp/taa7jmreyYhPLg07OkpDwkgq Da/lUPXvHX3xuA== X-Received: by 10.202.4.144 with SMTP id 138mr1360747oie.105.1495824120862; Fri, 26 May 2017 11:42:00 -0700 (PDT) Received: from linux-4v1g.suse (cpe-24-31-249-175.kc.res.rr.com. [24.31.249.175]) by smtp.gmail.com with ESMTPSA id c50sm665528ote.29.2017.05.26.11.42.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 26 May 2017 11:42:00 -0700 (PDT) From: Larry Finger To: kvalo@codeaurora.org Cc: linux-wireless@vger.kernel.org, Larry Finger , Yan-Hsuan Chuang , Ping-Ke Shih , Birming Chiu , Shaofu , Steven Ting Subject: [PATCH v2 6/7] rtlwifi: btcoex: Fix logic error in 21a 1ant Date: Fri, 26 May 2017 13:41:46 -0500 Message-Id: <20170526184147.31239-7-Larry.Finger@lwfinger.net> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20170526184147.31239-1-Larry.Finger@lwfinger.net> References: <20170526184147.31239-1-Larry.Finger@lwfinger.net> Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP An edit mistake introduced a logic error. Signed-off-by: Larry Finger Cc: Yan-Hsuan Chuang Cc: Ping-Ke Shih Cc: Birming Chiu Cc: Shaofu Cc: Steven Ting --- v2 - no changes --- drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8821a1ant.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8821a1ant.c b/drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8821a1ant.c index 2740129a86cd..30364966b938 100644 --- a/drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8821a1ant.c +++ b/drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8821a1ant.c @@ -1613,7 +1613,7 @@ static void btc8821a1ant_act_wifi_con_bt_acl_busy(struct btc_coexist *btcoexist, btc8821a1ant_coex_table_with_type(btcoexist, NORMAL_EXEC, 1); coex_dm->auto_tdma_adjust = false; - } else if ((bt_rssi_state != BTC_RSSI_STATE_HIGH) && + } else if ((bt_rssi_state == BTC_RSSI_STATE_HIGH) || (bt_rssi_state == BTC_RSSI_STATE_STAY_HIGH)) { btc8821a1ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 14); btc8821a1ant_coex_table_with_type(btcoexist,