]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
staging: rtl8723au: Remove some CONFIG_8723AU_BT_COEXIST clutter
authorJes Sorensen <Jes.Sorensen@redhat.com>
Sun, 25 May 2014 20:43:26 +0000 (22:43 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 25 May 2014 22:14:42 +0000 (15:14 -0700)
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723au/core/rtw_cmd.c

index db97ffb989c1e3ff9f2dfc4a182a95d9adafab6e..e4caa3f8e701668424f692fdd5355683cf80e9a7 100644 (file)
@@ -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);