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

@@ -1423,7 +1423,7 @@ static int retrieve_scan_result(struct rm_obj *prm)
/* search scan queue to find requested SSID */
while (1) {
if (rtw_end_of_queue_search(phead, plist) == _TRUE)
if (phead == plist)
break;
pnetwork = LIST_CONTAINOR(plist, struct wlan_network, list);
@@ -2050,7 +2050,7 @@ void rm_dbg_list_sta(_adapter *padapter, char *s)
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);
@@ -2106,7 +2106,7 @@ struct sta_info *rm_get_sta(_adapter *padapter, u16 aid, u8* pbssid)
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);
@@ -2395,7 +2395,7 @@ static void rm_dbg_list_meas(_adapter *padapter, char *s)
plist = get_next(phead);
meas_amount = 0;
while ((rtw_end_of_queue_search(phead, plist)) == _FALSE) {
while (phead != plist) {
prm = LIST_CONTAINOR(plist, struct rm_obj, list);
meas_amount++;
plist = get_next(plist);