mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-03 01:36:52 +09:00
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:
committed by
Greg Kroah-Hartman
parent
1af4072b44
commit
ef95e276a8
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user