mirror of
https://github.com/Mange/rtl8192eu-linux-driver
synced 2024-11-22 05:25:03 +00:00
Remove all calls to _rtw_spinlock_free()
This routine is empty, thus all calls to it can be removed. Link: https://lore.kernel.org/r/20210805183717.23007-4-Larry.Finger@lwfinger.net
This commit is contained in:
parent
34ec238387
commit
51e1f13a91
@ -1165,7 +1165,7 @@ void dump_mesh_networks(void *sel, _adapter *adapter)
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
rtw_vmfree(mesh_networks, mlme->max_bss_cnt * sizeof(struct wlan_network *));
|
vfree(mesh_networks);
|
||||||
}
|
}
|
||||||
|
|
||||||
void rtw_mesh_adjust_chbw(u8 req_ch, u8 *req_bw, u8 *req_offset)
|
void rtw_mesh_adjust_chbw(u8 req_ch, u8 *req_bw, u8 *req_offset)
|
||||||
@ -2284,8 +2284,6 @@ void rtw_mesh_plink_ctl_deinit(_adapter *adapter)
|
|||||||
}
|
}
|
||||||
_exit_critical_bh(&(plink_ctl->lock), &irqL);
|
_exit_critical_bh(&(plink_ctl->lock), &irqL);
|
||||||
|
|
||||||
_rtw_spinlock_free(&plink_ctl->lock);
|
|
||||||
|
|
||||||
#if CONFIG_RTW_MESH_PEER_BLACKLIST
|
#if CONFIG_RTW_MESH_PEER_BLACKLIST
|
||||||
rtw_mesh_peer_blacklist_flush(adapter);
|
rtw_mesh_peer_blacklist_flush(adapter);
|
||||||
_rtw_deinit_queue(&plink_ctl->peer_blacklist);
|
_rtw_deinit_queue(&plink_ctl->peer_blacklist);
|
||||||
|
@ -741,7 +741,6 @@ static void rtw_mesh_path_free_rcu(struct rtw_mesh_table *tbl,
|
|||||||
_cancel_timer_ex(&mpath->timer);
|
_cancel_timer_ex(&mpath->timer);
|
||||||
atomic_dec(&adapter->mesh_info.mpaths);
|
atomic_dec(&adapter->mesh_info.mpaths);
|
||||||
atomic_dec(&tbl->entries);
|
atomic_dec(&tbl->entries);
|
||||||
_rtw_spinlock_free(&mpath->state_lock);
|
|
||||||
|
|
||||||
rtw_mesh_path_flush_pending(mpath);
|
rtw_mesh_path_flush_pending(mpath);
|
||||||
|
|
||||||
|
@ -38,7 +38,6 @@ void free_mlme_ap_info(_adapter *padapter)
|
|||||||
struct mlme_priv *pmlmepriv = &(padapter->mlmepriv);
|
struct mlme_priv *pmlmepriv = &(padapter->mlmepriv);
|
||||||
|
|
||||||
stop_ap_mode(padapter);
|
stop_ap_mode(padapter);
|
||||||
_rtw_spinlock_free(&pmlmepriv->bcn_update_lock);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2560,9 +2559,6 @@ static void _rtw_macaddr_acl_deinit(_adapter *adapter, u8 period, bool clear_onl
|
|||||||
}
|
}
|
||||||
_exit_critical_bh(&(acl_node_q->lock), &irqL);
|
_exit_critical_bh(&(acl_node_q->lock), &irqL);
|
||||||
|
|
||||||
if (!clear_only)
|
|
||||||
_rtw_spinlock_free(&(acl_node_q->lock));
|
|
||||||
|
|
||||||
rtw_warn_on(acl->num);
|
rtw_warn_on(acl->num);
|
||||||
acl->mode = RTW_ACL_MODE_DISABLED;
|
acl->mode = RTW_ACL_MODE_DISABLED;
|
||||||
}
|
}
|
||||||
@ -4223,7 +4219,6 @@ void stop_ap_mode(_adapter *padapter)
|
|||||||
pmlmepriv->update_bcn = _FALSE;
|
pmlmepriv->update_bcn = _FALSE;
|
||||||
/*pmlmeext->bstart_bss = _FALSE;*/
|
/*pmlmeext->bstart_bss = _FALSE;*/
|
||||||
padapter->netif_up = _FALSE;
|
padapter->netif_up = _FALSE;
|
||||||
/* _rtw_spinlock_free(&pmlmepriv->bcn_update_lock); */
|
|
||||||
|
|
||||||
/* reset and init security priv , this can refine with rtw_reset_securitypriv */
|
/* reset and init security priv , this can refine with rtw_reset_securitypriv */
|
||||||
_rtw_memset((unsigned char *)&padapter->securitypriv, 0, sizeof(struct security_priv));
|
_rtw_memset((unsigned char *)&padapter->securitypriv, 0, sizeof(struct security_priv));
|
||||||
|
@ -224,7 +224,6 @@ void _rtw_free_cmd_priv(struct cmd_priv *pcmdpriv)
|
|||||||
{
|
{
|
||||||
|
|
||||||
if (pcmdpriv) {
|
if (pcmdpriv) {
|
||||||
_rtw_spinlock_free(&(pcmdpriv->cmd_queue.lock));
|
|
||||||
_rtw_free_sema(&(pcmdpriv->cmd_queue_sema));
|
_rtw_free_sema(&(pcmdpriv->cmd_queue_sema));
|
||||||
/* _rtw_free_sema(&(pcmdpriv->cmd_done_sema)); */
|
/* _rtw_free_sema(&(pcmdpriv->cmd_done_sema)); */
|
||||||
_rtw_free_sema(&(pcmdpriv->start_cmdthread_sema));
|
_rtw_free_sema(&(pcmdpriv->start_cmdthread_sema));
|
||||||
|
@ -152,9 +152,6 @@ exit:
|
|||||||
void rtw_mfree_mlme_priv_lock(struct mlme_priv *pmlmepriv);
|
void rtw_mfree_mlme_priv_lock(struct mlme_priv *pmlmepriv);
|
||||||
void rtw_mfree_mlme_priv_lock(struct mlme_priv *pmlmepriv)
|
void rtw_mfree_mlme_priv_lock(struct mlme_priv *pmlmepriv)
|
||||||
{
|
{
|
||||||
_rtw_spinlock_free(&pmlmepriv->lock);
|
|
||||||
_rtw_spinlock_free(&(pmlmepriv->free_bss_pool.lock));
|
|
||||||
_rtw_spinlock_free(&(pmlmepriv->scanned_queue.lock));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void rtw_free_mlme_ie_data(u8 **ppie, u32 *plen)
|
static void rtw_free_mlme_ie_data(u8 **ppie, u32 *plen)
|
||||||
|
@ -168,19 +168,9 @@ exit:
|
|||||||
void rtw_mfree_recv_priv_lock(struct recv_priv *precvpriv);
|
void rtw_mfree_recv_priv_lock(struct recv_priv *precvpriv);
|
||||||
void rtw_mfree_recv_priv_lock(struct recv_priv *precvpriv)
|
void rtw_mfree_recv_priv_lock(struct recv_priv *precvpriv)
|
||||||
{
|
{
|
||||||
_rtw_spinlock_free(&precvpriv->lock);
|
|
||||||
#ifdef CONFIG_RECV_THREAD_MODE
|
#ifdef CONFIG_RECV_THREAD_MODE
|
||||||
_rtw_free_sema(&precvpriv->recv_sema);
|
_rtw_free_sema(&precvpriv->recv_sema);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
_rtw_spinlock_free(&precvpriv->free_recv_queue.lock);
|
|
||||||
_rtw_spinlock_free(&precvpriv->recv_pending_queue.lock);
|
|
||||||
|
|
||||||
_rtw_spinlock_free(&precvpriv->free_recv_buf_queue.lock);
|
|
||||||
|
|
||||||
#ifdef CONFIG_USE_USB_BUFFER_ALLOC_RX
|
|
||||||
_rtw_spinlock_free(&precvpriv->recv_buf_pending_queue.lock);
|
|
||||||
#endif /* CONFIG_USE_USB_BUFFER_ALLOC_RX */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void _rtw_free_recv_priv(struct recv_priv *precvpriv)
|
void _rtw_free_recv_priv(struct recv_priv *precvpriv)
|
||||||
|
@ -350,36 +350,10 @@ inline struct sta_info *rtw_get_stainfo_by_offset(struct sta_priv *stapriv, int
|
|||||||
return (struct sta_info *)(stapriv->pstainfo_buf + offset * sizeof(struct sta_info));
|
return (struct sta_info *)(stapriv->pstainfo_buf + offset * sizeof(struct sta_info));
|
||||||
}
|
}
|
||||||
|
|
||||||
void _rtw_free_sta_xmit_priv_lock(struct sta_xmit_priv *psta_xmitpriv);
|
|
||||||
void _rtw_free_sta_xmit_priv_lock(struct sta_xmit_priv *psta_xmitpriv)
|
|
||||||
{
|
|
||||||
|
|
||||||
_rtw_spinlock_free(&psta_xmitpriv->lock);
|
|
||||||
|
|
||||||
_rtw_spinlock_free(&(psta_xmitpriv->be_q.sta_pending.lock));
|
|
||||||
_rtw_spinlock_free(&(psta_xmitpriv->bk_q.sta_pending.lock));
|
|
||||||
_rtw_spinlock_free(&(psta_xmitpriv->vi_q.sta_pending.lock));
|
|
||||||
_rtw_spinlock_free(&(psta_xmitpriv->vo_q.sta_pending.lock));
|
|
||||||
}
|
|
||||||
|
|
||||||
static void _rtw_free_sta_recv_priv_lock(struct sta_recv_priv *psta_recvpriv)
|
|
||||||
{
|
|
||||||
|
|
||||||
_rtw_spinlock_free(&psta_recvpriv->lock);
|
|
||||||
|
|
||||||
_rtw_spinlock_free(&(psta_recvpriv->defrag_q.lock));
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
void rtw_mfree_stainfo(struct sta_info *psta);
|
void rtw_mfree_stainfo(struct sta_info *psta);
|
||||||
void rtw_mfree_stainfo(struct sta_info *psta)
|
void rtw_mfree_stainfo(struct sta_info *psta)
|
||||||
{
|
{
|
||||||
|
|
||||||
if (&psta->lock != NULL)
|
|
||||||
_rtw_spinlock_free(&psta->lock);
|
|
||||||
|
|
||||||
_rtw_free_sta_xmit_priv_lock(&psta->sta_xmitpriv);
|
|
||||||
_rtw_free_sta_recv_priv_lock(&psta->sta_recvpriv);
|
_rtw_free_sta_recv_priv_lock(&psta->sta_recvpriv);
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -416,17 +390,6 @@ void rtw_mfree_sta_priv_lock(struct sta_priv *pstapriv)
|
|||||||
{
|
{
|
||||||
rtw_mfree_all_stainfo(pstapriv); /* be done before free sta_hash_lock */
|
rtw_mfree_all_stainfo(pstapriv); /* be done before free sta_hash_lock */
|
||||||
|
|
||||||
_rtw_spinlock_free(&pstapriv->free_sta_queue.lock);
|
|
||||||
|
|
||||||
_rtw_spinlock_free(&pstapriv->sta_hash_lock);
|
|
||||||
_rtw_spinlock_free(&pstapriv->wakeup_q.lock);
|
|
||||||
_rtw_spinlock_free(&pstapriv->sleep_q.lock);
|
|
||||||
|
|
||||||
#ifdef CONFIG_AP_MODE
|
|
||||||
_rtw_spinlock_free(&pstapriv->asoc_list_lock);
|
|
||||||
_rtw_spinlock_free(&pstapriv->auth_list_lock);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
u32 _rtw_free_sta_priv(struct sta_priv *pstapriv)
|
u32 _rtw_free_sta_priv(struct sta_priv *pstapriv)
|
||||||
@ -822,7 +785,6 @@ u32 rtw_free_stainfo(_adapter *padapter , struct sta_info *psta)
|
|||||||
rtw_st_ctl_deinit(&psta->st_ctl);
|
rtw_st_ctl_deinit(&psta->st_ctl);
|
||||||
|
|
||||||
if (is_pre_link_sta == _FALSE) {
|
if (is_pre_link_sta == _FALSE) {
|
||||||
_rtw_spinlock_free(&psta->lock);
|
|
||||||
|
|
||||||
/* _enter_critical_bh(&(pfree_sta_queue->lock), &irqL0); */
|
/* _enter_critical_bh(&(pfree_sta_queue->lock), &irqL0); */
|
||||||
_enter_critical_bh(&(pstapriv->sta_hash_lock), &irqL0);
|
_enter_critical_bh(&(pstapriv->sta_hash_lock), &irqL0);
|
||||||
@ -1310,7 +1272,6 @@ void rtw_pre_link_sta_ctl_deinit(struct sta_priv *stapriv)
|
|||||||
|
|
||||||
rtw_pre_link_sta_ctl_reset(stapriv);
|
rtw_pre_link_sta_ctl_reset(stapriv);
|
||||||
|
|
||||||
_rtw_spinlock_free(&pre_link_sta_ctl->lock);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void dump_pre_link_sta_ctl(void *sel, struct sta_priv *stapriv)
|
void dump_pre_link_sta_ctl(void *sel, struct sta_priv *stapriv)
|
||||||
|
@ -88,8 +88,6 @@ int rtw_init_tdls_info(_adapter *padapter)
|
|||||||
|
|
||||||
void rtw_free_tdls_info(struct tdls_info *ptdlsinfo)
|
void rtw_free_tdls_info(struct tdls_info *ptdlsinfo)
|
||||||
{
|
{
|
||||||
_rtw_spinlock_free(&ptdlsinfo->cmd_lock);
|
|
||||||
_rtw_spinlock_free(&ptdlsinfo->hdl_lock);
|
|
||||||
|
|
||||||
_rtw_memset(ptdlsinfo, 0, sizeof(struct tdls_info));
|
_rtw_memset(ptdlsinfo, 0, sizeof(struct tdls_info));
|
||||||
|
|
||||||
|
@ -4091,11 +4091,6 @@ inline void rtw_macid_ctl_init(struct macid_ctl_t *macid_ctl)
|
|||||||
_rtw_spinlock_init(&macid_ctl->lock);
|
_rtw_spinlock_init(&macid_ctl->lock);
|
||||||
}
|
}
|
||||||
|
|
||||||
inline void rtw_macid_ctl_deinit(struct macid_ctl_t *macid_ctl)
|
|
||||||
{
|
|
||||||
_rtw_spinlock_free(&macid_ctl->lock);
|
|
||||||
}
|
|
||||||
|
|
||||||
inline bool rtw_bmp_is_set(const u8 *bmp, u8 bmp_len, u8 id)
|
inline bool rtw_bmp_is_set(const u8 *bmp, u8 bmp_len, u8 id)
|
||||||
{
|
{
|
||||||
if (id / 8 >= bmp_len)
|
if (id / 8 >= bmp_len)
|
||||||
|
@ -62,12 +62,6 @@ void rtw_init_xmit_block(_adapter *padapter)
|
|||||||
dvobj->xmit_block = XMIT_BLOCK_NONE;
|
dvobj->xmit_block = XMIT_BLOCK_NONE;
|
||||||
|
|
||||||
}
|
}
|
||||||
void rtw_free_xmit_block(_adapter *padapter)
|
|
||||||
{
|
|
||||||
struct dvobj_priv *dvobj = adapter_to_dvobj(padapter);
|
|
||||||
|
|
||||||
_rtw_spinlock_free(&dvobj->xmit_block_lock);
|
|
||||||
}
|
|
||||||
|
|
||||||
s32 _rtw_init_xmit_priv(struct xmit_priv *pxmitpriv, _adapter *padapter)
|
s32 _rtw_init_xmit_priv(struct xmit_priv *pxmitpriv, _adapter *padapter)
|
||||||
{
|
{
|
||||||
@ -360,21 +354,7 @@ exit:
|
|||||||
void rtw_mfree_xmit_priv_lock(struct xmit_priv *pxmitpriv);
|
void rtw_mfree_xmit_priv_lock(struct xmit_priv *pxmitpriv);
|
||||||
void rtw_mfree_xmit_priv_lock(struct xmit_priv *pxmitpriv)
|
void rtw_mfree_xmit_priv_lock(struct xmit_priv *pxmitpriv)
|
||||||
{
|
{
|
||||||
_rtw_spinlock_free(&pxmitpriv->lock);
|
|
||||||
_rtw_free_sema(&pxmitpriv->xmit_sema);
|
_rtw_free_sema(&pxmitpriv->xmit_sema);
|
||||||
|
|
||||||
_rtw_spinlock_free(&pxmitpriv->be_pending.lock);
|
|
||||||
_rtw_spinlock_free(&pxmitpriv->bk_pending.lock);
|
|
||||||
_rtw_spinlock_free(&pxmitpriv->vi_pending.lock);
|
|
||||||
_rtw_spinlock_free(&pxmitpriv->vo_pending.lock);
|
|
||||||
_rtw_spinlock_free(&pxmitpriv->bm_pending.lock);
|
|
||||||
|
|
||||||
/* _rtw_spinlock_free(&pxmitpriv->legacy_dz_queue.lock); */
|
|
||||||
/* _rtw_spinlock_free(&pxmitpriv->apsd_queue.lock); */
|
|
||||||
|
|
||||||
_rtw_spinlock_free(&pxmitpriv->free_xmit_queue.lock);
|
|
||||||
_rtw_spinlock_free(&pxmitpriv->free_xmitbuf_queue.lock);
|
|
||||||
_rtw_spinlock_free(&pxmitpriv->pending_xmitbuf_queue.lock);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -419,10 +399,6 @@ void _rtw_free_xmit_priv(struct xmit_priv *pxmitpriv)
|
|||||||
}
|
}
|
||||||
|
|
||||||
vfree(pxmitpriv->xframe_ext_alloc_addr);
|
vfree(pxmitpriv->xframe_ext_alloc_addr);
|
||||||
_rtw_spinlock_free(&pxmitpriv->free_xframe_ext_queue.lock);
|
|
||||||
|
|
||||||
/* free xmit extension buff */
|
|
||||||
_rtw_spinlock_free(&pxmitpriv->free_xmit_extbuf_queue.lock);
|
|
||||||
|
|
||||||
pxmitbuf = (struct xmit_buf *)pxmitpriv->pxmit_extbuf;
|
pxmitbuf = (struct xmit_buf *)pxmitpriv->pxmit_extbuf;
|
||||||
for (i = 0; i < NR_XMIT_EXTBUFF; i++) {
|
for (i = 0; i < NR_XMIT_EXTBUFF; i++) {
|
||||||
@ -444,7 +420,6 @@ void _rtw_free_xmit_priv(struct xmit_priv *pxmitpriv)
|
|||||||
#ifdef CONFIG_XMIT_ACK
|
#ifdef CONFIG_XMIT_ACK
|
||||||
_rtw_mutex_free(&pxmitpriv->ack_tx_mutex);
|
_rtw_mutex_free(&pxmitpriv->ack_tx_mutex);
|
||||||
#endif
|
#endif
|
||||||
rtw_free_xmit_block(padapter);
|
|
||||||
out:
|
out:
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -2497,7 +2497,6 @@ void rtw_mbid_cam_deinit(struct dvobj_priv *dvobj)
|
|||||||
{
|
{
|
||||||
struct mbid_cam_ctl_t *mbid_cam_ctl = &dvobj->mbid_cam_ctl;
|
struct mbid_cam_ctl_t *mbid_cam_ctl = &dvobj->mbid_cam_ctl;
|
||||||
|
|
||||||
_rtw_spinlock_free(&mbid_cam_ctl->lock);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void rtw_mbid_cam_reset(_adapter *adapter)
|
void rtw_mbid_cam_reset(_adapter *adapter)
|
||||||
@ -14180,10 +14179,7 @@ void rtw_clt_port_init(struct clt_port_t *cltp)
|
|||||||
cltp->num = 0;
|
cltp->num = 0;
|
||||||
_rtw_spinlock_init(&cltp->lock);
|
_rtw_spinlock_init(&cltp->lock);
|
||||||
}
|
}
|
||||||
void rtw_clt_port_deinit(struct clt_port_t *cltp)
|
|
||||||
{
|
|
||||||
_rtw_spinlock_free(&cltp->lock);
|
|
||||||
}
|
|
||||||
static void _hw_client_port_alloc(_adapter *adapter)
|
static void _hw_client_port_alloc(_adapter *adapter)
|
||||||
{
|
{
|
||||||
struct dvobj_priv *dvobj = adapter_to_dvobj(adapter);
|
struct dvobj_priv *dvobj = adapter_to_dvobj(adapter);
|
||||||
|
@ -195,7 +195,6 @@ void rtw_hal_dm_deinit(_adapter *padapter)
|
|||||||
|
|
||||||
padapter->hal_func.dm_deinit(padapter);
|
padapter->hal_func.dm_deinit(padapter);
|
||||||
|
|
||||||
_rtw_spinlock_free(&pHalData->IQKSpinLock);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -326,6 +326,5 @@ void rtl8192e_deinit_dm_priv(IN PADAPTER Adapter)
|
|||||||
{
|
{
|
||||||
PHAL_DATA_TYPE pHalData = GET_HAL_DATA(Adapter);
|
PHAL_DATA_TYPE pHalData = GET_HAL_DATA(Adapter);
|
||||||
struct dm_struct *podmpriv = &pHalData->odmpriv;
|
struct dm_struct *podmpriv = &pHalData->odmpriv;
|
||||||
/* _rtw_spinlock_free(&pHalData->odm_stainfo_lock); */
|
|
||||||
odm_cancel_all_timers(podmpriv);
|
odm_cancel_all_timers(podmpriv);
|
||||||
}
|
}
|
||||||
|
@ -321,7 +321,6 @@ extern void _rtw_mutex_free(_mutex *pmutex);
|
|||||||
#ifndef PLATFORM_FREEBSD
|
#ifndef PLATFORM_FREEBSD
|
||||||
extern void _rtw_spinlock_init(_lock *plock);
|
extern void _rtw_spinlock_init(_lock *plock);
|
||||||
#endif /* PLATFORM_FREEBSD */
|
#endif /* PLATFORM_FREEBSD */
|
||||||
extern void _rtw_spinlock_free(_lock *plock);
|
|
||||||
extern void _rtw_spinlock(_lock *plock);
|
extern void _rtw_spinlock(_lock *plock);
|
||||||
extern void _rtw_spinunlock(_lock *plock);
|
extern void _rtw_spinunlock(_lock *plock);
|
||||||
extern void _rtw_spinlock_ex(_lock *plock);
|
extern void _rtw_spinlock_ex(_lock *plock);
|
||||||
|
@ -838,7 +838,6 @@ void rtw_macid_ctl_set_rate_bmp0(struct macid_ctl_t *macid_ctl, u8 id, u32 bmp);
|
|||||||
void rtw_macid_ctl_set_rate_bmp1(struct macid_ctl_t *macid_ctl, u8 id, u32 bmp);
|
void rtw_macid_ctl_set_rate_bmp1(struct macid_ctl_t *macid_ctl, u8 id, u32 bmp);
|
||||||
void rtw_macid_ctl_init_sleep_reg(struct macid_ctl_t *macid_ctl, u16 m0, u16 m1, u16 m2, u16 m3);
|
void rtw_macid_ctl_init_sleep_reg(struct macid_ctl_t *macid_ctl, u16 m0, u16 m1, u16 m2, u16 m3);
|
||||||
void rtw_macid_ctl_init(struct macid_ctl_t *macid_ctl);
|
void rtw_macid_ctl_init(struct macid_ctl_t *macid_ctl);
|
||||||
void rtw_macid_ctl_deinit(struct macid_ctl_t *macid_ctl);
|
|
||||||
u8 rtw_iface_bcmc_id_get(_adapter *padapter);
|
u8 rtw_iface_bcmc_id_get(_adapter *padapter);
|
||||||
void rtw_iface_bcmc_id_set(_adapter *padapter, u8 mac_id);
|
void rtw_iface_bcmc_id_set(_adapter *padapter, u8 mac_id);
|
||||||
#if defined(DBG_CONFIG_ERROR_RESET) && defined(CONFIG_CONCURRENT_MODE)
|
#if defined(DBG_CONFIG_ERROR_RESET) && defined(CONFIG_CONCURRENT_MODE)
|
||||||
|
@ -10129,12 +10129,9 @@ void rtw_wdev_free(struct wireless_dev *wdev)
|
|||||||
struct rtw_wdev_priv *wdev_priv = adapter_wdev_data(adapter);
|
struct rtw_wdev_priv *wdev_priv = adapter_wdev_data(adapter);
|
||||||
_irqL irqL;
|
_irqL irqL;
|
||||||
|
|
||||||
_rtw_spinlock_free(&wdev_priv->scan_req_lock);
|
|
||||||
|
|
||||||
_enter_critical_bh(&wdev_priv->connect_req_lock, &irqL);
|
_enter_critical_bh(&wdev_priv->connect_req_lock, &irqL);
|
||||||
rtw_wdev_free_connect_req(wdev_priv);
|
rtw_wdev_free_connect_req(wdev_priv);
|
||||||
_exit_critical_bh(&wdev_priv->connect_req_lock, &irqL);
|
_exit_critical_bh(&wdev_priv->connect_req_lock, &irqL);
|
||||||
_rtw_spinlock_free(&wdev_priv->connect_req_lock);
|
|
||||||
|
|
||||||
_rtw_mutex_free(&wdev_priv->roch_mutex);
|
_rtw_mutex_free(&wdev_priv->roch_mutex);
|
||||||
}
|
}
|
||||||
|
@ -2199,7 +2199,6 @@ void devobj_deinit(struct dvobj_priv *pdvobj)
|
|||||||
#ifdef CONFIG_MCC_MODE
|
#ifdef CONFIG_MCC_MODE
|
||||||
_rtw_mutex_free(&(pdvobj->mcc_objpriv.mcc_mutex));
|
_rtw_mutex_free(&(pdvobj->mcc_objpriv.mcc_mutex));
|
||||||
_rtw_mutex_free(&(pdvobj->mcc_objpriv.mcc_tsf_req_mutex));
|
_rtw_mutex_free(&(pdvobj->mcc_objpriv.mcc_tsf_req_mutex));
|
||||||
_rtw_spinlock_free(&pdvobj->mcc_objpriv.mcc_lock);
|
|
||||||
#endif /* CONFIG_MCC_MODE */
|
#endif /* CONFIG_MCC_MODE */
|
||||||
|
|
||||||
_rtw_mutex_free(&pdvobj->hw_init_mutex);
|
_rtw_mutex_free(&pdvobj->hw_init_mutex);
|
||||||
@ -2219,22 +2218,10 @@ void devobj_deinit(struct dvobj_priv *pdvobj)
|
|||||||
_rtw_mutex_free(&pdvobj->syson_indirect_access_mutex);
|
_rtw_mutex_free(&pdvobj->syson_indirect_access_mutex);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
rtw_macid_ctl_deinit(&pdvobj->macid_ctl);
|
|
||||||
#ifdef CONFIG_CLIENT_PORT_CFG
|
|
||||||
rtw_clt_port_deinit(&pdvobj->clt_port);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
_rtw_spinlock_free(&pdvobj->cam_ctl.lock);
|
|
||||||
_rtw_mutex_free(&pdvobj->cam_ctl.sec_cam_access_mutex);
|
_rtw_mutex_free(&pdvobj->cam_ctl.sec_cam_access_mutex);
|
||||||
|
|
||||||
#if defined(RTK_129X_PLATFORM) && defined(CONFIG_PCI_HCI)
|
|
||||||
_rtw_spinlock_free(&pdvobj->io_reg_lock);
|
|
||||||
#endif
|
|
||||||
#ifdef CONFIG_MBSSID_CAM
|
#ifdef CONFIG_MBSSID_CAM
|
||||||
rtw_mbid_cam_deinit(pdvobj);
|
rtw_mbid_cam_deinit(pdvobj);
|
||||||
#endif
|
|
||||||
#ifdef CONFIG_SUPPORT_MULTI_BCN
|
|
||||||
_rtw_spinlock_free(&(pdvobj->ap_if_q.lock));
|
|
||||||
#endif
|
#endif
|
||||||
rtw_mfree((u8 *)pdvobj, sizeof(*pdvobj));
|
rtw_mfree((u8 *)pdvobj, sizeof(*pdvobj));
|
||||||
}
|
}
|
||||||
@ -2580,11 +2567,6 @@ u8 rtw_free_drv_sw(_adapter *padapter)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
/* add for CONFIG_IEEE80211W, none 11w also can use */
|
/* add for CONFIG_IEEE80211W, none 11w also can use */
|
||||||
_rtw_spinlock_free(&padapter->security_key_mutex);
|
|
||||||
|
|
||||||
#ifdef CONFIG_BR_EXT
|
|
||||||
_rtw_spinlock_free(&padapter->br_ext_lock);
|
|
||||||
#endif /* CONFIG_BR_EXT */
|
|
||||||
|
|
||||||
#ifdef CONFIG_INTEL_WIDI
|
#ifdef CONFIG_INTEL_WIDI
|
||||||
rtw_free_intel_widi(padapter);
|
rtw_free_intel_widi(padapter);
|
||||||
|
@ -1365,19 +1365,6 @@ void _rtw_spinlock_init(_lock *plock)
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void _rtw_spinlock_free(_lock *plock)
|
|
||||||
{
|
|
||||||
#ifdef PLATFORM_FREEBSD
|
|
||||||
mtx_destroy(plock);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef PLATFORM_WINDOWS
|
|
||||||
|
|
||||||
NdisFreeSpinLock(plock);
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
}
|
|
||||||
#ifdef PLATFORM_FREEBSD
|
#ifdef PLATFORM_FREEBSD
|
||||||
extern PADAPTER prtw_lock;
|
extern PADAPTER prtw_lock;
|
||||||
|
|
||||||
@ -1484,7 +1471,6 @@ void _rtw_init_queue(_queue *pqueue)
|
|||||||
|
|
||||||
void _rtw_deinit_queue(_queue *pqueue)
|
void _rtw_deinit_queue(_queue *pqueue)
|
||||||
{
|
{
|
||||||
_rtw_spinlock_free(&(pqueue->lock));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
u32 _rtw_queue_empty(_queue *pqueue)
|
u32 _rtw_queue_empty(_queue *pqueue)
|
||||||
|
Loading…
Reference in New Issue
Block a user