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

staging: rtl8723au: Remove a bunch of always true #ifdefs

Signed-off-by: default avatarJes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 1509864c
...@@ -100,7 +100,6 @@ enum { ...@@ -100,7 +100,6 @@ enum {
/* power saving */ /* power saving */
#ifdef __BT_C__ /* COMMOM/BT.c */
/* ===== Below this line is sync from SD7 driver COMMOM/BT.c ===== */ /* ===== Below this line is sync from SD7 driver COMMOM/BT.c ===== */
static u8 BT_Operation(struct rtw_adapter *padapter) static u8 BT_Operation(struct rtw_adapter *padapter)
...@@ -177,15 +176,6 @@ void BT_LpsLeave(struct rtw_adapter *padapter) ...@@ -177,15 +176,6 @@ void BT_LpsLeave(struct rtw_adapter *padapter)
} }
/* ===== End of sync from SD7 driver COMMOM/BT.c ===== */ /* ===== End of sync from SD7 driver COMMOM/BT.c ===== */
#endif
#ifdef __BT_HANDLEPACKET_C__ /* COMMOM/bt_handlepacket.c */
/* ===== Below this line is sync from SD7 driver COMMOM/bt_handlepacket.c ===== */
/* ===== End of sync from SD7 driver COMMOM/bt_handlepacket.c ===== */
#endif
#ifdef __BT_HCI_C__ /* COMMOM/bt_hci.c */
#define i64fmt "ll" #define i64fmt "ll"
#define UINT64_C(v) (v) #define UINT64_C(v) (v)
...@@ -5213,9 +5203,6 @@ BTHCI_HandleHCICMD( ...@@ -5213,9 +5203,6 @@ BTHCI_HandleHCICMD(
} }
/* ===== End of sync from SD7 driver COMMOM/bt_hci.c ===== */ /* ===== End of sync from SD7 driver COMMOM/bt_hci.c ===== */
#endif
#ifdef __HALBTC87231ANT_C__ /* HAL/BTCoexist/HalBtc87231Ant.c */
static const char *const BtStateString[] = { static const char *const BtStateString[] = {
"BT_DISABLED", "BT_DISABLED",
...@@ -6511,9 +6498,7 @@ void BTDM_1AntBtCoexist8723A(struct rtw_adapter *padapter) ...@@ -6511,9 +6498,7 @@ void BTDM_1AntBtCoexist8723A(struct rtw_adapter *padapter)
} }
/* ===== End of sync from SD7 driver HAL/BTCoexist/HalBtc87231Ant.c ===== */ /* ===== End of sync from SD7 driver HAL/BTCoexist/HalBtc87231Ant.c ===== */
#endif
#ifdef __HALBTC87232ANT_C__ /* HAL/BTCoexist/HalBtc87232Ant.c */
/* ===== Below this line is sync from SD7 driver HAL/BTCoexist/HalBtc87232Ant.c ===== */ /* ===== Below this line is sync from SD7 driver HAL/BTCoexist/HalBtc87232Ant.c ===== */
/* local function start with btdm_ */ /* local function start with btdm_ */
...@@ -8993,9 +8978,7 @@ void BTDM_2AntBtCoexist8723A(struct rtw_adapter *padapter) ...@@ -8993,9 +8978,7 @@ void BTDM_2AntBtCoexist8723A(struct rtw_adapter *padapter)
} }
/* ===== End of sync from SD7 driver HAL/BTCoexist/HalBtc87232Ant.c ===== */ /* ===== End of sync from SD7 driver HAL/BTCoexist/HalBtc87232Ant.c ===== */
#endif
#ifdef __HALBTC8723_C__ /* HAL/BTCoexist/HalBtc8723.c */
/* ===== Below this line is sync from SD7 driver HAL/BTCoexist/HalBtc8723.c ===== */ /* ===== Below this line is sync from SD7 driver HAL/BTCoexist/HalBtc8723.c ===== */
static u8 btCoexDbgBuf[BT_TMP_BUF_SIZE]; static u8 btCoexDbgBuf[BT_TMP_BUF_SIZE];
...@@ -9876,9 +9859,7 @@ static void BTDM_BTCoexist8723A(struct rtw_adapter *padapter) ...@@ -9876,9 +9859,7 @@ static void BTDM_BTCoexist8723A(struct rtw_adapter *padapter)
} }
/* ===== End of sync from SD7 driver HAL/BTCoexist/HalBtc8723.c ===== */ /* ===== End of sync from SD7 driver HAL/BTCoexist/HalBtc8723.c ===== */
#endif
#ifdef __HALBTCCSR1ANT_C__ /* HAL/BTCoexist/HalBtcCsr1Ant.c */
/* ===== Below this line is sync from SD7 driver HAL/BTCoexist/HalBtcCsr1Ant.c ===== */ /* ===== Below this line is sync from SD7 driver HAL/BTCoexist/HalBtcCsr1Ant.c ===== */
/* local function start with btdm_ */ /* local function start with btdm_ */
...@@ -10065,9 +10046,7 @@ void BTDM_CheckBTIdleChange1Ant(struct rtw_adapter *padapter) ...@@ -10065,9 +10046,7 @@ void BTDM_CheckBTIdleChange1Ant(struct rtw_adapter *padapter)
} }
/* ===== End of sync from SD7 driver HAL/BTCoexist/HalBtcCsr1Ant.c ===== */ /* ===== End of sync from SD7 driver HAL/BTCoexist/HalBtcCsr1Ant.c ===== */
#endif
#ifdef __HALBTCCSR2ANT_C__ /* HAL/BTCoexist/HalBtcCsr2Ant.c */
/* ===== Below this line is sync from SD7 driver HAL/BTCoexist/HalBtcCsr2Ant.c ===== */ /* ===== Below this line is sync from SD7 driver HAL/BTCoexist/HalBtcCsr2Ant.c ===== */
/* local function start with btdm_ */ /* local function start with btdm_ */
...@@ -10122,9 +10101,7 @@ BTDM_DiminishWiFi( ...@@ -10122,9 +10101,7 @@ BTDM_DiminishWiFi(
} }
/* ===== End of sync from SD7 driver HAL/BTCoexist/HalBtcCsr2Ant.c ===== */ /* ===== End of sync from SD7 driver HAL/BTCoexist/HalBtcCsr2Ant.c ===== */
#endif
#ifdef __HALBTCOEXIST_C__ /* HAL/BTCoexist/HalBtCoexist.c */
/* ===== Below this line is sync from SD7 driver HAL/BTCoexist/HalBtCoexist.c ===== */ /* ===== Below this line is sync from SD7 driver HAL/BTCoexist/HalBtCoexist.c ===== */
/* local function */ /* local function */
...@@ -11260,9 +11237,7 @@ u8 BTDM_IsBtDisabled(struct rtw_adapter *padapter) ...@@ -11260,9 +11237,7 @@ u8 BTDM_IsBtDisabled(struct rtw_adapter *padapter)
} }
/* ===== End of sync from SD7 driver HAL/BTCoexist/HalBtCoexist.c ===== */ /* ===== End of sync from SD7 driver HAL/BTCoexist/HalBtCoexist.c ===== */
#endif
#ifdef __HALBT_C__ /* HAL/HalBT.c */
/* ===== Below this line is sync from SD7 driver HAL/HalBT.c ===== */ /* ===== Below this line is sync from SD7 driver HAL/HalBT.c ===== */
/* */ /* */
...@@ -11379,4 +11354,3 @@ void HALBT_SetRtsCtsNoLenLimit(struct rtw_adapter *padapter) ...@@ -11379,4 +11354,3 @@ void HALBT_SetRtsCtsNoLenLimit(struct rtw_adapter *padapter)
} }
/* ===== End of sync from SD7 driver HAL/HalBT.c ===== */ /* ===== End of sync from SD7 driver HAL/HalBT.c ===== */
#endif
...@@ -19,19 +19,6 @@ ...@@ -19,19 +19,6 @@
#include "odm_precomp.h" #include "odm_precomp.h"
#define __BT_C__ 1
#define __BT_HANDLEPACKET_C__ 1
#define __BT_HCI_C__ 1
#define __HALBTC87231ANT_C__ 1
#define __HALBTC87232ANT_C__ 1
#define __HALBTC8723_C__ 1
#define __HALBTCCSR1ANT_C__ 1
#define __HALBTCCSR2ANT_C__ 1
#define __HALBTCOEXIST_C__ 1
#define __HALBT_C__ 1
#ifdef __BT_C__ /* COMMON/BT.h */
/* HEADER/PlatformDef.h */ /* HEADER/PlatformDef.h */
enum rt_media_status { enum rt_media_status {
RT_MEDIA_DISCONNECT = 0, RT_MEDIA_DISCONNECT = 0,
...@@ -55,9 +42,6 @@ void BT_LpsLeave(struct rtw_adapter * padapter); ...@@ -55,9 +42,6 @@ void BT_LpsLeave(struct rtw_adapter * padapter);
#define BT_HsConnectionEstablished(Adapter) false #define BT_HsConnectionEstablished(Adapter) false
/* ===== End of sync from SD7 driver COMMON/BT.h ===== */ /* ===== End of sync from SD7 driver COMMON/BT.h ===== */
#endif /* __BT_C__ */
#ifdef __BT_HCI_C__ /* COMMON/bt_hci.h */
/* HEADER/SecurityType.h */ /* HEADER/SecurityType.h */
#define TKIP_ENC_KEY_POS 32 /* KEK_LEN+KEK_LEN) */ #define TKIP_ENC_KEY_POS 32 /* KEK_LEN+KEK_LEN) */
...@@ -1132,9 +1116,7 @@ void BTHCI_DisconnectAll(struct rtw_adapter * padapter); ...@@ -1132,9 +1116,7 @@ void BTHCI_DisconnectAll(struct rtw_adapter * padapter);
enum hci_status BTHCI_HandleHCICMD(struct rtw_adapter * padapter, struct packet_irp_hcicmd_data *pHciCmd); enum hci_status BTHCI_HandleHCICMD(struct rtw_adapter * padapter, struct packet_irp_hcicmd_data *pHciCmd);
/* ===== End of sync from SD7 driver COMMON/bt_hci.h ===== */ /* ===== End of sync from SD7 driver COMMON/bt_hci.h ===== */
#endif /* __BT_HCI_C__ */
#ifdef __HALBTC87231ANT_C__ /* HAL/BTCoexist/HalBtc87231Ant.h */
/* ===== Below this line is sync from SD7 driver HAL/BTCoexist/HalBtc87231Ant.h ===== */ /* ===== Below this line is sync from SD7 driver HAL/BTCoexist/HalBtc87231Ant.h ===== */
#define GET_BT_INFO(padapter) (&GET_HAL_DATA(padapter)->BtInfo) #define GET_BT_INFO(padapter) (&GET_HAL_DATA(padapter)->BtInfo)
...@@ -1191,9 +1173,7 @@ void BTDM_1AntForDhcp(struct rtw_adapter * padapter); ...@@ -1191,9 +1173,7 @@ void BTDM_1AntForDhcp(struct rtw_adapter * padapter);
void BTDM_1AntBtCoexist8723A(struct rtw_adapter * padapter); void BTDM_1AntBtCoexist8723A(struct rtw_adapter * padapter);
/* ===== End of sync from SD7 driver HAL/BTCoexist/HalBtc87231Ant.h ===== */ /* ===== End of sync from SD7 driver HAL/BTCoexist/HalBtc87231Ant.h ===== */
#endif /* __HALBTC87231ANT_C__ */
#ifdef __HALBTC87232ANT_C__ /* HAL/BTCoexist/HalBtc87232Ant.h */
/* ===== Below this line is sync from SD7 driver HAL/BTCoexist/HalBtc87232Ant.h ===== */ /* ===== Below this line is sync from SD7 driver HAL/BTCoexist/HalBtc87232Ant.h ===== */
enum bt_2ant_bt_status { enum bt_2ant_bt_status {
BT_2ANT_BT_STATUS_IDLE = 0x0, BT_2ANT_BT_STATUS_IDLE = 0x0,
...@@ -1274,9 +1254,7 @@ struct btdm_8723a_2ant { ...@@ -1274,9 +1254,7 @@ struct btdm_8723a_2ant {
void BTDM_2AntBtCoexist8723A(struct rtw_adapter * padapter); void BTDM_2AntBtCoexist8723A(struct rtw_adapter * padapter);
/* ===== End of sync from SD7 driver HAL/BTCoexist/HalBtc87232Ant.h ===== */ /* ===== End of sync from SD7 driver HAL/BTCoexist/HalBtc87232Ant.h ===== */
#endif /* __HALBTC87232ANT_C__ */
#ifdef __HALBTC8723_C__ /* HAL/BTCoexist/HalBtc8723.h */
/* ===== Below this line is sync from SD7 driver HAL/BTCoexist/HalBtc8723.h ===== */ /* ===== Below this line is sync from SD7 driver HAL/BTCoexist/HalBtc8723.h ===== */
#define BT_Q_PKT_OFF 0 #define BT_Q_PKT_OFF 0
...@@ -1356,9 +1334,7 @@ u8 BTDM_1Ant8723A(struct rtw_adapter * padapter); ...@@ -1356,9 +1334,7 @@ u8 BTDM_1Ant8723A(struct rtw_adapter * padapter);
#define BT_1Ant BTDM_1Ant8723A #define BT_1Ant BTDM_1Ant8723A
/* ===== End of sync from SD7 driver HAL/BTCoexist/HalBtc8723.h ===== */ /* ===== End of sync from SD7 driver HAL/BTCoexist/HalBtc8723.h ===== */
#endif /* __HALBTC8723_C__ */
#ifdef __HALBTCCSR1ANT_C__ /* HAL/BTCoexist/HalBtcCsr1Ant.h */
/* ===== Below this line is sync from SD7 driver HAL/BTCoexist/HalBtcCsr1Ant.h ===== */ /* ===== Below this line is sync from SD7 driver HAL/BTCoexist/HalBtcCsr1Ant.h ===== */
enum BT_A2DP_INDEX{ enum BT_A2DP_INDEX{
...@@ -1381,9 +1357,7 @@ void BTDM_SingleAnt(struct rtw_adapter * padapter, u8 bSingleAntOn, u8 bInterrup ...@@ -1381,9 +1357,7 @@ void BTDM_SingleAnt(struct rtw_adapter * padapter, u8 bSingleAntOn, u8 bInterrup
void BTDM_CheckBTIdleChange1Ant(struct rtw_adapter * padapter); void BTDM_CheckBTIdleChange1Ant(struct rtw_adapter * padapter);
/* ===== End of sync from SD7 driver HAL/BTCoexist/HalBtcCsr1Ant.h ===== */ /* ===== End of sync from SD7 driver HAL/BTCoexist/HalBtcCsr1Ant.h ===== */
#endif /* __HALBTCCSR1ANT_C__ */
#ifdef __HALBTCCSR2ANT_C__ /* HAL/BTCoexist/HalBtcCsr2Ant.h */
/* ===== Below this line is sync from SD7 driver HAL/BTCoexist/HalBtcCsr2Ant.h ===== */ /* ===== Below this line is sync from SD7 driver HAL/BTCoexist/HalBtcCsr2Ant.h ===== */
/* */ /* */
...@@ -1403,9 +1377,6 @@ void BTDM_CheckBTIdleChange1Ant(struct rtw_adapter * padapter); ...@@ -1403,9 +1377,6 @@ void BTDM_CheckBTIdleChange1Ant(struct rtw_adapter * padapter);
void BTDM_DiminishWiFi(struct rtw_adapter * Adapter, u8 bDACOn, u8 bInterruptOn, u8 DACSwingLevel, u8 bNAVOn); void BTDM_DiminishWiFi(struct rtw_adapter * Adapter, u8 bDACOn, u8 bInterruptOn, u8 DACSwingLevel, u8 bNAVOn);
/* ===== End of sync from SD7 driver HAL/BTCoexist/HalBtcCsr2Ant.h ===== */ /* ===== End of sync from SD7 driver HAL/BTCoexist/HalBtcCsr2Ant.h ===== */
#endif /* __HALBTCCSR2ANT_C__ */
#ifdef __HALBTCOEXIST_C__ /* HAL/BTCoexist/HalBtCoexist.h */
/* HEADER/TypeDef.h */ /* HEADER/TypeDef.h */
#define MAX_FW_SUPPORT_MACID_NUM 64 #define MAX_FW_SUPPORT_MACID_NUM 64
...@@ -1638,9 +1609,7 @@ u32 BTDM_BtTxRxCounterH(struct rtw_adapter * padapter); ...@@ -1638,9 +1609,7 @@ u32 BTDM_BtTxRxCounterH(struct rtw_adapter * padapter);
u32 BTDM_BtTxRxCounterL(struct rtw_adapter * padapter); u32 BTDM_BtTxRxCounterL(struct rtw_adapter * padapter);
/* ===== End of sync from SD7 driver HAL/BTCoexist/HalBtCoexist.h ===== */ /* ===== End of sync from SD7 driver HAL/BTCoexist/HalBtCoexist.h ===== */
#endif /* __HALBTCOEXIST_C__ */
#ifdef __HALBT_C__ /* HAL/HalBT.h */
/* ===== Below this line is sync from SD7 driver HAL/HalBT.h ===== */ /* ===== Below this line is sync from SD7 driver HAL/HalBT.h ===== */
#define RTS_CTS_NO_LEN_LIMIT 0 #define RTS_CTS_NO_LEN_LIMIT 0
...@@ -1660,7 +1629,6 @@ void HALBT_InitHwConfig(struct rtw_adapter * padapter); ...@@ -1660,7 +1629,6 @@ void HALBT_InitHwConfig(struct rtw_adapter * padapter);
void HALBT_SetRtsCtsNoLenLimit(struct rtw_adapter * padapter); void HALBT_SetRtsCtsNoLenLimit(struct rtw_adapter * padapter);
/* ===== End of sync from SD7 driver HAL/HalBT.c ===== */ /* ===== End of sync from SD7 driver HAL/HalBT.c ===== */
#endif /* __HALBT_C__ */
#define _bt_dbg_off_ 0 #define _bt_dbg_off_ 0
#define _bt_dbg_on_ 1 #define _bt_dbg_on_ 1
......
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