From patchwork Thu May 11 23:24:36 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Larry Finger X-Patchwork-Id: 9723243 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 26E5E6031B for ; Thu, 11 May 2017 23:25:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2417028738 for ; Thu, 11 May 2017 23:25:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 18ECA28745; Thu, 11 May 2017 23:25:12 +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 B7B1C28738 for ; Thu, 11 May 2017 23:25:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756753AbdEKXZJ (ORCPT ); Thu, 11 May 2017 19:25:09 -0400 Received: from mail-oi0-f68.google.com ([209.85.218.68]:36600 "EHLO mail-oi0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756635AbdEKXZF (ORCPT ); Thu, 11 May 2017 19:25:05 -0400 Received: by mail-oi0-f68.google.com with SMTP id w138so6428987oiw.3 for ; Thu, 11 May 2017 16:25:04 -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=o6sGvwx7GP3NxvadAZdNGxO1VJY1WYhqztgiUfD4M1k=; b=IeX6uJxlfTzoBfUAmJ+sUkaMNFTffpspMF+xyUxTeKvXgVQfjw01LTrSvhaeUu1ngr zgkQe0fX3V4AjvIOs8J8E2YboRTbC5t+E2Y5MchTiItvFtL2j2H2vfsD5mwry/kzH0h2 IG9a7kDn5lFLMdkqdW4/kxyRZ0sFiKHr+1Lo4QIfExBYNbnKsWUAXKGSliw0oS+fChdv rLYn2isnwpW/TS5n8pSZGdSkPvCnMmmvYQCY3XTL6wFb0GnTWT9e+w+IGaL0dMy5gGwm Ls1lQPI9UjDLGQB09hZgSQUYZJTOgeXDS2isbDFaZobLf0j9Ndpbzqh4rVNqSsQN4aSj 6s+g== 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=o6sGvwx7GP3NxvadAZdNGxO1VJY1WYhqztgiUfD4M1k=; b=ZLsKxZ9KlWlL9w3hfHB97FAsMoof7PThjxAjHWq8NiF8I7WDbQYaRxIwJxZll67mul Ee1PFIfpYrJ4nkK5raWU2paWaJmR9rpAlBo4cd1FNJhdkz9dwVBUknjx3lrM+cX5Ptwn qtqkXBtXuEMzxLL+Vdnf7zlNHiUMtIdGgKErWcRGRmzsoM+vyAKxyVogB32cBVadB6o+ VotT6ui/OytsYoOPOaYWZiAMnUjjUedDWSHzUY2lx1gDE4NF4Du5UYzxrwyj/TZvygIQ uJuo+PEJ69opEp5HaZ5bAYLQshWdjYLgvrjvasVEDDLcCzvelD4XorR51e08m0mKVEId yrxQ== X-Gm-Message-State: AODbwcCn1FrWcwA1nNmxsBMvITweAAdrYIOqEdKXN47SB589RBFrm8CN VlpYkX18EpTNdUwe X-Received: by 10.157.48.152 with SMTP id s24mr505454otc.166.1494545104348; Thu, 11 May 2017 16:25:04 -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 b67sm797950oif.7.2017.05.11.16.25.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 11 May 2017 16:25:03 -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 08/10] rtlwifi: btcoex: 21a 1ant: mark packet high priority when scanning Date: Thu, 11 May 2017 18:24:36 -0500 Message-Id: <20170511232438.23159-9-Larry.Finger@lwfinger.net> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20170511232438.23159-1-Larry.Finger@lwfinger.net> References: <20170511232438.23159-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 When the wifi notifies the coexistence it is going to scan, set the coex table to avoid issues when the scan result is empty. Signed-off-by: Yan-Hsuan Chuang Signed-off-by: Larry Finger Cc: Pkshih Cc: Birming Chiu Cc: Shaofu Cc: Steven Ting --- .../wireless/realtek/rtlwifi/btcoexist/halbtc8821a1ant.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8821a1ant.c b/drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8821a1ant.c index 3d77d6bb48b1..13063f61e1f4 100644 --- a/drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8821a1ant.c +++ b/drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8821a1ant.c @@ -2524,6 +2524,19 @@ void ex_btc8821a1ant_scan_notify(struct btc_coexist *btcoexist, u8 type) return; } + if (type == BTC_SCAN_START) { + coex_sta->wifi_is_high_pri_task = true; + RT_TRACE(rtlpriv, COMP_BT_COEXIST, DBG_LOUD, + "[BTCoex], SCAN START notify\n"); + + /* Force antenna setup for no scan result issue */ + btc8821a1ant_ps_tdma(btcoexist, FORCE_EXEC, false, 8); + } else { + coex_sta->wifi_is_high_pri_task = false; + RT_TRACE(rtlpriv, COMP_BT_COEXIST, DBG_LOUD, + "[BTCoex], SCAN FINISH notify\n"); + } + if (coex_sta->bt_disabled) return;