mirror of
https://github.com/chinawrj/rtl8812au
synced 2025-01-09 10:01:37 +00:00
Fix alloc stainfo code
This commit is contained in:
parent
fab47eec90
commit
22acde23b9
@ -512,9 +512,7 @@ struct sta_info *rtw_alloc_stainfo(struct sta_priv *pstapriv, const u8 *hwaddr)
|
|||||||
|
|
||||||
/* _enter_critical_bh(&(pfree_sta_queue->lock), &irqL); */
|
/* _enter_critical_bh(&(pfree_sta_queue->lock), &irqL); */
|
||||||
_enter_critical_bh(&(pstapriv->sta_hash_lock), &irqL2);
|
_enter_critical_bh(&(pstapriv->sta_hash_lock), &irqL2);
|
||||||
if (_rtw_queue_empty(pfree_sta_queue) == _TRUE) {
|
if (!pstapriv->padapter->pnetdev || _rtw_queue_empty(pfree_sta_queue) == _TRUE) {
|
||||||
/* _exit_critical_bh(&(pfree_sta_queue->lock), &irqL); */
|
|
||||||
_exit_critical_bh(&(pstapriv->sta_hash_lock), &irqL2);
|
|
||||||
psta = NULL;
|
psta = NULL;
|
||||||
} else {
|
} else {
|
||||||
psta = LIST_CONTAINOR(get_next(&pfree_sta_queue->queue), struct sta_info, list);
|
psta = LIST_CONTAINOR(get_next(&pfree_sta_queue->queue), struct sta_info, list);
|
||||||
|
Loading…
Reference in New Issue
Block a user