mirror of
https://github.com/Mange/rtl8192eu-linux-driver
synced 2025-12-10 00:04:17 +00:00
Remove function rtw_end_of_queue_search()
Port of 84660700807cbcd649c58ff8ce7f65021765b15c
This commit is contained in:
@@ -425,12 +425,12 @@ void expire_timeout_chk(_adapter *padapter)
|
||||
|
||||
/* check auth_queue */
|
||||
#ifdef DBG_EXPIRATION_CHK
|
||||
if (rtw_end_of_queue_search(phead, plist) == _FALSE) {
|
||||
if (phead != plist) {
|
||||
RTW_INFO(FUNC_ADPT_FMT" auth_list, cnt:%u\n"
|
||||
, FUNC_ADPT_ARG(padapter), pstapriv->auth_list_cnt);
|
||||
}
|
||||
#endif
|
||||
while ((rtw_end_of_queue_search(phead, plist)) == _FALSE) {
|
||||
while (phead != plist) {
|
||||
psta = LIST_CONTAINOR(plist, struct sta_info, auth_list);
|
||||
|
||||
plist = get_next(plist);
|
||||
@@ -474,12 +474,12 @@ void expire_timeout_chk(_adapter *padapter)
|
||||
|
||||
/* check asoc_queue */
|
||||
#ifdef DBG_EXPIRATION_CHK
|
||||
if (rtw_end_of_queue_search(phead, plist) == _FALSE) {
|
||||
if (phead != plist) {
|
||||
RTW_INFO(FUNC_ADPT_FMT" asoc_list, cnt:%u\n"
|
||||
, FUNC_ADPT_ARG(padapter), pstapriv->asoc_list_cnt);
|
||||
}
|
||||
#endif
|
||||
while ((rtw_end_of_queue_search(phead, plist)) == _FALSE) {
|
||||
while (phead != plist) {
|
||||
psta = LIST_CONTAINOR(plist, struct sta_info, asoc_list);
|
||||
plist = get_next(plist);
|
||||
#ifdef CONFIG_ATMEL_RC_PATCH
|
||||
@@ -807,7 +807,7 @@ u8 rtw_ap_find_mini_tx_rate(_adapter *adapter)
|
||||
_enter_critical_bh(&pstapriv->asoc_list_lock, &irqL);
|
||||
phead = &pstapriv->asoc_list;
|
||||
plist = get_next(phead);
|
||||
while ((rtw_end_of_queue_search(phead, plist)) == _FALSE) {
|
||||
while (phead != plist) {
|
||||
psta = LIST_CONTAINOR(plist, struct sta_info, asoc_list);
|
||||
plist = get_next(plist);
|
||||
|
||||
@@ -1452,7 +1452,7 @@ static void rtw_ap_check_scan(_adapter *padapter)
|
||||
|
||||
_enter_critical_bh(&(pmlmepriv->scanned_queue.lock), &irqL);
|
||||
phead = get_list_head(queue);
|
||||
if (rtw_end_of_queue_search(phead, get_next(phead)) == _TRUE)
|
||||
if (phead == get_next(phead))
|
||||
if (padapter->registrypriv.wifi_spec) {
|
||||
do_scan = _TRUE;
|
||||
reason |= RTW_AUTO_SCAN_REASON_2040_BSS;
|
||||
@@ -1485,7 +1485,7 @@ static void rtw_ap_check_scan(_adapter *padapter)
|
||||
|
||||
while (1) {
|
||||
|
||||
if (rtw_end_of_queue_search(phead, plist) == _TRUE)
|
||||
if (phead == plist)
|
||||
break;
|
||||
|
||||
pnetwork = LIST_CONTAINOR(plist, struct wlan_network, list);
|
||||
@@ -2546,7 +2546,7 @@ static void _rtw_macaddr_acl_deinit(_adapter *adapter, u8 period, bool clear_onl
|
||||
_enter_critical_bh(&(acl_node_q->lock), &irqL);
|
||||
head = get_list_head(acl_node_q);
|
||||
list = get_next(head);
|
||||
while (rtw_end_of_queue_search(head, list) == _FALSE) {
|
||||
while (head != list) {
|
||||
acl_node = LIST_CONTAINOR(list, struct rtw_wlan_acl_node, list);
|
||||
list = get_next(list);
|
||||
|
||||
@@ -2616,7 +2616,7 @@ int rtw_acl_add_sta(_adapter *adapter, u8 period, const u8 *addr)
|
||||
list = get_next(head);
|
||||
|
||||
/* search for existed entry */
|
||||
while (rtw_end_of_queue_search(head, list) == _FALSE) {
|
||||
while (head != list) {
|
||||
acl_node = LIST_CONTAINOR(list, struct rtw_wlan_acl_node, list);
|
||||
list = get_next(list);
|
||||
|
||||
@@ -2688,7 +2688,7 @@ int rtw_acl_remove_sta(_adapter *adapter, u8 period, const u8 *addr)
|
||||
head = get_list_head(acl_node_q);
|
||||
list = get_next(head);
|
||||
|
||||
while (rtw_end_of_queue_search(head, list) == _FALSE) {
|
||||
while (head != list) {
|
||||
acl_node = LIST_CONTAINOR(list, struct rtw_wlan_acl_node, list);
|
||||
list = get_next(list);
|
||||
|
||||
@@ -2883,7 +2883,7 @@ u8 rtw_ap_bmc_frames_hdl(_adapter *padapter)
|
||||
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);
|
||||
@@ -3515,7 +3515,7 @@ void associated_clients_update(_adapter *padapter, u8 updated, u32 sta_info_type
|
||||
plist = get_next(phead);
|
||||
|
||||
/* check asoc_queue */
|
||||
while ((rtw_end_of_queue_search(phead, plist)) == _FALSE) {
|
||||
while (phead != plist) {
|
||||
psta = LIST_CONTAINOR(plist, struct sta_info, asoc_list);
|
||||
|
||||
plist = get_next(plist);
|
||||
@@ -3914,7 +3914,7 @@ int rtw_ap_inform_ch_switch(_adapter *padapter, u8 new_ch, u8 ch_offset)
|
||||
plist = get_next(phead);
|
||||
|
||||
/* for each sta in asoc_queue */
|
||||
while ((rtw_end_of_queue_search(phead, plist)) == _FALSE) {
|
||||
while (phead != plist) {
|
||||
psta = LIST_CONTAINOR(plist, struct sta_info, asoc_list);
|
||||
plist = get_next(plist);
|
||||
|
||||
@@ -3949,7 +3949,7 @@ int rtw_sta_flush(_adapter *padapter, bool enqueue)
|
||||
_enter_critical_bh(&pstapriv->asoc_list_lock, &irqL);
|
||||
phead = &pstapriv->asoc_list;
|
||||
plist = get_next(phead);
|
||||
while ((rtw_end_of_queue_search(phead, plist)) == _FALSE) {
|
||||
while (phead != plist) {
|
||||
int stainfo_offset;
|
||||
|
||||
psta = LIST_CONTAINOR(plist, struct sta_info, asoc_list);
|
||||
@@ -4073,7 +4073,7 @@ void rtw_ap_restore_network(_adapter *padapter)
|
||||
phead = &pstapriv->asoc_list;
|
||||
plist = get_next(phead);
|
||||
|
||||
while ((rtw_end_of_queue_search(phead, plist)) == _FALSE) {
|
||||
while (phead != plist) {
|
||||
int stainfo_offset;
|
||||
|
||||
psta = LIST_CONTAINOR(plist, struct sta_info, asoc_list);
|
||||
@@ -4952,7 +4952,7 @@ u8 rtw_ap_sta_states_check(_adapter *adapter)
|
||||
_enter_critical_bh(&pstapriv->asoc_list_lock, &irqL);
|
||||
phead = &pstapriv->asoc_list;
|
||||
plist = get_next(phead);
|
||||
while ((rtw_end_of_queue_search(phead, plist)) == _FALSE) {
|
||||
while (phead != plist) {
|
||||
|
||||
psta = LIST_CONTAINOR(plist, struct sta_info, asoc_list);
|
||||
plist = get_next(plist);
|
||||
@@ -5039,7 +5039,7 @@ void tx_beacon_handlder(struct dvobj_priv *pdvobj)
|
||||
padapter = NULL;
|
||||
phead = get_list_head(&pdvobj->ap_if_q);
|
||||
plist = get_next(phead);
|
||||
while ((rtw_end_of_queue_search(phead, plist)) == _FALSE) {
|
||||
while (phead != plist) {
|
||||
padapter = LIST_CONTAINOR(plist, struct _ADAPTER, list);
|
||||
|
||||
plist = get_next(plist);
|
||||
|
||||
Reference in New Issue
Block a user