Remove function rtw_end_of_queue_search()

Port of 84660700807cbcd649c58ff8ce7f65021765b15c
This commit is contained in:
Carlos Garces
2021-10-14 22:37:57 +02:00
parent bb871e7167
commit 355a2df5ab
28 changed files with 140 additions and 150 deletions

View File

@@ -3549,7 +3549,7 @@ u16 rtw_rx_ampdu_apply(_adapter *adapter)
phead = &pstapriv->asoc_list;
plist = get_next(phead);
while ((rtw_end_of_queue_search(phead, plist)) == _FALSE) {
while (phead != plist) {
int stainfo_offset;
sta = LIST_CONTAINOR(plist, struct sta_info, asoc_list);
@@ -10457,7 +10457,7 @@ void issue_action_BSSCoexistPacket(_adapter *padapter)
u8 *p;
WLAN_BSSID_EX *pbss_network;
if (rtw_end_of_queue_search(phead, plist) == _TRUE)
if (phead == plist)
break;
pnetwork = LIST_CONTAINOR(plist, struct wlan_network, list);
@@ -11306,7 +11306,7 @@ void start_clnt_join(_adapter *padapter)
_enter_critical_bh(&(padapter->mlmepriv.scanned_queue.lock), &irqL);
for (pos = get_next(head); !rtw_end_of_queue_search(head, pos); pos = get_next(pos)) {
for (pos = get_next(head); !head == pos; pos = get_next(pos)) {
scanned = LIST_CONTAINOR(pos, struct wlan_network, list);
@@ -11322,7 +11322,7 @@ void start_clnt_join(_adapter *padapter)
_exit_critical_bh(&(padapter->mlmepriv.scanned_queue.lock), &irqL);
if (scanned == NULL || rtw_end_of_queue_search(head, pos) || has_p2p_ie == _FALSE)
if (scanned == NULL || head == pos || has_p2p_ie == _FALSE)
#endif /* CONFIG_P2P */
/* To avoid connecting to AP fail during resume process, change retry count from 5 to 1 */
issue_deauth_ex(padapter, pnetwork->MacAddress, WLAN_REASON_DEAUTH_LEAVING, 1, 100);
@@ -12697,7 +12697,7 @@ void linked_status_chk_tdls(_adapter *padapter)
phead = &(pstapriv->sta_hash[i]);
plist = get_next(phead);
while ((rtw_end_of_queue_search(phead, plist)) == _FALSE) {
while (phead != plist) {
psta = LIST_CONTAINOR(plist, struct sta_info, hash_list);
plist = get_next(plist);
@@ -12979,7 +12979,7 @@ bypass_active_keep_alive:
phead = &(pstapriv->sta_hash[i]);
plist = get_next(phead);
while ((rtw_end_of_queue_search(phead, plist)) == _FALSE) {
while (phead != plist) {
psta = LIST_CONTAINOR(plist, struct sta_info, hash_list);
plist = get_next(plist);
@@ -13001,7 +13001,7 @@ bypass_active_keep_alive:
_exit_critical_bh(&pstapriv->sta_hash_lock, &irqL);
plist = get_next(&dlist);
while (rtw_end_of_queue_search(&dlist, plist) == _FALSE) {
while (&dlist != plist) {
psta = LIST_CONTAINOR(plist, struct sta_info, list);
plist = get_next(plist);
rtw_list_delete(&psta->list);
@@ -15888,7 +15888,7 @@ u8 chk_bmc_sleepq_hdl(_adapter *padapter, unsigned char *pbuf)
xmitframe_phead = get_list_head(&psta_bmc->sleep_q);
xmitframe_plist = get_next(xmitframe_phead);
while ((rtw_end_of_queue_search(xmitframe_phead, xmitframe_plist)) == _FALSE) {
while (xmitframe_phead != xmitframe_plist) {
pxmitframe = LIST_CONTAINOR(xmitframe_plist, struct xmit_frame, list);
xmitframe_plist = get_next(xmitframe_plist);