staging: rtl8723au: Remove some CONFIG_8723AU_BT_COEXIST clutter
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
1af4072b44
commit
ef95e276a8
1 changed files with 13 additions and 15 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue