Commit 1e24579b authored by Ivan Safonov's avatar Ivan Safonov Committed by Greg Kroah-Hartman

staging: r8188eu: rename AntDivBeforeLink8188E to rtw_hal_antdiv_before_linked

And remove two one-line wrappers.
Signed-off-by: default avatarIvan Safonov <insafonov@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 2865af35
...@@ -124,13 +124,6 @@ void rtw_hal_dm_watchdog(struct adapter *adapt) ...@@ -124,13 +124,6 @@ void rtw_hal_dm_watchdog(struct adapter *adapt)
adapt->HalFunc.hal_dm_watchdog(adapt); adapt->HalFunc.hal_dm_watchdog(adapt);
} }
u8 rtw_hal_antdiv_before_linked(struct adapter *adapt)
{
if (adapt->HalFunc.AntDivBeforeLinkHandler)
return adapt->HalFunc.AntDivBeforeLinkHandler(adapt);
return false;
}
void rtw_hal_reset_security_engine(struct adapter *adapter) void rtw_hal_reset_security_engine(struct adapter *adapter)
{ {
if (adapter->HalFunc.hal_reset_security_engine) if (adapter->HalFunc.hal_reset_security_engine)
......
...@@ -201,7 +201,7 @@ void rtw_hal_antdiv_rssi_compared(struct adapter *Adapter, struct wlan_bssid_ex ...@@ -201,7 +201,7 @@ void rtw_hal_antdiv_rssi_compared(struct adapter *Adapter, struct wlan_bssid_ex
} }
/* Add new function to reset the state of antenna diversity before link. */ /* Add new function to reset the state of antenna diversity before link. */
u8 AntDivBeforeLink8188E(struct adapter *Adapter) u8 rtw_hal_antdiv_before_linked(struct adapter *Adapter)
{ {
struct hal_data_8188e *hal_data = GET_HAL_DATA(Adapter); struct hal_data_8188e *hal_data = GET_HAL_DATA(Adapter);
struct odm_dm_struct *dm_odm = &hal_data->odmpriv; struct odm_dm_struct *dm_odm = &hal_data->odmpriv;
......
...@@ -199,8 +199,6 @@ void rtl8188e_set_hal_ops(struct hal_ops *pHalFunc) ...@@ -199,8 +199,6 @@ void rtl8188e_set_hal_ops(struct hal_ops *pHalFunc)
pHalFunc->hal_dm_watchdog = &rtl8188e_HalDmWatchDog; pHalFunc->hal_dm_watchdog = &rtl8188e_HalDmWatchDog;
pHalFunc->Add_RateATid = &rtl8188e_Add_RateATid; pHalFunc->Add_RateATid = &rtl8188e_Add_RateATid;
pHalFunc->AntDivBeforeLinkHandler = &AntDivBeforeLink8188E;
} }
/* */ /* */
......
...@@ -157,8 +157,6 @@ struct hal_ops { ...@@ -157,8 +157,6 @@ struct hal_ops {
void (*Add_RateATid)(struct adapter *adapter, u32 bitmap, u8 arg, void (*Add_RateATid)(struct adapter *adapter, u32 bitmap, u8 arg,
u8 rssi_level); u8 rssi_level);
u8 (*AntDivBeforeLinkHandler)(struct adapter *adapter);
void (*hal_reset_security_engine)(struct adapter *adapter); void (*hal_reset_security_engine)(struct adapter *adapter);
}; };
......
...@@ -51,6 +51,5 @@ void rtl8188e_HalDmWatchDog(struct adapter *adapt); ...@@ -51,6 +51,5 @@ void rtl8188e_HalDmWatchDog(struct adapter *adapt);
void AntDivCompare8188E(struct adapter *adapt, struct wlan_bssid_ex *dst, void AntDivCompare8188E(struct adapter *adapt, struct wlan_bssid_ex *dst,
struct wlan_bssid_ex *src); struct wlan_bssid_ex *src);
u8 AntDivBeforeLink8188E(struct adapter *adapt);
#endif #endif
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