From patchwork Sun Jun 18 16:12:39 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Larry Finger X-Patchwork-Id: 9794911 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 92A35601C8 for ; Sun, 18 Jun 2017 16:13:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 849C4283AF for ; Sun, 18 Jun 2017 16:13:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7816428453; Sun, 18 Jun 2017 16:13:04 +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.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,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 196D327FA9 for ; Sun, 18 Jun 2017 16:13:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753160AbdFRQM5 (ORCPT ); Sun, 18 Jun 2017 12:12:57 -0400 Received: from mail-ot0-f194.google.com ([74.125.82.194]:36445 "EHLO mail-ot0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753111AbdFRQMz (ORCPT ); Sun, 18 Jun 2017 12:12:55 -0400 Received: by mail-ot0-f194.google.com with SMTP id r67so9070833ota.3 for ; Sun, 18 Jun 2017 09:12:55 -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=iK30wjc3mkRDDe8VQyo8zs3LXYfmwO5MvilbjjEC5lA=; b=A16xuCN/5F5yCl0KN+OwXt59Vr7TuSXnMHeqv9VAH+DTp8BsygR5t44RuJNu5nUAhW vGBTKb6jnHwtddKTSeXYPtiewmbWNTZY6j2x1Jtt0tsjc68hBvRXmbJfnCW3wGeMKd7c ooAb0gU/CRTkdfOIrvzucFywvPELYUawI13oylO3kARnL4i92lZYzLl1tzXHKSscQnjs acMmvVjhN8nMfi7+wvvxME/+Lbp5sIvc1RD6IbIfHMmRRGNkTmIZs1t2jYjg9iG25El6 uWYeYqumGM86ZnavFnU5mhIEnRO+0edUkxfQonnlIgS4Bo/ZPv8uHtrUMcpWnGcmw+Mh aBhQ== 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=iK30wjc3mkRDDe8VQyo8zs3LXYfmwO5MvilbjjEC5lA=; b=mRUcnsFVuhmC6SVs0EUbIECBuhBlqfZjeSp+Knf9LosASmEdF98D+xJCqVdHxrfEVr YiRngFAWgvd6Q98a6HMMIbMwF3eR7SMNkaHoVWvaHMzlTLfTDU9ctdfFpEw/4sDbmTo+ GubtUu+bN4iM8MsgpgVdgY3NnyueqVyg2wbu/iE6E+5G6xPjll1esLWhaN7d4cy3NgOR CdRWQF92jf9Np9SHm2D4V7Z6aqTRDRpDzJybCQIkM8YpSiqtAzH2ubYG08ULe+lL8RgK nzbwBXS96LFe7V+4jCJ+hmldVGBr3x0LGTTmcbzCowBJayaWHR4r9X0qu1rMWvmK54Yl exug== X-Gm-Message-State: AKS2vOy3bNuW83jODssS5oZ2dpcMLL8PAYsInmyKLIvsZwq9g/W9lp81 1k6KuWwSpx5Q/w== X-Received: by 10.157.23.133 with SMTP id j5mr2493025otj.26.1497802375160; Sun, 18 Jun 2017 09:12:55 -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 s41sm4473985ots.54.2017.06.18.09.12.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 18 Jun 2017 09:12:54 -0700 (PDT) From: Larry Finger To: kvalo@codeaurora.org Cc: linux-wireless@vger.kernel.org, Ping-Ke Shih , Larry Finger , Yan-Hsuan Chuang , Birming Chiu , Shaofu , Steven Ting Subject: [PATCH 01/11] rtlwifi: btcoex: call bind to setup btcoex Date: Sun, 18 Jun 2017 11:12:39 -0500 Message-Id: <20170618161249.6146-2-Larry.Finger@lwfinger.net> X-Mailer: git-send-email 2.12.3 In-Reply-To: <20170618161249.6146-1-Larry.Finger@lwfinger.net> References: <20170618161249.6146-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: Ping-Ke Shih New btcoex add a function 'bind' to connect adapter, so we should call it during initializing. Signed-off-by: Ping-Ke Shih Signed-off-by: Larry Finger Cc: Yan-Hsuan Chuang Cc: Birming Chiu Cc: Shaofu Cc: Steven Ting --- drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtcoutsrc.h | 1 + drivers/net/wireless/realtek/rtlwifi/btcoexist/rtl_btc.c | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtcoutsrc.h b/drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtcoutsrc.h index 32cbbd0595ed..21d39973feab 100644 --- a/drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtcoutsrc.h +++ b/drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtcoutsrc.h @@ -600,6 +600,7 @@ bool halbtc_is_wifi_uplink(struct rtl_priv *adapter); extern struct btc_coexist gl_bt_coexist; bool exhalbtc_initlize_variables(void); +bool exhalbtc_bind_bt_coex_withadapter(void *adapter); void exhalbtc_init_hw_config(struct btc_coexist *btcoexist); void exhalbtc_init_coex_dm(struct btc_coexist *btcoexist); void exhalbtc_ips_notify(struct btc_coexist *btcoexist, u8 type); diff --git a/drivers/net/wireless/realtek/rtlwifi/btcoexist/rtl_btc.c b/drivers/net/wireless/realtek/rtlwifi/btcoexist/rtl_btc.c index 3ab0cfe26513..7d4a94efe260 100644 --- a/drivers/net/wireless/realtek/rtlwifi/btcoexist/rtl_btc.c +++ b/drivers/net/wireless/realtek/rtlwifi/btcoexist/rtl_btc.c @@ -50,6 +50,7 @@ static struct rtl_btc_ops rtl_btc_operation = { void rtl_btc_init_variables(struct rtl_priv *rtlpriv) { exhalbtc_initlize_variables(); + exhalbtc_bind_bt_coex_withadapter(rtlpriv); } void rtl_btc_init_hal_vars(struct rtl_priv *rtlpriv)