Commit 84660700 authored by navin patidar's avatar navin patidar Committed by Greg Kroah-Hartman
Browse files

staging: rtl8188eu: Remove function rtw_end_of_queue_search()

parent ae6787ad
Loading
Loading
Loading
Loading
+8 −8
Original line number Diff line number Diff line
@@ -288,7 +288,7 @@ void expire_timeout_chk(struct adapter *padapter)
	plist = phead->next;

	/* check auth_queue */
	while ((rtw_end_of_queue_search(phead, plist)) == false) {
	while (phead != plist) {
		psta = container_of(plist, struct sta_info, auth_list);
		plist = plist->next;

@@ -322,7 +322,7 @@ void expire_timeout_chk(struct adapter *padapter)
	plist = phead->next;

	/* check asoc_queue */
	while ((rtw_end_of_queue_search(phead, plist)) == false) {
	while (phead != plist) {
		psta = container_of(plist, struct sta_info, asoc_list);
		plist = plist->next;

@@ -1146,7 +1146,7 @@ int rtw_acl_add_sta(struct adapter *padapter, u8 *addr)
	phead = get_list_head(pacl_node_q);
	plist = phead->next;

	while (!rtw_end_of_queue_search(phead, plist)) {
	while (phead != plist) {
		paclnode = container_of(plist, struct rtw_wlan_acl_node, list);
		plist = plist->next;

@@ -1207,7 +1207,7 @@ int rtw_acl_remove_sta(struct adapter *padapter, u8 *addr)
	phead = get_list_head(pacl_node_q);
	plist = phead->next;

	while (!rtw_end_of_queue_search(phead, plist)) {
	while (phead != plist) {
		paclnode = container_of(plist, struct rtw_wlan_acl_node, list);
		plist = plist->next;

@@ -1505,7 +1505,7 @@ void associated_clients_update(struct adapter *padapter, u8 updated)
		plist = phead->next;

		/* check asoc_queue */
		while ((rtw_end_of_queue_search(phead, plist)) == false) {
		while (phead != plist) {
			psta = container_of(plist, struct sta_info, asoc_list);

			plist = plist->next;
@@ -1779,7 +1779,7 @@ int rtw_ap_inform_ch_switch(struct adapter *padapter, u8 new_ch, u8 ch_offset)
	plist = phead->next;

	/* for each sta in asoc_queue */
	while (!rtw_end_of_queue_search(phead, plist)) {
	while (phead != plist) {
		psta = container_of(plist, struct sta_info, asoc_list);
		plist = plist->next;

@@ -1813,7 +1813,7 @@ int rtw_sta_flush(struct adapter *padapter)
	plist = phead->next;

	/* free sta asoc_queue */
	while ((rtw_end_of_queue_search(phead, plist)) == false) {
	while (phead != plist) {
		psta = container_of(plist, struct sta_info, asoc_list);

		plist = plist->next;
@@ -1942,7 +1942,7 @@ void stop_ap_mode(struct adapter *padapter)
	spin_lock_bh(&(pacl_node_q->lock));
	phead = get_list_head(pacl_node_q);
	plist = phead->next;
	while ((rtw_end_of_queue_search(phead, plist)) == false) {
	while (phead != plist) {
		paclnode = container_of(plist, struct rtw_wlan_acl_node, list);
		plist = plist->next;

+1 −1
Original line number Diff line number Diff line
@@ -853,7 +853,7 @@ int proc_get_all_sta_info(char *page, char **start,
		phead = &(pstapriv->sta_hash[i]);
		plist = phead->next;

		while ((rtw_end_of_queue_search(phead, plist)) == false) {
		while (phead != plist) {
			psta = container_of(plist, struct sta_info, hash_list);

			plist = plist->next;
+5 −8
Original line number Diff line number Diff line
@@ -278,7 +278,7 @@ void _rtw_free_network_queue(struct adapter *padapter, u8 isfreeall)
	phead = get_list_head(scanned_queue);
	plist = phead->next;

	while (rtw_end_of_queue_search(phead, plist) == false) {
	while (phead != plist) {
		pnetwork = container_of(plist, struct wlan_network, list);

		plist = plist->next;
@@ -438,7 +438,7 @@ struct wlan_network *rtw_get_oldest_wlan_network(struct __queue *scanned_queue)
	plist = phead->next;

	while (1) {
		if (rtw_end_of_queue_search(phead, plist) == true)
		if (phead == plist)
			break;

		pwlan = container_of(plist, struct wlan_network, list);
@@ -522,10 +522,7 @@ void rtw_update_scanned_network(struct adapter *adapter, struct wlan_bssid_ex *t
	phead = get_list_head(queue);
	plist = phead->next;

	while (1) {
		if (rtw_end_of_queue_search(phead, plist) == true)
			break;

	while (phead != plist) {
		pnetwork	= container_of(plist, struct wlan_network, list);

		if (is_same_network(&(pnetwork->network), target))
@@ -537,7 +534,7 @@ void rtw_update_scanned_network(struct adapter *adapter, struct wlan_bssid_ex *t
	}
	/* If we didn't find a match, then get a new network slot to initialize
	 * with this beacon's information */
	if (rtw_end_of_queue_search(phead, plist) == true) {
	if (phead == plist) {
		if (_rtw_queue_empty(&(pmlmepriv->free_bss_pool)) == true) {
			/* If there are no more slots, expire the oldest */
			pnetwork = oldest;
@@ -1615,7 +1612,7 @@ int rtw_select_and_join_from_scanned_queue(struct mlme_priv *pmlmepriv)
	phead = get_list_head(queue);
	adapter = (struct adapter *)pmlmepriv->nic_hdl;
	pmlmepriv->pscanned = phead->next;
	while (!rtw_end_of_queue_search(phead, pmlmepriv->pscanned)) {
	while (phead != pmlmepriv->pscanned) {
		pnetwork = container_of(pmlmepriv->pscanned, struct wlan_network, list);
		if (pnetwork == NULL) {
			RT_TRACE(_module_rtl871x_mlme_c_, _drv_err_, ("%s return _FAIL:(pnetwork==NULL)\n", __func__));
+2 −5
Original line number Diff line number Diff line
@@ -6237,14 +6237,11 @@ static void issue_action_BSSCoexistPacket(struct adapter *padapter)
		phead = get_list_head(queue);
		plist = phead->next;

		while (1) {
		while (phead != plist) {
			int len;
			u8 *p;
			struct wlan_bssid_ex *pbss_network;

			if (rtw_end_of_queue_search(phead, plist))
				break;

			pnetwork = container_of(plist, struct wlan_network, list);

			plist = plist->next;
@@ -8377,7 +8374,7 @@ u8 tx_beacon_hdl(struct adapter *padapter, unsigned char *pbuf)
			xmitframe_phead = get_list_head(&psta_bmc->sleep_q);
			xmitframe_plist = xmitframe_phead->next;

			while (!rtw_end_of_queue_search(xmitframe_phead, xmitframe_plist)) {
			while (xmitframe_phead != xmitframe_plist) {
				pxmitframe = container_of(xmitframe_plist, struct xmit_frame, list);

				xmitframe_plist = xmitframe_plist->next;
+2 −2
Original line number Diff line number Diff line
@@ -60,7 +60,7 @@ static u32 go_add_group_info_attr(struct wifidirect_info *pwdinfo, u8 *pbuf)
	plist = phead->next;

	/* look up sta asoc_queue */
	while ((rtw_end_of_queue_search(phead, plist)) == false) {
	while (phead != plist) {
		psta = container_of(plist, struct sta_info, asoc_list);

		plist = plist->next;
@@ -983,7 +983,7 @@ u32 process_p2p_devdisc_req(struct wifidirect_info *pwdinfo, u8 *pframe, uint le
					plist = phead->next;

					/* look up sta asoc_queue */
					while ((rtw_end_of_queue_search(phead, plist)) == false) {
					while (phead != plist) {
						psta = container_of(plist, struct sta_info, asoc_list);

						plist = plist->next;
Loading