rtlwifi: move IS_HARDWARE_TYPE_xxx checker to wifi.h
Use rtlpriv instead of rtlhal as argument, so driver and btcoex use the same definitions. Signed-off-by: Ping-Ke Shih <pkshih@realtek.com> Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net> Cc: Yan-Hsuan Chuang <yhchuang@realtek.com> Cc: Birming Chiu <birming@realtek.com> Cc: Shaofu <shaofu@realtek.com> Cc: Steven Ting <steventing@realtek.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
This commit is contained in:
@@ -43,22 +43,6 @@
|
||||
#define RT_SDIO_INTERFACE 3
|
||||
#define DEV_BUS_TYPE RT_PCI_INTERFACE
|
||||
|
||||
/* IC type */
|
||||
#define RTL_HW_TYPE(adapter) (rtl_hal((struct rtl_priv *)adapter)->hw_type)
|
||||
|
||||
#define IS_NEW_GENERATION_IC(adapter) \
|
||||
(RTL_HW_TYPE(adapter) >= HARDWARE_TYPE_RTL8192EE)
|
||||
#define IS_HARDWARE_TYPE_8812(adapter) \
|
||||
(RTL_HW_TYPE(adapter) == HARDWARE_TYPE_RTL8812AE)
|
||||
#define IS_HARDWARE_TYPE_8821(adapter) \
|
||||
(RTL_HW_TYPE(adapter) == HARDWARE_TYPE_RTL8821AE)
|
||||
#define IS_HARDWARE_TYPE_8723A(adapter) \
|
||||
(RTL_HW_TYPE(adapter) == HARDWARE_TYPE_RTL8723AE)
|
||||
#define IS_HARDWARE_TYPE_8723B(adapter) \
|
||||
(RTL_HW_TYPE(adapter) == HARDWARE_TYPE_RTL8723BE)
|
||||
#define IS_HARDWARE_TYPE_8192E(adapter) \
|
||||
(RTL_HW_TYPE(adapter) == HARDWARE_TYPE_RTL8192EE)
|
||||
|
||||
#include "halbtc8192e2ant.h"
|
||||
#include "halbtc8723b1ant.h"
|
||||
#include "halbtc8723b2ant.h"
|
||||
|
Reference in New Issue
Block a user