From patchwork Sun Apr 16 19:04:25 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Larry Finger X-Patchwork-Id: 9683085 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 C76C860138 for ; Sun, 16 Apr 2017 19:04:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BBB5C2793A for ; Sun, 16 Apr 2017 19:04:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B084B27DA4; Sun, 16 Apr 2017 19:04:46 +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=-4.6 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID, URIBL_BLACK 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 5606C2793A for ; Sun, 16 Apr 2017 19:04:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756700AbdDPTEo (ORCPT ); Sun, 16 Apr 2017 15:04:44 -0400 Received: from mail-oi0-f68.google.com ([209.85.218.68]:35007 "EHLO mail-oi0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756663AbdDPTEl (ORCPT ); Sun, 16 Apr 2017 15:04:41 -0400 Received: by mail-oi0-f68.google.com with SMTP id a21so8126844oic.2 for ; Sun, 16 Apr 2017 12:04:40 -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=Xf+81Tl3TOjeG5Tkq6H6pzqNxFc/a+vKhxODqYmKpRU=; b=NJpUpVjoAn/LpJIudOsF+2Aam9N6Dl7n+3VOQ6JqFacetJ1tnGcAY44jDUds+p0iZr LyIgv5L2eN13q27CcTMLwoYJZznddFpaCH3AHW8XQWksqEbeW5PA2q4sXos/kJPEyPBT M0Iof923m1ybyaWsI0X6j94TBzzGx/uJy4xZ7lQ4W4UX5HHBBve1iRfCq/61fyHDTmbV W57qMX5mpmyVmfbCWplQQGNEqldru3b4GkapiPYQqDhNLC4W6fLlqJp+5FSlvAUdlEcd zt//6nWTJVbejx2HMs7ax4em8ZYAJlHBIp/uh96tBh88ewEQkatHy8YNWYTgg0N5Ni0k gueQ== 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=Xf+81Tl3TOjeG5Tkq6H6pzqNxFc/a+vKhxODqYmKpRU=; b=pIliWbrfZKK6QU+a2ALiKtY+Hhh3yNzn+iuulr4y4ZDcrn2z0c8Kekprv00Xy65W/E Z7eqgjDzN058LFwx83WN6BQNPUQodqwNet3grtsqGNlnHPNqWtNWWgyLTjmsDdauVdGs QOL3ieIDUjDxJA/8JqWSiOWPRkNJEB/ZSlLcr5Wbn4EdFNHb84dACIz6pNTW6NJDWeH5 A9BQaCDGTemEWdN3AgEJFapbP5uNln8ZMONChWyHaW8wqCpy8FJtSCyxs19SFyJcBMJs rD4TwXM04DdVRG5Z73bdbmnNGhjUrMVueHlWrZ0yvQmnGuvux/vAu+Tp2a6IupXy1TkA cblw== X-Gm-Message-State: AN3rC/4IchftuO142lCxYh75RMSu1DOin/fYl7t205G6KqCV1GrbY4pp fK18uwGvg5oG+til X-Received: by 10.157.40.116 with SMTP id h49mr3554005otd.184.1492369480220; Sun, 16 Apr 2017 12:04:40 -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 y185sm3709022oig.1.2017.04.16.12.04.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 16 Apr 2017 12:04:39 -0700 (PDT) From: Larry Finger To: kvalo@codeaurora.org Cc: linux-wireless@vger.kernel.org, Yan-Hsuan Chuang , Larry Finger , Pkshih , Birming Chiu , Shaofu , Steven Ting Subject: [PATCH 07/10] rtlwifi: btcoex: 21a 2ant: init wlan when leave ips Date: Sun, 16 Apr 2017 14:04:25 -0500 Message-Id: <20170416190428.23857-8-Larry.Finger@lwfinger.net> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20170416190428.23857-1-Larry.Finger@lwfinger.net> References: <20170416190428.23857-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 From: Yan-Hsuan Chuang If the wifi is leaving ips, re-init the coex mechanisms, and before it is going into ips, the bt can just ignore the wifi activities. Signed-off-by: Yan-Hsuan Chuang Signed-off-by: Larry Finger Cc: Pkshih Cc: Birming Chiu Cc: Shaofu Cc: Steven Ting --- drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8821a2ant.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8821a2ant.c b/drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8821a2ant.c index 56972d36fe84..531598366327 100644 --- a/drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8821a2ant.c +++ b/drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8821a2ant.c @@ -3899,11 +3899,15 @@ void ex_btc8821a2ant_ips_notify(struct btc_coexist *btcoexist, u8 type) "[BTCoex], IPS ENTER notify\n"); coex_sta->under_ips = true; btc8821a2ant_wifi_off_hw_cfg(btcoexist); + btc8821a2ant_ignore_wlan_act(btcoexist, FORCE_EXEC, true); btc8821a2ant_coex_all_off(btcoexist); } else if (BTC_IPS_LEAVE == type) { RT_TRACE(rtlpriv, COMP_BT_COEXIST, DBG_LOUD, "[BTCoex], IPS LEAVE notify\n"); coex_sta->under_ips = false; + ex_btc8821a2ant_init_hwconfig(btcoexist); + btc8821a2ant_init_coex_dm(btcoexist); + btc8821a2ant_query_bt_info(btcoexist); } }