mirror of
https://github.com/chinawrj/rtl8812au
synced 2025-01-24 18:22:11 +00:00
a little sta_alloc fix
This commit is contained in:
parent
1e62d66f89
commit
3a75759ecf
@ -512,9 +512,13 @@ 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)
|
||||||
|
{
|
||||||
|
psta = NULL;
|
||||||
|
}
|
||||||
|
else if (_rtw_queue_empty(pfree_sta_queue) == _TRUE)
|
||||||
/* _exit_critical_bh(&(pfree_sta_queue->lock), &irqL); */
|
/* _exit_critical_bh(&(pfree_sta_queue->lock), &irqL); */
|
||||||
_exit_critical_bh(&(pstapriv->sta_hash_lock), &irqL2);
|
/* _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);
|
||||||
|
@ -1,11 +0,0 @@
|
|||||||
--- a/core/rtw_mlme_ext.c
|
|
||||||
+++ b/core/rtw_mlme_ext.c
|
|
||||||
@@ -11636,7 +11636,7 @@ static void rtw_mlmeext_disconnect(_adap
|
|
||||||
|
|
||||||
//set_opmode_cmd(padapter, infra_client_with_mlme);
|
|
||||||
|
|
||||||
-#if 1
|
|
||||||
+#if 0 // this check always causes a failure with an invalid macid error message in the logs
|
|
||||||
/*
|
|
||||||
* For safety, prevent from keeping macid sleep.
|
|
||||||
* If we can sure all power mode enter/leave are paired,
|
|
Loading…
Reference in New Issue
Block a user