From patchwork Mon Apr 17 00:06:51 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Larry Finger X-Patchwork-Id: 9683299 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 AD0DE60388 for ; Mon, 17 Apr 2017 00:07:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9EDF127DA4 for ; Mon, 17 Apr 2017 00:07:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9394627D5E; Mon, 17 Apr 2017 00:07:25 +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 1505A26E73 for ; Mon, 17 Apr 2017 00:07:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757007AbdDQAHO (ORCPT ); Sun, 16 Apr 2017 20:07:14 -0400 Received: from mail-oi0-f67.google.com ([209.85.218.67]:34150 "EHLO mail-oi0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756917AbdDQAHJ (ORCPT ); Sun, 16 Apr 2017 20:07:09 -0400 Received: by mail-oi0-f67.google.com with SMTP id t14so15960344oif.1 for ; Sun, 16 Apr 2017 17:07:09 -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=l0mitBsCnGWgpn5uBX4Cf2c290b+BEGgGQ+xewhba5M=; b=Cv3dyGaAYPwnpO4y1NNp4Www6TNc4+lVwDfH807Gv6CIxReEjUnWl5nzwEnpTJOF/C qQOzWrhXQ6EP6VMYNXFF1tGCfbdVbaT3QlnZaAsKzxIM9tmaEcsPDQNJOGTKbe4j0d7Y yXU1VPImfvZaTFj4qZwdmBJXql+gbxp73ijUtxuJYKhDfoP2L87nQ/YTKqBP2fxFLZ8H ARMxvC0z1WVywrQy1cp8uQCIGg+yoIZb+tNdTi6tkyQukaV2MUyI2rzLCcmm2j4X1dnO bg7l3vdkZym7jF61ly+b28Q7aSXCAin1MLBEhGWmoIoPAdvfW2N72bob404go7bBH1im ChcQ== 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=l0mitBsCnGWgpn5uBX4Cf2c290b+BEGgGQ+xewhba5M=; b=BC+CAcn9sobbQV3Gge4ZBNDp4wTR/3dckBIfwQgR15nX/l15wZQHhCEEdhNPdVO8MC SblLN4z1K7mgHFzJI4ZYBrwhDHmI8FgjXF3k1SaAc87kQkAKt+7rolQgglcurdMOmLzA 9eSr1EqoM1n8o9OTKIFPi32KR3ia2YVIyiVvQ+CON9+V8b5A5gP+KmbrC7GCFs+iqJHt i7gWaeUaa0GEjtqIzlRkan5DySffXqEBjDcpWqtqAFWrLA5fq0us7rw5/RW4/TrCVfj0 WERd5Y1/rSbdFcxsair/w0ih70BlRlWEvDNrIZxkDKfNNPxpB0sKb8tDCZoLm4/ANdpv kmZA== X-Gm-Message-State: AN3rC/5ZIuaWypPw4mWCjWALQzbPjVCLCn09Hqo1GjIwSFZbrEX79bl0 eXDo9pP6eTkqHg== X-Received: by 10.202.81.151 with SMTP id f145mr3273306oib.164.1492387628973; Sun, 16 Apr 2017 17:07:08 -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 v49sm3963286otb.13.2017.04.16.17.07.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 16 Apr 2017 17:07:08 -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 04/13] rtlwifi: btcoex: 21a 1ant: react to special packet when wifi is not scanning Date: Sun, 16 Apr 2017 19:06:51 -0500 Message-Id: <20170417000700.29057-5-Larry.Finger@lwfinger.net> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20170417000700.29057-1-Larry.Finger@lwfinger.net> References: <20170417000700.29057-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 wifi is not scanning, there may have some special and important packets such as DHCP or EAPOL or ARP packets. Set tdma and coex table to take care of them. 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/halbtc8821a1ant.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8821a1ant.c b/drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8821a1ant.c index 4b405331d82f..51dfa94a9cc7 100644 --- a/drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8821a1ant.c +++ b/drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8821a1ant.c @@ -1799,7 +1799,11 @@ static void btc8821a1ant_action_wifi_connected(struct btc_coexist *btcoexist) btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_LINK, &link); btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_ROAM, &roam); if (scan || link || roam) { - btc8821a1ant_action_wifi_connected_scan(btcoexist); + if (scan) + btc8821a1ant_action_wifi_connected_scan(btcoexist); + else + btc8821a1ant_act_wifi_conn_sp_pkt(btcoexist); + RT_TRACE(rtlpriv, COMP_BT_COEXIST, DBG_LOUD, "[BTCoex], CoexForWifiConnect(), return for wifi is under scan<===\n"); return;