Commit ef95e276 authored by Jes Sorensen's avatar Jes Sorensen Committed by Greg Kroah-Hartman

staging: rtl8723au: Remove some CONFIG_8723AU_BT_COEXIST clutter

Signed-off-by: default avatarJes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 1af4072b
......@@ -990,23 +990,21 @@ static void traffic_status_watchdog(struct rtw_adapter *padapter)
bHigherBusyTxTraffic = true;
}
#ifdef CONFIG_8723AU_BT_COEXIST
if (rtl8723a_BT_using_antenna_1(padapter) == false)
#endif
{
if (!rtl8723a_BT_coexist(padapter) ||
!rtl8723a_BT_using_antenna_1(padapter)) {
/* check traffic for powersaving. */
if (((pmlmepriv->LinkDetectInfo.NumRxUnicastOkInPeriod +
pmlmepriv->LinkDetectInfo.NumTxOkInPeriod) > 8) ||
(pmlmepriv->LinkDetectInfo.NumRxUnicastOkInPeriod > 2))
bEnterPS = false;
else
bEnterPS = true;
if (((pmlmepriv->LinkDetectInfo.NumRxUnicastOkInPeriod +
pmlmepriv->LinkDetectInfo.NumTxOkInPeriod) > 8) ||
pmlmepriv->LinkDetectInfo.NumRxUnicastOkInPeriod >2)
bEnterPS = false;
else
bEnterPS = true;
/* LeisurePS only work in infra mode. */
if (bEnterPS)
LPS_Enter23a(padapter);
else
LPS_Leave23a(padapter);
/* LeisurePS only work in infra mode. */
if (bEnterPS)
LPS_Enter23a(padapter);
else
LPS_Leave23a(padapter);
}
} else
LPS_Leave23a(padapter);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment