From patchwork Tue Jun 20 00:32:17 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Larry Finger X-Patchwork-Id: 9798297 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 06DAE60328 for ; Tue, 20 Jun 2017 00:32:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F003C26E51 for ; Tue, 20 Jun 2017 00:32:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E4F0D274D0; Tue, 20 Jun 2017 00:32:38 +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 9653726E51 for ; Tue, 20 Jun 2017 00:32:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752720AbdFTAch (ORCPT ); Mon, 19 Jun 2017 20:32:37 -0400 Received: from mail-oi0-f67.google.com ([209.85.218.67]:33009 "EHLO mail-oi0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752693AbdFTAce (ORCPT ); Mon, 19 Jun 2017 20:32:34 -0400 Received: by mail-oi0-f67.google.com with SMTP id j63so971365oiy.0 for ; Mon, 19 Jun 2017 17:32:34 -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=/bHFxBAMDPAtKzcFnrWGyjUMy+XXt5tdq7PhSXSzbv4=; b=VEXYGaYYkUY6Sw9QYvTI2M/+CAgo6jTYVusOkQ+QvwNb+kPaUxgpKwLAhby31TXExt yTnzXs+c5pO0L5bfOf434m3QuvQelmhPH/jV7U9iFv67u2+CG8jBj8oLQMxAjjMGav3w LVoepCpxFEmwWEXq6UjhtT8KNhZYyNqrAD11qPhp0XGmF7gqEYKM46rVwpWsJCL6foAs lr4lXiOulLRW/tkkIPLOxoyPubpH9G6BZW3OIYX5aVarZmpXUvWLarmKv0Av7Ycz/dve IcTVCV4xhy4f3c4cVI5nNOno01ctA47oXfwSKXzdq2xz7RwvsCQGyKmXxtBf8ImGWlC7 xAbQ== 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=/bHFxBAMDPAtKzcFnrWGyjUMy+XXt5tdq7PhSXSzbv4=; b=c82LNoDO1eVXpPpOthEMSCXD2wtT1kfDqEURMMUWn78qjzM1GR8mIboX+tFj0OtVeG SFc3oYSBpBPd46B5/HEe3+airHuC6/JDKbU8YgFEpmJSJ2ju6JI4T+qmftebs2Ci0Bq8 cJRG5uyO3aL5gxwJqUb6meQWaPKPotv2wVYHauhpMfbKM31Ym5NahF4wwwExwI7igtIW Pl5WaU/59KTns5YHbd6LQWK1FQPxzOt2xEMvcsl7Q2ykgc+k9w7X26VAjuMKS3Kt+4jr q9SXuzLmbfoeB9otD8DNZlgnRDBN4e4v68mAKYo5ThKAgFnctaLXvRlsq0yO9VNMB1wk CMYg== X-Gm-Message-State: AKS2vOxQGD0fItzIMljudpOJHAnzt8n40iV81wwV+SU9jVvX3yK9BqpH fxR1lpI/+c0Hyw== X-Received: by 10.202.72.212 with SMTP id v203mr14466792oia.118.1497918753794; Mon, 19 Jun 2017 17:32:33 -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 198sm5841023oii.16.2017.06.19.17.32.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 19 Jun 2017 17:32:33 -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 09/10] rtlwifi: Add in_4way field for btcoexist Date: Mon, 19 Jun 2017 19:32:17 -0500 Message-Id: <20170620003218.17010-10-Larry.Finger@lwfinger.net> X-Mailer: git-send-email 2.12.3 In-Reply-To: <20170620003218.17010-1-Larry.Finger@lwfinger.net> References: <20170620003218.17010-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 If wifi is in 4way, btcoex give wifi higher priority to use antenna. 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.c | 3 +-- drivers/net/wireless/realtek/rtlwifi/wifi.h | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtcoutsrc.c b/drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtcoutsrc.c index 9dbb35f190d1..e6024b013ca5 100644 --- a/drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtcoutsrc.c +++ b/drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtcoutsrc.c @@ -428,8 +428,7 @@ static bool halbtc_get(void *void_btcoexist, u8 get_type, void *out_buf) *bool_tmp = false; break; case BTC_GET_BL_WIFI_4_WAY_PROGRESS: - /* TODO */ - *bool_tmp = false; + *bool_tmp = rtlpriv->btcoexist.btc_info.in_4way; break; case BTC_GET_BL_WIFI_UNDER_5G: if (rtlhal->current_bandtype == BAND_ON_5G) diff --git a/drivers/net/wireless/realtek/rtlwifi/wifi.h b/drivers/net/wireless/realtek/rtlwifi/wifi.h index 98183dc707aa..fb1ebb01133f 100644 --- a/drivers/net/wireless/realtek/rtlwifi/wifi.h +++ b/drivers/net/wireless/realtek/rtlwifi/wifi.h @@ -2484,6 +2484,7 @@ struct rtl_btc_info { u8 single_ant_path; u8 ap_num; + bool in_4way; }; struct bt_coexist_info {