rtl8188eu: Fix some edit errors from replace spin lock wrappers

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
Larry Finger 2014-11-28 18:42:41 -06:00
parent 238f9a6fa1
commit 849d585656
16 changed files with 292 additions and 294 deletions

View file

@ -196,7 +196,7 @@ void rtw_mfree_all_stainfo(struct sta_priv *pstapriv)
_func_enter_;
spin_lock(&pstapriv->sta_hash_lock);
spin_lock_bh(&pstapriv->sta_hash_lock);
phead = get_list_head(&pstapriv->free_sta_queue);
plist = get_next(phead);
@ -208,7 +208,7 @@ _func_enter_;
rtw_mfree_stainfo(psta);
}
spin_unlock(&pstapriv->sta_hash_lock);
spin_unlock_bh(&pstapriv->sta_hash_lock);
_func_exit_;
}
@ -244,7 +244,7 @@ u32 _rtw_free_sta_priv(struct sta_priv *pstapriv)
_func_enter_;
if (pstapriv) {
/* delete all reordering_ctrl_timer */
spin_lock(&pstapriv->sta_hash_lock);
spin_lock_bh(&pstapriv->sta_hash_lock);
for (index = 0; index < NUM_STA; index++) {
phead = &(pstapriv->sta_hash[index]);
plist = get_next(phead);
@ -260,7 +260,7 @@ _func_enter_;
}
}
}
spin_unlock(&pstapriv->sta_hash_lock);
spin_unlock_bh(&pstapriv->sta_hash_lock);
/*===============================*/
rtw_mfree_sta_priv_lock(pstapriv);
@ -287,15 +287,15 @@ _func_enter_;
pfree_sta_queue = &pstapriv->free_sta_queue;
spin_lock(&pfree_sta_queue->lock);
spin_lock_bh(&pfree_sta_queue->lock);
if (_rtw_queue_empty(pfree_sta_queue) == true) {
spin_unlock(&pfree_sta_queue->lock);
spin_unlock_bh(&pfree_sta_queue->lock);
psta = NULL;
} else {
psta = LIST_CONTAINOR(get_next(&pfree_sta_queue->queue), struct sta_info, list);
rtw_list_delete(&(psta->list));
spin_unlock(&pfree_sta_queue->lock);
spin_unlock_bh(&pfree_sta_queue->lock);
_rtw_init_stainfo(psta);
memcpy(psta->hwaddr, hwaddr, ETH_ALEN);
index = wifi_mac_hash(hwaddr);
@ -307,13 +307,13 @@ _func_enter_;
}
phash_list = &(pstapriv->sta_hash[index]);
spin_lock(&pstapriv->sta_hash_lock);
spin_lock_bh(&pstapriv->sta_hash_lock);
rtw_list_insert_tail(&psta->hash_list, phash_list);
pstapriv->asoc_sta_count++ ;
spin_unlock(&pstapriv->sta_hash_lock);
spin_unlock_bh(&pstapriv->sta_hash_lock);
/* Commented by Albert 2009/08/13 */
/* For the SMC router, the sequence number of first packet of WPS handshake will be 0. */
@ -380,7 +380,7 @@ _func_enter_;
pstaxmitpriv = &psta->sta_xmitpriv;
spin_lock(&pxmitpriv->lock);
spin_lock_bh(&pxmitpriv->lock);
rtw_free_xmitframe_queue(pxmitpriv, &psta->sleep_q);
psta->sleepq_len = 0;
@ -401,7 +401,7 @@ _func_enter_;
rtw_list_delete(&(pstaxmitpriv->be_q.tx_pending));
spin_unlock(&pxmitpriv->lock);
spin_unlock_bh(&pxmitpriv->lock);
rtw_list_delete(&psta->hash_list);
RT_TRACE(_module_rtl871x_sta_mgt_c_, _drv_err_, ("\n free number_%d stainfo with hwaddr=0x%.2x 0x%.2x 0x%.2x 0x%.2x 0x%.2x 0x%.2x\n", pstapriv->asoc_sta_count , psta->hwaddr[0], psta->hwaddr[1], psta->hwaddr[2], psta->hwaddr[3], psta->hwaddr[4], psta->hwaddr[5]));
@ -426,7 +426,7 @@ _func_enter_;
ppending_recvframe_queue = &preorder_ctrl->pending_recvframe_queue;
spin_lock(&ppending_recvframe_queue->lock);
spin_lock_bh(&ppending_recvframe_queue->lock);
phead = get_list_head(ppending_recvframe_queue);
plist = get_next(phead);
@ -441,7 +441,7 @@ _func_enter_;
rtw_free_recvframe(prframe, pfree_recv_queue);
}
spin_unlock(&ppending_recvframe_queue->lock);
spin_unlock_bh(&ppending_recvframe_queue->lock);
}
if (!(psta->state & WIFI_AP_STATE))
@ -449,12 +449,12 @@ _func_enter_;
#ifdef CONFIG_88EU_AP_MODE
spin_lock(&pstapriv->auth_list_lock);
spin_lock_bh(&pstapriv->auth_list_lock);
if (!rtw_is_list_empty(&psta->auth_list)) {
rtw_list_delete(&psta->auth_list);
pstapriv->auth_list_cnt--;
}
spin_unlock(&pstapriv->auth_list_lock);
spin_unlock_bh(&pstapriv->auth_list_lock);
psta->expire_to = 0;
@ -480,9 +480,9 @@ _func_enter_;
#endif /* CONFIG_88EU_AP_MODE */
spin_lock(&pfree_sta_queue->lock);
spin_lock_bh(&pfree_sta_queue->lock);
rtw_list_insert_tail(&psta->list, get_list_head(pfree_sta_queue));
spin_unlock(&pfree_sta_queue->lock);
spin_unlock_bh(&pfree_sta_queue->lock);
exit:
@ -505,7 +505,7 @@ _func_enter_;
if (pstapriv->asoc_sta_count == 1)
goto exit;
spin_lock(&pstapriv->sta_hash_lock);
spin_lock_bh(&pstapriv->sta_hash_lock);
for (index = 0; index < NUM_STA; index++) {
phead = &(pstapriv->sta_hash[index]);
@ -521,7 +521,7 @@ _func_enter_;
}
}
spin_unlock(&pstapriv->sta_hash_lock);
spin_unlock_bh(&pstapriv->sta_hash_lock);
exit:
@ -549,7 +549,7 @@ _func_enter_;
index = wifi_mac_hash(addr);
spin_lock(&pstapriv->sta_hash_lock);
spin_lock_bh(&pstapriv->sta_hash_lock);
phead = &(pstapriv->sta_hash[index]);
plist = get_next(phead);
@ -565,7 +565,7 @@ _func_enter_;
plist = get_next(plist);
}
spin_unlock(&pstapriv->sta_hash_lock);
spin_unlock_bh(&pstapriv->sta_hash_lock);
_func_exit_;
return psta;
}
@ -617,7 +617,7 @@ u8 rtw_access_ctrl(struct adapter *padapter, u8 *mac_addr)
struct wlan_acl_pool *pacl_list = &pstapriv->acl_list;
struct __queue *pacl_node_q = &pacl_list->acl_node_q;
spin_lock(&pacl_node_q->lock);
spin_lock_bh(&pacl_node_q->lock);
phead = get_list_head(pacl_node_q);
plist = get_next(phead);
while ((!rtw_end_of_queue_search(phead, plist))) {
@ -631,7 +631,7 @@ u8 rtw_access_ctrl(struct adapter *padapter, u8 *mac_addr)
}
}
}
spin_unlock(&pacl_node_q->lock);
spin_unlock_bh(&pacl_node_q->lock);
if (pacl_list->mode == 1)/* accept unless in deny list */
res = (match) ? false : true;