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

@@ -114,7 +114,7 @@ void rtw_mesh_path_assign_nexthop(struct rtw_mesh_path *mpath, struct sta_info *
enter_critical_bh(&mpath->frame_queue.lock);
head = &mpath->frame_queue.queue;
list = get_next(head);
while (rtw_end_of_queue_search(head, list) == _FALSE) {
while (head != list) {
xframe = LIST_CONTAINOR(list, struct xmit_frame, list);
list = get_next(list);
memcpy(xframe->attrib.ra, sta->cmn.mac_addr, ETH_ALEN);
@@ -183,7 +183,7 @@ static void rtw_mesh_path_move_to_queue(struct rtw_mesh_path *gate_mpath,
head = &failq;
list = get_next(head);
while (rtw_end_of_queue_search(head, list) == _FALSE) {
while (head != list) {
if (gate_mpath->frame_queue_len >= RTW_MESH_FRAME_QUEUE_LEN) {
RTW_MPATH_DBG(FUNC_ADPT_FMT" mpath queue for gate %pM is full!\n"
, FUNC_ADPT_ARG(gate_mpath->adapter), gate_mpath->dst);
@@ -1047,7 +1047,7 @@ void rtw_mesh_path_flush_pending(struct rtw_mesh_path *mpath)
head = &tmp;
list = get_next(head);
while (rtw_end_of_queue_search(head, list) == _FALSE) {
while (head != list) {
xframe = LIST_CONTAINOR(list, struct xmit_frame, list);
list = get_next(list);
rtw_list_delete(&xframe->list);