From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from smtp.codeaurora.org ([198.145.29.96]:58202 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932385AbdEKLyL (ORCPT ); Thu, 11 May 2017 07:54:11 -0400 From: Kalle Valo To: Larry Finger Cc: linux-wireless@vger.kernel.org, Yan-Hsuan Chuang , Pkshih , Birming Chiu , Shaofu , Steven Ting Subject: Re: [PATCH v2 06/10] rtlwifi: btcoex: 21a 2ant: run mechanism if status changes or auto adjust is set References: <20170505161712.8685-1-Larry.Finger@lwfinger.net> <20170505161712.8685-7-Larry.Finger@lwfinger.net> Date: Thu, 11 May 2017 14:54:05 +0300 In-Reply-To: <20170505161712.8685-7-Larry.Finger@lwfinger.net> (Larry Finger's message of "Fri, 5 May 2017 11:17:08 -0500") Message-ID: <8760h7vcbm.fsf@kamboji.qca.qualcomm.com> (sfid-20170511_135505_287141_7BEA6E00) MIME-Version: 1.0 Content-Type: text/plain Sender: linux-wireless-owner@vger.kernel.org List-ID: Larry Finger writes: > From: Yan-Hsuan Chuang > > The driver will periodically ask the coex, and the coex only runs the > mechanism when the status was changed or the auto adjust is set. > > Signed-off-by: Yan-Hsuan Chuang > Signed-off-by: Larry Finger > Cc: Pkshih > Cc: Birming Chiu > Cc: Shaofu > Cc: Steven Ting [...] > +#ifdef BT_AUTO_REPORT_ONLY_8821A_2ANT > btc8821a2ant_query_bt_info(btcoexist); > +#else > btc8821a2ant_monitor_bt_ctr(btcoexist); > btc8821a2ant_monitor_wifi_ctr(btcoexist); > + > + if (btc8821a2ant_is_wifi_status_changed(btcoexist) || > + coex_dm->auto_tdma_adjust) > + btc8821a2ant_run_coexist_mechanism(btcoexist); > +#endif Isn't this adding dead code again? -- Kalle Valo