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

staging: rtl8723au: Remove obsolete hal thread handling code

Signed-off-by: default avatarJes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent d97e2d2b
...@@ -262,19 +262,6 @@ void rtw_hal_add_ra_tid23a(struct rtw_adapter *padapter, u32 bitmap, u8 arg, u8 ...@@ -262,19 +262,6 @@ void rtw_hal_add_ra_tid23a(struct rtw_adapter *padapter, u32 bitmap, u8 arg, u8
padapter->HalFunc.Add_RateATid(padapter, bitmap, arg, rssi_level); padapter->HalFunc.Add_RateATid(padapter, bitmap, arg, rssi_level);
} }
/* Start specifical interface thread */
void rtw_hal_start_thread23a(struct rtw_adapter *padapter)
{
if (padapter->HalFunc.run_thread)
padapter->HalFunc.run_thread(padapter);
}
/* Start specifical interface thread */
void rtw_hal_stop_thread23a(struct rtw_adapter *padapter)
{
if (padapter->HalFunc.cancel_thread)
padapter->HalFunc.cancel_thread(padapter);
}
u32 rtw_hal_read_bbreg23a(struct rtw_adapter *padapter, u32 RegAddr, u32 BitMask) u32 rtw_hal_read_bbreg23a(struct rtw_adapter *padapter, u32 RegAddr, u32 BitMask)
{ {
u32 data = 0; u32 data = 0;
......
...@@ -1738,8 +1738,6 @@ void rtl8723a_set_hal_ops(struct hal_ops *pHalFunc) ...@@ -1738,8 +1738,6 @@ void rtl8723a_set_hal_ops(struct hal_ops *pHalFunc)
&rtl8723a_SetBeaconRelatedRegisters; &rtl8723a_SetBeaconRelatedRegisters;
pHalFunc->Add_RateATid = &rtl8723a_add_rateatid; pHalFunc->Add_RateATid = &rtl8723a_add_rateatid;
pHalFunc->run_thread = NULL;
pHalFunc->cancel_thread = NULL;
pHalFunc->read_bbreg = &PHY_QueryBBReg; pHalFunc->read_bbreg = &PHY_QueryBBReg;
pHalFunc->write_bbreg = &PHY_SetBBReg; pHalFunc->write_bbreg = &PHY_SetBBReg;
......
...@@ -123,8 +123,6 @@ struct hal_ops { ...@@ -123,8 +123,6 @@ struct hal_ops {
void (*Add_RateATid)(struct rtw_adapter *padapter, u32 bitmap, void (*Add_RateATid)(struct rtw_adapter *padapter, u32 bitmap,
u8 arg, u8 rssi_level); u8 arg, u8 rssi_level);
void (*run_thread)(struct rtw_adapter *padapter);
void (*cancel_thread)(struct rtw_adapter *padapter);
u8 (*interface_ps_func)(struct rtw_adapter *padapter, u8 (*interface_ps_func)(struct rtw_adapter *padapter,
enum hal_intf_ps_func efunc_id, u8 *val); enum hal_intf_ps_func efunc_id, u8 *val);
...@@ -274,8 +272,6 @@ void rtw_hal_free_recv_priv23a(struct rtw_adapter *padapter); ...@@ -274,8 +272,6 @@ void rtw_hal_free_recv_priv23a(struct rtw_adapter *padapter);
void rtw_hal_update_ra_mask23a(struct sta_info *psta, u8 rssi_level); void rtw_hal_update_ra_mask23a(struct sta_info *psta, u8 rssi_level);
void rtw_hal_add_ra_tid23a(struct rtw_adapter *padapter, u32 bitmap, u8 arg, u8 rssi_level); void rtw_hal_add_ra_tid23a(struct rtw_adapter *padapter, u32 bitmap, u8 arg, u8 rssi_level);
void rtw_hal_clone_data(struct rtw_adapter *dst_padapter, struct rtw_adapter *src_padapter); void rtw_hal_clone_data(struct rtw_adapter *dst_padapter, struct rtw_adapter *src_padapter);
void rtw_hal_start_thread23a(struct rtw_adapter *padapter);
void rtw_hal_stop_thread23a(struct rtw_adapter *padapter);
void rtw_hal_bcn_related_reg_setting23a(struct rtw_adapter *padapter); void rtw_hal_bcn_related_reg_setting23a(struct rtw_adapter *padapter);
......
...@@ -26,8 +26,6 @@ u8 rtw_init_drv_sw23a(struct rtw_adapter *padapter); ...@@ -26,8 +26,6 @@ u8 rtw_init_drv_sw23a(struct rtw_adapter *padapter);
u8 rtw_free_drv_sw23a(struct rtw_adapter *padapter); u8 rtw_free_drv_sw23a(struct rtw_adapter *padapter);
u8 rtw_reset_drv_sw23a(struct rtw_adapter *padapter); u8 rtw_reset_drv_sw23a(struct rtw_adapter *padapter);
u32 rtw_start_drv_threads23a(struct rtw_adapter *padapter);
void rtw_stop_drv_threads23a (struct rtw_adapter *padapter);
void rtw_cancel_all_timer23a(struct rtw_adapter *padapter); void rtw_cancel_all_timer23a(struct rtw_adapter *padapter);
int rtw_init_netdev23a_name23a(struct net_device *pnetdev, const char *ifname); int rtw_init_netdev23a_name23a(struct net_device *pnetdev, const char *ifname);
......
...@@ -377,26 +377,6 @@ struct net_device *rtw_init_netdev23a(struct rtw_adapter *old_padapter) ...@@ -377,26 +377,6 @@ struct net_device *rtw_init_netdev23a(struct rtw_adapter *old_padapter)
return pnetdev; return pnetdev;
} }
u32 rtw_start_drv_threads23a(struct rtw_adapter *padapter)
{
u32 _status = _SUCCESS;
RT_TRACE(_module_os_intfs_c_, _drv_info_,
("+rtw_start_drv_threads23a\n"));
rtw_hal_start_thread23a(padapter);
return _status;
}
void rtw_stop_drv_threads23a(struct rtw_adapter *padapter)
{
RT_TRACE(_module_os_intfs_c_, _drv_info_, ("+rtw_stop_drv_threads23a\n"));
flush_workqueue(padapter->cmdpriv.wq);
rtw_hal_stop_thread23a(padapter);
}
static u8 rtw_init_default_value(struct rtw_adapter *padapter) static u8 rtw_init_default_value(struct rtw_adapter *padapter)
{ {
struct registry_priv *pregistrypriv = &padapter->registrypriv; struct registry_priv *pregistrypriv = &padapter->registrypriv;
...@@ -714,12 +694,6 @@ int netdev_open23a(struct net_device *pnetdev) ...@@ -714,12 +694,6 @@ int netdev_open23a(struct net_device *pnetdev)
DBG_8723A("MAC Address = "MAC_FMT"\n", DBG_8723A("MAC Address = "MAC_FMT"\n",
MAC_ARG(pnetdev->dev_addr)); MAC_ARG(pnetdev->dev_addr));
status = rtw_start_drv_threads23a(padapter);
if (status == _FAIL) {
DBG_8723A("Initialize driver software resource Failed!\n");
goto netdev_open23a_error;
}
if (init_hw_mlme_ext23a(padapter) == _FAIL) { if (init_hw_mlme_ext23a(padapter) == _FAIL) {
DBG_8723A("can't init mlme_ext_priv\n"); DBG_8723A("can't init mlme_ext_priv\n");
goto netdev_open23a_error; goto netdev_open23a_error;
......
...@@ -333,7 +333,7 @@ static void rtw_dev_unload(struct rtw_adapter *padapter) ...@@ -333,7 +333,7 @@ static void rtw_dev_unload(struct rtw_adapter *padapter)
/* s4. */ /* s4. */
if (!padapter->pwrctrlpriv.bInternalAutoSuspend) if (!padapter->pwrctrlpriv.bInternalAutoSuspend)
rtw_stop_drv_threads23a(padapter); flush_workqueue(padapter->cmdpriv.wq);
/* s5. */ /* s5. */
if (!padapter->bSurpriseRemoved) { if (!padapter->bSurpriseRemoved) {
......
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