mirror of
https://github.com/Mange/rtl8192eu-linux-driver
synced 2026-04-01 07:00:01 +00:00
Remove function rtw_end_of_queue_search()
Port of 84660700807cbcd649c58ff8ce7f65021765b15c
This commit is contained in:
@@ -480,7 +480,7 @@ void _rtw_free_network_queue(_adapter *padapter, u8 isfreeall)
|
||||
phead = get_list_head(scanned_queue);
|
||||
plist = get_next(phead);
|
||||
|
||||
while (rtw_end_of_queue_search(phead, plist) == _FALSE) {
|
||||
while (phead != plist) {
|
||||
|
||||
pnetwork = LIST_CONTAINOR(plist, struct wlan_network, list);
|
||||
|
||||
@@ -777,7 +777,7 @@ struct wlan_network *rtw_get_oldest_wlan_network(_queue *scanned_queue)
|
||||
|
||||
while (1) {
|
||||
|
||||
if (rtw_end_of_queue_search(phead, plist) == _TRUE)
|
||||
if (phead == plist)
|
||||
break;
|
||||
|
||||
pwlan = LIST_CONTAINOR(plist, struct wlan_network, list);
|
||||
@@ -962,7 +962,7 @@ bool rtw_update_scanned_network(_adapter *adapter, WLAN_BSSID_EX *target)
|
||||
#endif
|
||||
|
||||
while (1) {
|
||||
if (rtw_end_of_queue_search(phead, plist) == _TRUE)
|
||||
if (phead == plist)
|
||||
break;
|
||||
|
||||
pnetwork = LIST_CONTAINOR(plist, struct wlan_network, list);
|
||||
@@ -3661,7 +3661,7 @@ int rtw_select_roaming_candidate(struct mlme_priv *mlme)
|
||||
|
||||
mlme->pscanned = get_next(phead);
|
||||
|
||||
while (!rtw_end_of_queue_search(phead, mlme->pscanned)) {
|
||||
while (phead != mlme->pscanned) {
|
||||
|
||||
pnetwork = LIST_CONTAINOR(mlme->pscanned, struct wlan_network, list);
|
||||
if (pnetwork == NULL) {
|
||||
@@ -3855,7 +3855,7 @@ int rtw_select_and_join_from_scanned_queue(struct mlme_priv *pmlmepriv)
|
||||
phead = get_list_head(queue);
|
||||
pmlmepriv->pscanned = get_next(phead);
|
||||
|
||||
while (!rtw_end_of_queue_search(phead, pmlmepriv->pscanned)) {
|
||||
while (phead != pmlmepriv->pscanned) {
|
||||
|
||||
pnetwork = LIST_CONTAINOR(pmlmepriv->pscanned, struct wlan_network, list);
|
||||
if (pnetwork == NULL) {
|
||||
|
||||
Reference in New Issue
Block a user